diff --git a/src/ComputeSharp.SourceGenerators/Mappings/HlslKnownMembers.cs b/src/ComputeSharp.SourceGenerators/Mappings/HlslKnownMembers.cs
index 467b5110..24da01ea 100644
--- a/src/ComputeSharp.SourceGenerators/Mappings/HlslKnownMembers.cs
+++ b/src/ComputeSharp.SourceGenerators/Mappings/HlslKnownMembers.cs
@@ -192,6 +192,20 @@ namespace ComputeSharp.SourceGenerators.Mappings
knownMembers.Add($"{item.Type.FullName}{Type.Delimiter}{item.Property.Name}", $"{item.Property.Name.ToLower()}");
}
+ // Load mappings for the matrix properties as well
+ foreach (var item in
+ from type in HlslKnownTypes.KnownMatrixTypes
+ from property in type.GetProperties(BindingFlags.Instance | BindingFlags.Public)
+ where Regex.IsMatch(property.Name, "^M[1-4]{2}$")
+ select (Type: type, Property: property))
+ {
+ char
+ row = (char)(item.Property.Name[1] - 1),
+ column = (char)(item.Property.Name[2] - 1);
+
+ knownMembers.Add($"{item.Type.FullName}{Type.Delimiter}{item.Property.Name}", $"_m{row}{column}");
+ }
+
// Store GroupIds.Index for a quicker comparison afterwards
PropertyInfo groupindexProperty = typeof(GroupIds).GetProperty(nameof(GroupIds.Index), BindingFlags.Static | BindingFlags.Public);
diff --git a/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs b/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs
index 6f8782eb..35fa4cd2 100644
--- a/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs
+++ b/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs
@@ -49,6 +49,11 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool1x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}.M11");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -148,6 +153,16 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool1x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}.M12");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -259,6 +274,21 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool1x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.M13");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -376,6 +406,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool1x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref bool M14 => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.M14");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -484,6 +534,16 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool2x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}.M21");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -613,6 +673,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool2x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.M22");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -750,6 +830,36 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool2x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M23");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -901,6 +1011,46 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool2x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref bool M14 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref bool M24 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M24");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1012,6 +1162,21 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool3x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.M31");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1155,6 +1320,36 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool3x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M32");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1313,6 +1508,51 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool3x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref bool M33 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M33");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1492,6 +1732,66 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool3x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref bool M14 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref bool M24 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M24");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref bool M33 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 4].
+ ///
+ public ref bool M34 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M34");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1612,6 +1912,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool4x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref bool M41 => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.M41");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1769,6 +2089,46 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool4x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref bool M41 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref bool M42 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M42");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1948,6 +2308,66 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool4x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref bool M33 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref bool M41 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref bool M42 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M42");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 3].
+ ///
+ public ref bool M43 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M43");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -2155,6 +2575,86 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Bool4x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref bool M14 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref bool M24 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M24");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref bool M33 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 4].
+ ///
+ public ref bool M34 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M34");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref bool M41 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref bool M42 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M42");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 3].
+ ///
+ public ref bool M43 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M43");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 4].
+ ///
+ public ref bool M44 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M44");
+
///
/// Creates a new value with the same value for all its components.
///
diff --git a/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs b/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs
index 3d5a28d6..2e7f926e 100644
--- a/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs
+++ b/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs
@@ -49,6 +49,11 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double1x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double1x1)}.M11");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -148,6 +153,16 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double1x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double1x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double1x2)}.M12");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -259,6 +274,21 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double1x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.M13");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -376,6 +406,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double1x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref double M14 => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.M14");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -484,6 +534,16 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double2x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double2x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double2x1)}.M21");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -613,6 +673,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double2x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.M22");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -750,6 +830,36 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double2x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M23");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -901,6 +1011,46 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double2x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref double M14 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref double M24 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M24");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1012,6 +1162,21 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double3x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.M31");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1155,6 +1320,36 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double3x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M32");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1313,6 +1508,51 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double3x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref double M33 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M33");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1492,6 +1732,66 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double3x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref double M14 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref double M24 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M24");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref double M33 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 4].
+ ///
+ public ref double M34 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M34");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1612,6 +1912,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double4x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref double M41 => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.M41");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1769,6 +2089,46 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double4x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref double M41 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref double M42 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M42");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1948,6 +2308,66 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double4x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref double M33 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref double M41 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref double M42 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M42");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 3].
+ ///
+ public ref double M43 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M43");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -2155,6 +2575,86 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Double4x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref double M14 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref double M24 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M24");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref double M33 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 4].
+ ///
+ public ref double M34 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M34");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref double M41 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref double M42 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M42");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 3].
+ ///
+ public ref double M43 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M43");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 4].
+ ///
+ public ref double M44 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M44");
+
///
/// Creates a new value with the same value for all its components.
///
diff --git a/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs
index a68972e9..889e0435 100644
--- a/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs
+++ b/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs
@@ -49,6 +49,11 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float1x1)}.M11");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -148,6 +153,16 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float1x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float1x2)}.M12");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -259,6 +274,21 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.M13");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -376,6 +406,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref float M14 => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.M14");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -484,6 +534,16 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float2x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float2x1)}.M21");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -613,6 +673,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.M22");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -750,6 +830,36 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M23");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -901,6 +1011,46 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref float M14 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref float M24 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M24");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1012,6 +1162,21 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.M31");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1155,6 +1320,36 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M32");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1313,6 +1508,51 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref float M33 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M33");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1492,6 +1732,66 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref float M14 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref float M24 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M24");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref float M33 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 4].
+ ///
+ public ref float M34 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M34");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1612,6 +1912,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref float M41 => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.M41");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1769,6 +2089,46 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref float M41 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref float M42 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M42");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1948,6 +2308,66 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref float M33 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref float M41 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref float M42 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M42");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 3].
+ ///
+ public ref float M43 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M43");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -2155,6 +2575,86 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref float M14 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref float M24 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M24");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref float M33 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 4].
+ ///
+ public ref float M34 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M34");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref float M41 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref float M42 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M42");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 3].
+ ///
+ public ref float M43 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M43");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 4].
+ ///
+ public ref float M44 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M44");
+
///
/// Creates a new value with the same value for all its components.
///
diff --git a/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs
index 9c1b7785..48156d86 100644
--- a/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs
+++ b/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs
@@ -49,6 +49,11 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int1x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int1x1)}.M11");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -148,6 +153,16 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int1x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int1x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int1x2)}.M12");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -259,6 +274,21 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int1x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int1x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int1x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int1x3)}.M13");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -376,6 +406,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int1x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int1x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int1x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int1x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref int M14 => throw new InvalidExecutionContextException($"{typeof(Int1x4)}.M14");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -484,6 +534,16 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int2x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int2x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int2x1)}.M21");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -613,6 +673,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int2x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int2x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int2x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int2x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int2x2)}.M22");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -750,6 +830,36 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int2x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M23");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -901,6 +1011,46 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int2x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref int M14 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref int M24 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M24");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1012,6 +1162,21 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int3x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int3x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int3x1)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int3x1)}.M31");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1155,6 +1320,36 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int3x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M32");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1313,6 +1508,51 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int3x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref int M33 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M33");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1492,6 +1732,66 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int3x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref int M14 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref int M24 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M24");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref int M33 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 4].
+ ///
+ public ref int M34 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M34");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1612,6 +1912,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int4x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int4x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int4x1)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int4x1)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref int M41 => throw new InvalidExecutionContextException($"{typeof(Int4x1)}.M41");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1769,6 +2089,46 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int4x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref int M41 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref int M42 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M42");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1948,6 +2308,66 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int4x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref int M33 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref int M41 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref int M42 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M42");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 3].
+ ///
+ public ref int M43 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M43");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -2155,6 +2575,86 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(Int4x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref int M14 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref int M24 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M24");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref int M33 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 4].
+ ///
+ public ref int M34 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M34");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref int M41 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref int M42 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M42");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 3].
+ ///
+ public ref int M43 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M43");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 4].
+ ///
+ public ref int M44 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M44");
+
///
/// Creates a new value with the same value for all its components.
///
diff --git a/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude
index 49ee79ce..9ef58902 100644
--- a/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude
+++ b/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude
@@ -146,7 +146,21 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
/// The identifier of the third item to index.
/// The identifier of the fourth item to index.
public ref <#=typeName#>4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+<#
+ for (int i = 1; i <= rows; i++)
+ for (int j = 1; j <= columns; j++)
+ {
+ WriteLine("");
+#>
+ ///
+ /// Gets a reference to the value representing the component at position [<#=i#>, <#=j#>].
+ ///
+ public ref <#=elementTypeName#> M<#=i#><#=j#> => throw new InvalidExecutionContextException($"{typeof(<#=fullTypeName#>)}.M<#=i#><#=j#>");
+<#
+ }
+ WriteLine("");
+#>
///
/// Creates a new value with the same value for all its components.
///
diff --git a/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs
index 2479a05b..c2bb30a2 100644
--- a/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs
+++ b/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs
@@ -49,6 +49,11 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt1x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt1x1)}.M11");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -148,6 +153,16 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt1x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt1x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt1x2)}.M12");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -259,6 +274,21 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt1x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}.M13");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -376,6 +406,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt1x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref uint M14 => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}.M14");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -484,6 +534,16 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt2x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt2x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt2x1)}.M21");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -613,6 +673,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt2x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}.M22");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -750,6 +830,36 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt2x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M23");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -901,6 +1011,46 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt2x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref uint M14 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref uint M24 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M24");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1012,6 +1162,21 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt3x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}.M31");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1155,6 +1320,36 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt3x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M32");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1313,6 +1508,51 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt3x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref uint M33 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M33");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1492,6 +1732,66 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt3x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref uint M14 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref uint M24 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M24");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref uint M33 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 4].
+ ///
+ public ref uint M34 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M34");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1612,6 +1912,26 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt4x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref uint M41 => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}.M41");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1769,6 +2089,46 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt4x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref uint M41 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref uint M42 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M42");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -1948,6 +2308,66 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt4x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref uint M33 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref uint M41 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref uint M42 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M42");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 3].
+ ///
+ public ref uint M43 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M43");
+
///
/// Creates a new value with the same value for all its components.
///
@@ -2155,6 +2575,86 @@ namespace ComputeSharp
/// The identifier of the fourth item to index.
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{nameof(UInt4x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
+ ///
+ /// Gets a reference to the value representing the component at position [1, 1].
+ ///
+ public ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M11");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 2].
+ ///
+ public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M12");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 3].
+ ///
+ public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M13");
+
+ ///
+ /// Gets a reference to the value representing the component at position [1, 4].
+ ///
+ public ref uint M14 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M14");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 1].
+ ///
+ public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M21");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 2].
+ ///
+ public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M22");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 3].
+ ///
+ public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M23");
+
+ ///
+ /// Gets a reference to the value representing the component at position [2, 4].
+ ///
+ public ref uint M24 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M24");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 1].
+ ///
+ public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M31");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 2].
+ ///
+ public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M32");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 3].
+ ///
+ public ref uint M33 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M33");
+
+ ///
+ /// Gets a reference to the value representing the component at position [3, 4].
+ ///
+ public ref uint M34 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M34");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 1].
+ ///
+ public ref uint M41 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M41");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 2].
+ ///
+ public ref uint M42 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M42");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 3].
+ ///
+ public ref uint M43 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M43");
+
+ ///
+ /// Gets a reference to the value representing the component at position [4, 4].
+ ///
+ public ref uint M44 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M44");
+
///
/// Creates a new value with the same value for all its components.
///