diff --git a/src/ComputeSharp/Core/Primitives/Float/Matrix/FloatMxN.g.cs b/src/ComputeSharp/Core/Primitives/Float/Matrix/FloatMxN.g.cs
index 93298f18..9d3fe8aa 100644
--- a/src/ComputeSharp/Core/Primitives/Float/Matrix/FloatMxN.g.cs
+++ b/src/ComputeSharp/Core/Primitives/Float/Matrix/FloatMxN.g.cs
@@ -16,6 +16,54 @@ namespace ComputeSharp
/// The row to access.
public ref float this[int row] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -67,6 +115,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float2 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -121,6 +217,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float3 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -178,6 +322,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float4 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -229,6 +421,54 @@ namespace ComputeSharp
/// The row to access.
public ref float this[int row] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -286,6 +526,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float2 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -349,6 +637,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float3 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -418,6 +754,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float4 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -472,6 +856,54 @@ namespace ComputeSharp
/// The row to access.
public ref float this[int row] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -535,6 +967,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float2 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -607,6 +1087,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float3 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -688,6 +1216,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float4 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -745,6 +1321,54 @@ namespace ComputeSharp
/// The row to access.
public ref float this[int row] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -814,6 +1438,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float2 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -895,6 +1567,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float3 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
@@ -988,6 +1708,54 @@ namespace ComputeSharp
/// The row to access.
public ref Float4 this[int row] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[int]");
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref Float4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
///
/// Negates a value.
///
diff --git a/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude
index 6b1aca64..85aef3aa 100644
--- a/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude
+++ b/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude
@@ -60,6 +60,54 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
///
/// The row to access.
public ref <#=rowTypeName#> this[int row] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[int]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref <#=typeName#>2 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref <#=typeName#>3 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref <#=typeName#>4 this[MatrixIndexAsBase0 xy0, MatrixIndexAsBase0 xy1, MatrixIndexAsBase0 xy2, MatrixIndexAsBase0 xy3] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}, {nameof(MatrixIndexAsBase0)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ public ref <#=typeName#>2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ public ref <#=typeName#>3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
+
+ ///
+ /// Gets a swizzled reference to a specific sequence of items in the current instance.
+ ///
+ /// The identifier of the first item to index.
+ /// The identifier of the second item to index.
+ /// The identifier of the third item to index.
+ /// The identifier of the fourth item to index.
+ public ref <#=typeName#>4 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2, MatrixIndexAsBase1 xy3] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
<#
// Generate the negation operator
if (elementTypeName != "Bool" && elementTypeName != "UInt")