Added BoolNxM negation operator, fixed operators generation

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-15 23:17:25 +01:00
1 親 ac76fc3268
コミット 6a144aad1f
3ファイル変更
+21 -643

検索条件に一致するファイルはありません

+16 -528
ファイルの表示
@@ -85,39 +85,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool1x1"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x1 operator -(Bool1x1 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool1x1"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool1x1"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool1x1"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x1 operator +(Bool1x1 left, Bool1x1 right) => default;
/// <summary>
/// Divides two <see cref="Bool1x1"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool1x1"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool1x1"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x1 operator /(Bool1x1 left, Bool1x1 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool1x1"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool1x1"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool1x1"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x1 operator *(Bool1x1 left, Bool1x1 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool1x1"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool1x1"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool1x1"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x1 operator -(Bool1x1 left, Bool1x1 right) => default;
public static Bool1x1 operator !(Bool1x1 matrix) => default;
}
/// <inheritdoc cref="Bool1x2"/>
@@ -209,39 +177,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool1x2"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x2 operator -(Bool1x2 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool1x2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool1x2"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool1x2"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x2 operator +(Bool1x2 left, Bool1x2 right) => default;
/// <summary>
/// Divides two <see cref="Bool1x2"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool1x2"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool1x2"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x2 operator /(Bool1x2 left, Bool1x2 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool1x2"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool1x2"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool1x2"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x2 operator *(Bool1x2 left, Bool1x2 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool1x2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool1x2"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool1x2"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x2 operator -(Bool1x2 left, Bool1x2 right) => default;
public static Bool1x2 operator !(Bool1x2 matrix) => default;
/// <summary>
/// Casts a <see cref="Bool2"/> value to a <see cref="Bool1x2"/> one.
@@ -350,39 +286,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool1x3"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x3 operator -(Bool1x3 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool1x3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool1x3"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool1x3"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x3 operator +(Bool1x3 left, Bool1x3 right) => default;
/// <summary>
/// Divides two <see cref="Bool1x3"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool1x3"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool1x3"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x3 operator /(Bool1x3 left, Bool1x3 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool1x3"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool1x3"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool1x3"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x3 operator *(Bool1x3 left, Bool1x3 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool1x3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool1x3"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool1x3"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x3 operator -(Bool1x3 left, Bool1x3 right) => default;
public static Bool1x3 operator !(Bool1x3 matrix) => default;
/// <summary>
/// Casts a <see cref="Bool3"/> value to a <see cref="Bool1x3"/> one.
@@ -502,39 +406,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool1x4"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x4 operator -(Bool1x4 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool1x4"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool1x4"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool1x4"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x4 operator +(Bool1x4 left, Bool1x4 right) => default;
/// <summary>
/// Divides two <see cref="Bool1x4"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool1x4"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool1x4"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x4 operator /(Bool1x4 left, Bool1x4 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool1x4"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool1x4"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool1x4"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x4 operator *(Bool1x4 left, Bool1x4 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool1x4"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool1x4"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool1x4"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool1x4 operator -(Bool1x4 left, Bool1x4 right) => default;
public static Bool1x4 operator !(Bool1x4 matrix) => default;
/// <summary>
/// Casts a <see cref="Bool4"/> value to a <see cref="Bool1x4"/> one.
@@ -632,39 +504,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool2x1"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x1 operator -(Bool2x1 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool2x1"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool2x1"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool2x1"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x1 operator +(Bool2x1 left, Bool2x1 right) => default;
/// <summary>
/// Divides two <see cref="Bool2x1"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool2x1"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool2x1"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x1 operator /(Bool2x1 left, Bool2x1 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool2x1"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool2x1"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool2x1"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x1 operator *(Bool2x1 left, Bool2x1 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool2x1"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool2x1"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool2x1"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x1 operator -(Bool2x1 left, Bool2x1 right) => default;
public static Bool2x1 operator !(Bool2x1 matrix) => default;
/// <summary>
/// Casts a <see cref="Bool2x1"/> value to a <see cref="Bool2"/> one.
@@ -797,39 +637,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool2x2"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x2 operator -(Bool2x2 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool2x2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool2x2"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool2x2"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x2 operator +(Bool2x2 left, Bool2x2 right) => default;
/// <summary>
/// Divides two <see cref="Bool2x2"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool2x2"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool2x2"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x2 operator /(Bool2x2 left, Bool2x2 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool2x2"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool2x2"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool2x2"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x2 operator *(Bool2x2 left, Bool2x2 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool2x2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool2x2"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool2x2"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x2 operator -(Bool2x2 left, Bool2x2 right) => default;
public static Bool2x2 operator !(Bool2x2 matrix) => default;
}
/// <inheritdoc cref="Bool2x3"/>
@@ -980,39 +788,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool2x3"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x3 operator -(Bool2x3 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool2x3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool2x3"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool2x3"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x3 operator +(Bool2x3 left, Bool2x3 right) => default;
/// <summary>
/// Divides two <see cref="Bool2x3"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool2x3"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool2x3"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x3 operator /(Bool2x3 left, Bool2x3 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool2x3"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool2x3"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool2x3"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x3 operator *(Bool2x3 left, Bool2x3 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool2x3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool2x3"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool2x3"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x3 operator -(Bool2x3 left, Bool2x3 right) => default;
public static Bool2x3 operator !(Bool2x3 matrix) => default;
}
/// <inheritdoc cref="Bool2x4"/>
@@ -1187,39 +963,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool2x4"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x4 operator -(Bool2x4 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool2x4"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool2x4"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool2x4"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x4 operator +(Bool2x4 left, Bool2x4 right) => default;
/// <summary>
/// Divides two <see cref="Bool2x4"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool2x4"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool2x4"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x4 operator /(Bool2x4 left, Bool2x4 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool2x4"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool2x4"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool2x4"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x4 operator *(Bool2x4 left, Bool2x4 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool2x4"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool2x4"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool2x4"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool2x4 operator -(Bool2x4 left, Bool2x4 right) => default;
public static Bool2x4 operator !(Bool2x4 matrix) => default;
}
/// <inheritdoc cref="Bool3x1"/>
@@ -1322,39 +1066,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool3x1"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x1 operator -(Bool3x1 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool3x1"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool3x1"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool3x1"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x1 operator +(Bool3x1 left, Bool3x1 right) => default;
/// <summary>
/// Divides two <see cref="Bool3x1"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool3x1"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool3x1"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x1 operator /(Bool3x1 left, Bool3x1 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool3x1"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool3x1"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool3x1"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x1 operator *(Bool3x1 left, Bool3x1 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool3x1"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool3x1"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool3x1"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x1 operator -(Bool3x1 left, Bool3x1 right) => default;
public static Bool3x1 operator !(Bool3x1 matrix) => default;
/// <summary>
/// Casts a <see cref="Bool3x1"/> value to a <see cref="Bool3"/> one.
@@ -1512,39 +1224,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool3x2"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x2 operator -(Bool3x2 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool3x2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool3x2"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool3x2"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x2 operator +(Bool3x2 left, Bool3x2 right) => default;
/// <summary>
/// Divides two <see cref="Bool3x2"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool3x2"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool3x2"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x2 operator /(Bool3x2 left, Bool3x2 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool3x2"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool3x2"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool3x2"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x2 operator *(Bool3x2 left, Bool3x2 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool3x2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool3x2"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool3x2"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x2 operator -(Bool3x2 left, Bool3x2 right) => default;
public static Bool3x2 operator !(Bool3x2 matrix) => default;
}
/// <inheritdoc cref="Bool3x3"/>
@@ -1732,39 +1412,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool3x3"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x3 operator -(Bool3x3 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool3x3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool3x3"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool3x3"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x3 operator +(Bool3x3 left, Bool3x3 right) => default;
/// <summary>
/// Divides two <see cref="Bool3x3"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool3x3"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool3x3"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x3 operator /(Bool3x3 left, Bool3x3 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool3x3"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool3x3"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool3x3"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x3 operator *(Bool3x3 left, Bool3x3 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool3x3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool3x3"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool3x3"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x3 operator -(Bool3x3 left, Bool3x3 right) => default;
public static Bool3x3 operator !(Bool3x3 matrix) => default;
}
/// <inheritdoc cref="Bool3x4"/>
@@ -1988,39 +1636,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool3x4"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x4 operator -(Bool3x4 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool3x4"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool3x4"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool3x4"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x4 operator +(Bool3x4 left, Bool3x4 right) => default;
/// <summary>
/// Divides two <see cref="Bool3x4"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool3x4"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool3x4"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x4 operator /(Bool3x4 left, Bool3x4 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool3x4"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool3x4"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool3x4"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x4 operator *(Bool3x4 left, Bool3x4 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool3x4"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool3x4"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool3x4"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool3x4 operator -(Bool3x4 left, Bool3x4 right) => default;
public static Bool3x4 operator !(Bool3x4 matrix) => default;
}
/// <inheritdoc cref="Bool4x1"/>
@@ -2134,39 +1750,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool4x1"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x1 operator -(Bool4x1 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool4x1"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool4x1"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool4x1"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x1 operator +(Bool4x1 left, Bool4x1 right) => default;
/// <summary>
/// Divides two <see cref="Bool4x1"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool4x1"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool4x1"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x1 operator /(Bool4x1 left, Bool4x1 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool4x1"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool4x1"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool4x1"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x1 operator *(Bool4x1 left, Bool4x1 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool4x1"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool4x1"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool4x1"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x1 operator -(Bool4x1 left, Bool4x1 right) => default;
public static Bool4x1 operator !(Bool4x1 matrix) => default;
/// <summary>
/// Casts a <see cref="Bool4x1"/> value to a <see cref="Bool4"/> one.
@@ -2349,39 +1933,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool4x2"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x2 operator -(Bool4x2 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool4x2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool4x2"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool4x2"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x2 operator +(Bool4x2 left, Bool4x2 right) => default;
/// <summary>
/// Divides two <see cref="Bool4x2"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool4x2"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool4x2"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x2 operator /(Bool4x2 left, Bool4x2 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool4x2"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool4x2"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool4x2"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x2 operator *(Bool4x2 left, Bool4x2 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool4x2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool4x2"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool4x2"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x2 operator -(Bool4x2 left, Bool4x2 right) => default;
public static Bool4x2 operator !(Bool4x2 matrix) => default;
}
/// <inheritdoc cref="Bool4x3"/>
@@ -2606,39 +2158,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool4x3"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x3 operator -(Bool4x3 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool4x3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool4x3"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool4x3"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x3 operator +(Bool4x3 left, Bool4x3 right) => default;
/// <summary>
/// Divides two <see cref="Bool4x3"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool4x3"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool4x3"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x3 operator /(Bool4x3 left, Bool4x3 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool4x3"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool4x3"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool4x3"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x3 operator *(Bool4x3 left, Bool4x3 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool4x3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool4x3"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool4x3"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x3 operator -(Bool4x3 left, Bool4x3 right) => default;
public static Bool4x3 operator !(Bool4x3 matrix) => default;
}
/// <inheritdoc cref="Bool4x4"/>
@@ -2911,38 +2431,6 @@ namespace ComputeSharp
/// </summary>
/// <param name="matrix">The <see cref="Bool4x4"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x4 operator -(Bool4x4 matrix) => default;
/// <summary>
/// Sums two <see cref="Bool4x4"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool4x4"/> value to sum.</param>
/// <param name="right">The second <see cref="Bool4x4"/> value to sum.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x4 operator +(Bool4x4 left, Bool4x4 right) => default;
/// <summary>
/// Divides two <see cref="Bool4x4"/> values (elementwise division).
/// </summary>
/// <param name="left">The first <see cref="Bool4x4"/> value to divide.</param>
/// <param name="right">The second <see cref="Bool4x4"/> value to divide.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x4 operator /(Bool4x4 left, Bool4x4 right) => default;
/// <summary>
/// Multiplies two <see cref="Bool4x4"/> values (elementwise product).
/// </summary>
/// <param name="left">The first <see cref="Bool4x4"/> value to multiply.</param>
/// <param name="right">The second <see cref="Bool4x4"/> value to multiply.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x4 operator *(Bool4x4 left, Bool4x4 right) => default;
/// <summary>
/// Subtracts two <see cref="Bool4x4"/> values.
/// </summary>
/// <param name="left">The first <see cref="Bool4x4"/> value to subtract.</param>
/// <param name="right">The second <see cref="Bool4x4"/> value to subtract.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Bool4x4 operator -(Bool4x4 left, Bool4x4 right) => default;
public static Bool4x4 operator !(Bool4x4 matrix) => default;
}
}
+5 -3
ファイルの表示
@@ -203,21 +203,23 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
PopIndent();
// Generate the negation operator
if (elementTypeName != "Bool" && elementTypeName != "UInt")
if (typeName != "UInt")
{
WriteLine("");
string operatorName = typeName == "Bool" ? "!" : "-";
#>
/// <summary>
/// Negates a <see cref="<#=fullTypeName#>"/> value.
/// </summary>
/// <param name="matrix">The <see cref="<#=fullTypeName#>"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static <#=fullTypeName#> operator -(<#=fullTypeName#> matrix) => default;
public static <#=fullTypeName#> operator <#=operatorName#>(<#=fullTypeName#> matrix) => default;
<#
}
// Generate the numerical operators
if (elementTypeName != "Bool")
if (typeName != "Bool")
{
WriteLine("");
#>
-112
ファイルの表示
@@ -80,13 +80,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt1x1"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt1x1"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt1x1 operator -(UInt1x1 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt1x1"/> values.
/// </summary>
@@ -204,13 +197,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt1x2"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt1x2"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt1x2 operator -(UInt1x2 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt1x2"/> values.
/// </summary>
@@ -345,13 +331,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt1x3"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt1x3"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt1x3 operator -(UInt1x3 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt1x3"/> values.
/// </summary>
@@ -497,13 +476,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt1x4"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt1x4"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt1x4 operator -(UInt1x4 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt1x4"/> values.
/// </summary>
@@ -627,13 +599,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt2x1"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt2x1"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt2x1 operator -(UInt2x1 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt2x1"/> values.
/// </summary>
@@ -792,13 +757,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt2x2"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt2x2"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt2x2 operator -(UInt2x2 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt2x2"/> values.
/// </summary>
@@ -975,13 +933,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt2x3"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt2x3"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt2x3 operator -(UInt2x3 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt2x3"/> values.
/// </summary>
@@ -1182,13 +1133,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt2x4"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt2x4"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt2x4 operator -(UInt2x4 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt2x4"/> values.
/// </summary>
@@ -1317,13 +1261,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt3x1"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt3x1"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt3x1 operator -(UInt3x1 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt3x1"/> values.
/// </summary>
@@ -1507,13 +1444,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt3x2"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt3x2"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt3x2 operator -(UInt3x2 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt3x2"/> values.
/// </summary>
@@ -1727,13 +1657,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt3x3"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt3x3"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt3x3 operator -(UInt3x3 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt3x3"/> values.
/// </summary>
@@ -1983,13 +1906,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt3x4"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt3x4"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt3x4 operator -(UInt3x4 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt3x4"/> values.
/// </summary>
@@ -2129,13 +2045,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt4x1"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt4x1"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt4x1 operator -(UInt4x1 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt4x1"/> values.
/// </summary>
@@ -2344,13 +2253,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt4x2"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt4x2"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt4x2 operator -(UInt4x2 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt4x2"/> values.
/// </summary>
@@ -2601,13 +2503,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt4x3"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt4x3"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt4x3 operator -(UInt4x3 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt4x3"/> values.
/// </summary>
@@ -2906,13 +2801,6 @@ namespace ComputeSharp
return matrix;
}
/// <summary>
/// Negates a <see cref="UInt4x4"/> value.
/// </summary>
/// <param name="matrix">The <see cref="UInt4x4"/> value to negate.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static UInt4x4 operator -(UInt4x4 matrix) => default;
/// <summary>
/// Sums two <see cref="UInt4x4"/> values.
/// </summary>