Refactored matrix indexers to more closely match System.Numerics.MatrixMxN
このコミットが含まれているのは:
1 親
cce6706190
コミット
f779bb4fb7
4ファイル変更
+72
-577
検索条件に一致するファイルはありません
@@ -21,7 +21,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x1"/> instance.
|
||||
@@ -29,7 +29,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x1"/> instance.
|
||||
@@ -38,31 +38,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float1x1"/> value.
|
||||
@@ -120,7 +96,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x2"/> instance.
|
||||
@@ -128,7 +104,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x2"/> instance.
|
||||
@@ -137,31 +113,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float1x2"/> value.
|
||||
@@ -222,7 +174,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x3"/> instance.
|
||||
@@ -230,7 +182,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x3"/> instance.
|
||||
@@ -239,31 +191,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float1x3"/> value.
|
||||
@@ -327,7 +255,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x4"/> instance.
|
||||
@@ -335,7 +263,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x4"/> instance.
|
||||
@@ -344,31 +272,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float1x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float1x4"/> value.
|
||||
@@ -426,7 +330,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x1"/> instance.
|
||||
@@ -434,7 +338,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x1"/> instance.
|
||||
@@ -443,31 +347,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float2x1"/> value.
|
||||
@@ -531,7 +411,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x2"/> instance.
|
||||
@@ -539,7 +419,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x2"/> instance.
|
||||
@@ -548,31 +428,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float2x2"/> value.
|
||||
@@ -642,7 +498,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x3"/> instance.
|
||||
@@ -650,7 +506,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x3"/> instance.
|
||||
@@ -659,31 +515,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float2x3"/> value.
|
||||
@@ -759,7 +591,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x4"/> instance.
|
||||
@@ -767,7 +599,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x4"/> instance.
|
||||
@@ -776,31 +608,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float2x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float2x4"/> value.
|
||||
@@ -861,7 +669,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x1"/> instance.
|
||||
@@ -869,7 +677,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x1"/> instance.
|
||||
@@ -878,31 +686,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float3x1"/> value.
|
||||
@@ -972,7 +756,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x2"/> instance.
|
||||
@@ -980,7 +764,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x2"/> instance.
|
||||
@@ -989,31 +773,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float3x2"/> value.
|
||||
@@ -1092,7 +852,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x3"/> instance.
|
||||
@@ -1100,7 +860,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x3"/> instance.
|
||||
@@ -1109,31 +869,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float3x3"/> value.
|
||||
@@ -1221,7 +957,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x4"/> instance.
|
||||
@@ -1229,7 +965,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x4"/> instance.
|
||||
@@ -1238,31 +974,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float3x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float3x4"/> value.
|
||||
@@ -1326,7 +1038,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x1"/> instance.
|
||||
@@ -1334,7 +1046,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x1"/> instance.
|
||||
@@ -1343,31 +1055,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x1)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x1"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float4x1"/> value.
|
||||
@@ -1443,7 +1131,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x2"/> instance.
|
||||
@@ -1451,7 +1139,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x2"/> instance.
|
||||
@@ -1460,31 +1148,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x2)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float4x2"/> value.
|
||||
@@ -1572,7 +1236,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x3"/> instance.
|
||||
@@ -1580,7 +1244,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x3"/> instance.
|
||||
@@ -1589,31 +1253,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x3)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float4x3"/> value.
|
||||
@@ -1713,7 +1353,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x4"/> instance.
|
||||
@@ -1721,7 +1361,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x4"/> instance.
|
||||
@@ -1730,31 +1370,7 @@ namespace ComputeSharp
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref Float2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref Float3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(Float4x4)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x4"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float4x4"/> value.
|
||||
|
||||
+21
-21
@@ -1,97 +1,97 @@
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// 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 <see href="https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-per-component-math"/>.
|
||||
/// <para>This type is meant to be used within a <see langword="using statuc"/> directive to simplify the code:</para>
|
||||
/// <para>This type is meant to be used within a <see langword="using static"/> directive to simplify the code:</para>
|
||||
/// <para>
|
||||
/// <c>
|
||||
/// using static ComputeSharp.MatrixIndexAsBase0;
|
||||
/// using static ComputeSharp.MatrixIndex;
|
||||
/// Float2x2 matrix = 0;
|
||||
/// Float2 row = matrix[M11, M01];
|
||||
/// Float2 row = matrix[M11, M12];
|
||||
/// </c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public enum MatrixIndexAsBase0
|
||||
public enum MatrixIndex
|
||||
{
|
||||
/// <summary>
|
||||
/// The first item in the first row.
|
||||
/// </summary>
|
||||
M00,
|
||||
M11,
|
||||
|
||||
/// <summary>
|
||||
/// The second item in the first row.
|
||||
/// </summary>
|
||||
M01,
|
||||
M12,
|
||||
|
||||
/// <summary>
|
||||
/// The third item in the first row.
|
||||
/// </summary>
|
||||
M02,
|
||||
M13,
|
||||
|
||||
/// <summary>
|
||||
/// The fourth item in the first row.
|
||||
/// </summary>
|
||||
M03,
|
||||
M14,
|
||||
|
||||
/// <summary>
|
||||
/// The first item in the second row.
|
||||
/// </summary>
|
||||
M10,
|
||||
M21,
|
||||
|
||||
/// <summary>
|
||||
/// The second item in the second row.
|
||||
/// </summary>
|
||||
M11,
|
||||
M22,
|
||||
|
||||
/// <summary>
|
||||
/// The third item in the second row.
|
||||
/// </summary>
|
||||
M12,
|
||||
M23,
|
||||
|
||||
/// <summary>
|
||||
/// The fourth item in the second row.
|
||||
/// </summary>
|
||||
M13,
|
||||
M24,
|
||||
|
||||
/// <summary>
|
||||
/// The first item in the third row.
|
||||
/// </summary>
|
||||
M20,
|
||||
M31,
|
||||
|
||||
/// <summary>
|
||||
/// The second item in the third row.
|
||||
/// </summary>
|
||||
M21,
|
||||
M32,
|
||||
|
||||
/// <summary>
|
||||
/// The third item in the third row.
|
||||
/// </summary>
|
||||
M22,
|
||||
M33,
|
||||
|
||||
/// <summary>
|
||||
/// The fourth item in the third row.
|
||||
/// </summary>
|
||||
M23,
|
||||
M34,
|
||||
|
||||
/// <summary>
|
||||
/// The first item in the fourth row.
|
||||
/// </summary>
|
||||
M30,
|
||||
M41,
|
||||
|
||||
/// <summary>
|
||||
/// The second item in the fourth row.
|
||||
/// </summary>
|
||||
M31,
|
||||
M42,
|
||||
|
||||
/// <summary>
|
||||
/// The third item in the fourth row.
|
||||
/// </summary>
|
||||
M32,
|
||||
M43,
|
||||
|
||||
/// <summary>
|
||||
/// The fourth item in the fourth row.
|
||||
/// </summary>
|
||||
M33
|
||||
M44
|
||||
}
|
||||
}
|
||||
@@ -1,97 +0,0 @@
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// 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 <see href="https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-per-component-math"/>.
|
||||
/// <para>This type is meant to be used within a <see langword="using statuc"/> directive to simplify the code:</para>
|
||||
/// <para>
|
||||
/// <c>
|
||||
/// using static ComputeSharp.MatrixIndexAsBase1;
|
||||
/// Float2x2 matrix = 0;
|
||||
/// Float2 row = matrix[_11, _22];
|
||||
/// </c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public enum MatrixIndexAsBase1
|
||||
{
|
||||
/// <summary>
|
||||
/// The first item in the first row.
|
||||
/// </summary>
|
||||
_11,
|
||||
|
||||
/// <summary>
|
||||
/// The second item in the first row.
|
||||
/// </summary>
|
||||
_12,
|
||||
|
||||
/// <summary>
|
||||
/// The third item in the first row.
|
||||
/// </summary>
|
||||
_13,
|
||||
|
||||
/// <summary>
|
||||
/// The fourth item in the first row.
|
||||
/// </summary>
|
||||
_14,
|
||||
|
||||
/// <summary>
|
||||
/// The first item in the second row.
|
||||
/// </summary>
|
||||
_21,
|
||||
|
||||
/// <summary>
|
||||
/// The second item in the second row.
|
||||
/// </summary>
|
||||
_22,
|
||||
|
||||
/// <summary>
|
||||
/// The third item in the second row.
|
||||
/// </summary>
|
||||
_23,
|
||||
|
||||
/// <summary>
|
||||
/// The fourth item in the second row.
|
||||
/// </summary>
|
||||
_24,
|
||||
|
||||
/// <summary>
|
||||
/// The first item in the third row.
|
||||
/// </summary>
|
||||
_31,
|
||||
|
||||
/// <summary>
|
||||
/// The second item in the third row.
|
||||
/// </summary>
|
||||
_32,
|
||||
|
||||
/// <summary>
|
||||
/// The third item in the third row.
|
||||
/// </summary>
|
||||
_33,
|
||||
|
||||
/// <summary>
|
||||
/// The fourth item in the third row.
|
||||
/// </summary>
|
||||
_34,
|
||||
|
||||
/// <summary>
|
||||
/// The first item in the fourth row.
|
||||
/// </summary>
|
||||
_41,
|
||||
|
||||
/// <summary>
|
||||
/// The second item in the fourth row.
|
||||
/// </summary>
|
||||
_42,
|
||||
|
||||
/// <summary>
|
||||
/// The third item in the fourth row.
|
||||
/// </summary>
|
||||
_43,
|
||||
|
||||
/// <summary>
|
||||
/// The fourth item in the fourth row.
|
||||
/// </summary>
|
||||
_44
|
||||
}
|
||||
}
|
||||
@@ -66,7 +66,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
|
||||
@@ -74,7 +74,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
|
||||
@@ -83,31 +83,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
public ref <#=typeName#>2 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
public ref <#=typeName#>3 this[MatrixIndexAsBase1 xy0, MatrixIndexAsBase1 xy1, MatrixIndexAsBase1 xy2] => throw new InvalidExecutionContextException($"{nameof(<#=fullTypeName#>)}[{nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}, {nameof(MatrixIndexAsBase1)}]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="xy0">The identifier of the first item to index.</param>
|
||||
/// <param name="xy1">The identifier of the second item to index.</param>
|
||||
/// <param name="xy2">The identifier of the third item to index.</param>
|
||||
/// <param name="xy3">The identifier of the fourth item to index.</param>
|
||||
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")
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする