diff --git a/src/ComputeSharp/Core/Primitives/Float/Matrix/FloatMxN.g.cs b/src/ComputeSharp/Core/Primitives/Float/Matrix/FloatMxN.g.cs
index 9d3fe8aa..b7ee1fd3 100644
--- a/src/ComputeSharp/Core/Primitives/Float/Matrix/FloatMxN.g.cs
+++ b/src/ComputeSharp/Core/Primitives/Float/Matrix/FloatMxN.g.cs
@@ -21,7 +21,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -29,7 +29,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -38,31 +38,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -120,7 +96,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -128,7 +104,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -137,31 +113,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -222,7 +174,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -230,7 +182,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -239,31 +191,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -327,7 +255,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -335,7 +263,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -344,31 +272,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -426,7 +330,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -434,7 +338,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -443,31 +347,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -531,7 +411,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -539,7 +419,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -548,31 +428,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -642,7 +498,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -650,7 +506,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -659,31 +515,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -759,7 +591,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -767,7 +599,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -776,31 +608,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -861,7 +669,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -869,7 +677,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -878,31 +686,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -972,7 +756,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -980,7 +764,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -989,31 +773,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -1092,7 +852,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1100,7 +860,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1109,31 +869,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -1221,7 +957,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1229,7 +965,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1238,31 +974,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -1326,7 +1038,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1334,7 +1046,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1343,31 +1055,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -1443,7 +1131,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1451,7 +1139,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1460,31 +1148,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -1572,7 +1236,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1580,7 +1244,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1589,31 +1253,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
@@ -1713,7 +1353,7 @@ namespace ComputeSharp
///
/// 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)}]");
+ public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1721,7 +1361,7 @@ namespace ComputeSharp
/// 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)}]");
+ public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -1730,31 +1370,7 @@ namespace ComputeSharp
/// 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)}]");
+ 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)}]");
///
/// Negates a value.
diff --git a/src/ComputeSharp/Core/Primitives/MatrixIndexAsBase0.cs b/src/ComputeSharp/Core/Primitives/MatrixIndex.cs
similarity index 85%
rename from src/ComputeSharp/Core/Primitives/MatrixIndexAsBase0.cs
rename to src/ComputeSharp/Core/Primitives/MatrixIndex.cs
index 33c97996..5b330472 100644
--- a/src/ComputeSharp/Core/Primitives/MatrixIndexAsBase0.cs
+++ b/src/ComputeSharp/Core/Primitives/MatrixIndex.cs
@@ -1,97 +1,97 @@
namespace ComputeSharp
{
///
- /// A type indicating a base-0 index into a matrix type. This can be used to extract references to swizzled vectors within a given matrix value.
+ /// A type indicating a base-1 index into a matrix type. This can be used to extract references to swizzled vectors within a given matrix value.
/// For more info, see .
- /// This type is meant to be used within a directive to simplify the code:
+ /// This type is meant to be used within a directive to simplify the code:
///
///
- /// using static ComputeSharp.MatrixIndexAsBase0;
+ /// using static ComputeSharp.MatrixIndex;
/// Float2x2 matrix = 0;
- /// Float2 row = matrix[M11, M01];
+ /// Float2 row = matrix[M11, M12];
///
///
///
- public enum MatrixIndexAsBase0
+ public enum MatrixIndex
{
///
/// The first item in the first row.
///
- M00,
+ M11,
///
/// The second item in the first row.
///
- M01,
+ M12,
///
/// The third item in the first row.
///
- M02,
+ M13,
///
/// The fourth item in the first row.
///
- M03,
+ M14,
///
/// The first item in the second row.
///
- M10,
+ M21,
///
/// The second item in the second row.
///
- M11,
+ M22,
///
/// The third item in the second row.
///
- M12,
+ M23,
///
/// The fourth item in the second row.
///
- M13,
+ M24,
///
/// The first item in the third row.
///
- M20,
+ M31,
///
/// The second item in the third row.
///
- M21,
+ M32,
///
/// The third item in the third row.
///
- M22,
+ M33,
///
/// The fourth item in the third row.
///
- M23,
+ M34,
///
/// The first item in the fourth row.
///
- M30,
+ M41,
///
/// The second item in the fourth row.
///
- M31,
+ M42,
///
/// The third item in the fourth row.
///
- M32,
+ M43,
///
/// The fourth item in the fourth row.
///
- M33
+ M44
}
}
diff --git a/src/ComputeSharp/Core/Primitives/MatrixIndexAsBase1.cs b/src/ComputeSharp/Core/Primitives/MatrixIndexAsBase1.cs
deleted file mode 100644
index 6db0cde9..00000000
--- a/src/ComputeSharp/Core/Primitives/MatrixIndexAsBase1.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-namespace ComputeSharp
-{
- ///
- /// A type indicating a base-1 index into a matrix type. This can be used to extract references to swizzled vectors within a given matrix value.
- /// For more info, see .
- /// This type is meant to be used within a directive to simplify the code:
- ///
- ///
- /// using static ComputeSharp.MatrixIndexAsBase1;
- /// Float2x2 matrix = 0;
- /// Float2 row = matrix[_11, _22];
- ///
- ///
- ///
- public enum MatrixIndexAsBase1
- {
- ///
- /// The first item in the first row.
- ///
- _11,
-
- ///
- /// The second item in the first row.
- ///
- _12,
-
- ///
- /// The third item in the first row.
- ///
- _13,
-
- ///
- /// The fourth item in the first row.
- ///
- _14,
-
- ///
- /// The first item in the second row.
- ///
- _21,
-
- ///
- /// The second item in the second row.
- ///
- _22,
-
- ///
- /// The third item in the second row.
- ///
- _23,
-
- ///
- /// The fourth item in the second row.
- ///
- _24,
-
- ///
- /// The first item in the third row.
- ///
- _31,
-
- ///
- /// The second item in the third row.
- ///
- _32,
-
- ///
- /// The third item in the third row.
- ///
- _33,
-
- ///
- /// The fourth item in the third row.
- ///
- _34,
-
- ///
- /// The first item in the fourth row.
- ///
- _41,
-
- ///
- /// The second item in the fourth row.
- ///
- _42,
-
- ///
- /// The third item in the fourth row.
- ///
- _43,
-
- ///
- /// The fourth item in the fourth row.
- ///
- _44
- }
-}
diff --git a/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude
index 85aef3aa..2d908082 100644
--- a/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude
+++ b/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude
@@ -66,7 +66,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
///
/// 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)}]");
+ public ref <#=typeName#>2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -74,7 +74,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
/// 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)}]");
+ public ref <#=typeName#>3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndex)}, {nameof(MatrixIndex)}, {nameof(MatrixIndex)}]");
///
/// Gets a swizzled reference to a specific sequence of items in the current instance.
@@ -83,31 +83,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
/// 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)}]");
+ 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)}]");
<#
// Generate the negation operator
if (elementTypeName != "Bool" && elementTypeName != "UInt")