Add new HLSL >, >=, <, <=, ==, !=, % operators
このコミットが含まれているのは:
1 親
ebf906c062
コミット
34afa9a37d
37ファイル変更
+5656
-12
検索条件に一致するファイルはありません
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="bool2"/> HLSL type.
|
||||
|
||||
@@ -6,6 +6,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -405,6 +406,25 @@ public unsafe partial struct Bool2
|
||||
/// Negates a <see cref="Bool2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Bool2"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xy"/>.</returns>
|
||||
/// <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 Bool2 operator !(Bool2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Bool2"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator ==(Bool2 left, Bool2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Bool2"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator !=(Bool2 left, Bool2 right) => default;
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="bool3"/> HLSL type.
|
||||
|
||||
@@ -6,6 +6,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -1486,6 +1487,25 @@ public unsafe partial struct Bool3
|
||||
/// Negates a <see cref="Bool3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Bool3"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xyz"/>.</returns>
|
||||
/// <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 Bool3 operator !(Bool3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Bool3"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator ==(Bool3 left, Bool3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Bool3"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator !=(Bool3 left, Bool3 right) => default;
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="bool4"/> HLSL type.
|
||||
|
||||
@@ -6,6 +6,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -4127,6 +4128,25 @@ public unsafe partial struct Bool4
|
||||
/// Negates a <see cref="Bool4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Bool4"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xyzw"/>.</returns>
|
||||
/// <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 Bool4 operator !(Bool4 xyzw) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Bool4"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator ==(Bool4 left, Bool4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Bool4"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator !=(Bool4 left, Bool4 right) => default;
|
||||
}
|
||||
@@ -5,6 +5,8 @@ using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServ
|
||||
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <inheritdoc cref="Bool1x1"/>
|
||||
@@ -86,6 +88,24 @@ public unsafe partial struct Bool1x1
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool1x1"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool1x1"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool1x1"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool1x1"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool1x1"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool1x1"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Bool1x2"/>
|
||||
@@ -179,6 +199,24 @@ public unsafe partial struct Bool1x2
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool1x2"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool1x2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool1x2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool1x2"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool1x2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool1x2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Casts a <see cref="Bool2"/> value to a <see cref="Bool1x2"/> one.
|
||||
/// </summary>
|
||||
@@ -288,6 +326,24 @@ public unsafe partial struct Bool1x3
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool1x3"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool1x3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool1x3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool1x3"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool1x3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool1x3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Casts a <see cref="Bool3"/> value to a <see cref="Bool1x3"/> one.
|
||||
/// </summary>
|
||||
@@ -408,6 +464,24 @@ public unsafe partial struct Bool1x4
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool1x4"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool1x4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool1x4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool1x4"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool1x4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool1x4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Casts a <see cref="Bool4"/> value to a <see cref="Bool1x4"/> one.
|
||||
/// </summary>
|
||||
@@ -506,6 +580,24 @@ public unsafe partial struct Bool2x1
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool2x1"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool2x1"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool2x1"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool2x1"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool2x1"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool2x1"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Casts a <see cref="Bool2x1"/> value to a <see cref="Bool2"/> one.
|
||||
/// </summary>
|
||||
@@ -638,6 +730,24 @@ public unsafe partial struct Bool2x2
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool2x2"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool2x2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool2x2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool2x2"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool2x2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool2x2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Bool2x3"/>
|
||||
@@ -789,6 +899,24 @@ public unsafe partial struct Bool2x3
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool2x3"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool2x3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool2x3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool2x3"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool2x3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool2x3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Bool2x4"/>
|
||||
@@ -964,6 +1092,24 @@ public unsafe partial struct Bool2x4
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool2x4"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool2x4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool2x4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool2x4"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool2x4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool2x4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Bool3x1"/>
|
||||
@@ -1068,6 +1214,24 @@ public unsafe partial struct Bool3x1
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool3x1"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool3x1"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool3x1"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool3x1"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool3x1"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool3x1"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Casts a <see cref="Bool3x1"/> value to a <see cref="Bool3"/> one.
|
||||
/// </summary>
|
||||
@@ -1225,6 +1389,24 @@ public unsafe partial struct Bool3x2
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool3x2"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool3x2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool3x2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool3x2"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool3x2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool3x2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Bool3x3"/>
|
||||
@@ -1413,6 +1595,24 @@ public unsafe partial struct Bool3x3
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool3x3"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool3x3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool3x3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool3x3"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool3x3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool3x3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Bool3x4"/>
|
||||
@@ -1637,6 +1837,24 @@ public unsafe partial struct Bool3x4
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool3x4"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool3x4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool3x4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool3x4"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool3x4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool3x4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Bool4x1"/>
|
||||
@@ -1752,6 +1970,24 @@ public unsafe partial struct Bool4x1
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool4x1"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool4x1"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool4x1"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool4x1"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool4x1"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool4x1"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Casts a <see cref="Bool4x1"/> value to a <see cref="Bool4"/> one.
|
||||
/// </summary>
|
||||
@@ -1934,6 +2170,24 @@ public unsafe partial struct Bool4x2
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool4x2"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool4x2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool4x2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool4x2"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool4x2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool4x2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Bool4x3"/>
|
||||
@@ -2159,6 +2413,24 @@ public unsafe partial struct Bool4x3
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool4x3"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool4x3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool4x3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool4x3"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool4x3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool4x3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Bool4x4"/>
|
||||
@@ -2432,4 +2704,22 @@ public unsafe partial struct Bool4x4
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool4x4"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool4x4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool4x4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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>
|
||||
/// Compares two <see cref="Bool4x4"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Bool4x4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Bool4x4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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;
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="double2"/> HLSL type.
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -437,6 +438,7 @@ public unsafe partial struct Double2
|
||||
/// Negates a <see cref="Double2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Double2"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xy"/>.</returns>
|
||||
/// <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 Double2 operator -(Double2 xy) => default;
|
||||
|
||||
@@ -445,6 +447,7 @@ public unsafe partial struct Double2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double2 operator +(Double2 left, Double2 right) => default;
|
||||
|
||||
@@ -453,14 +456,25 @@ public unsafe partial struct Double2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double2 operator /(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double2 operator %(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double2 operator *(Double2 left, Double2 right) => default;
|
||||
|
||||
@@ -469,6 +483,61 @@ public unsafe partial struct Double2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double2 operator -(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double2"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator >(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double2"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator >=(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double2"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator <(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double2"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator <=(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double2"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator ==(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double2"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator !=(Double2 left, Double2 right) => default;
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="double3"/> HLSL type.
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -1518,6 +1519,7 @@ public unsafe partial struct Double3
|
||||
/// Negates a <see cref="Double3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Double3"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xyz"/>.</returns>
|
||||
/// <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 Double3 operator -(Double3 xyz) => default;
|
||||
|
||||
@@ -1526,6 +1528,7 @@ public unsafe partial struct Double3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double3 operator +(Double3 left, Double3 right) => default;
|
||||
|
||||
@@ -1534,14 +1537,25 @@ public unsafe partial struct Double3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double3 operator /(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double3 operator %(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double3 operator *(Double3 left, Double3 right) => default;
|
||||
|
||||
@@ -1550,6 +1564,61 @@ public unsafe partial struct Double3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double3 operator -(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double3"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator >(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double3"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator >=(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double3"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator <(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double3"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator <=(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double3"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator ==(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double3"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator !=(Double3 left, Double3 right) => default;
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="double4"/> HLSL type.
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -4159,6 +4160,7 @@ public unsafe partial struct Double4
|
||||
/// Negates a <see cref="Double4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Double4"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xyzw"/>.</returns>
|
||||
/// <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 Double4 operator -(Double4 xyzw) => default;
|
||||
|
||||
@@ -4167,6 +4169,7 @@ public unsafe partial struct Double4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double4 operator +(Double4 left, Double4 right) => default;
|
||||
|
||||
@@ -4175,14 +4178,25 @@ public unsafe partial struct Double4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double4 operator /(Double4 left, Double4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="Double4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double4 operator %(Double4 left, Double4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double4 operator *(Double4 left, Double4 right) => default;
|
||||
|
||||
@@ -4191,6 +4205,61 @@ public unsafe partial struct Double4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Double4 operator -(Double4 left, Double4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double4"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator >(Double4 left, Double4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double4"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator >=(Double4 left, Double4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double4"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator <(Double4 left, Double4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double4"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator <=(Double4 left, Double4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double4"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator ==(Double4 left, Double4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Double4"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator !=(Double4 left, Double4 right) => default;
|
||||
}
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -1,5 +1,7 @@
|
||||
using System.Numerics;
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -437,6 +438,7 @@ public unsafe partial struct Float2
|
||||
/// Negates a <see cref="Float2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Float2"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xy"/>.</returns>
|
||||
/// <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 Float2 operator -(Float2 xy) => default;
|
||||
|
||||
@@ -445,6 +447,7 @@ public unsafe partial struct Float2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float2 operator +(Float2 left, Float2 right) => default;
|
||||
|
||||
@@ -453,14 +456,25 @@ public unsafe partial struct Float2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float2 operator /(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float2 operator %(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float2 operator *(Float2 left, Float2 right) => default;
|
||||
|
||||
@@ -469,6 +483,61 @@ public unsafe partial struct Float2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float2 operator -(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float2"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator >(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float2"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator >=(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float2"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator <(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float2"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator <=(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float2"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator ==(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float2"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator !=(Float2 left, Float2 right) => default;
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
using System.Numerics;
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -1518,6 +1519,7 @@ public unsafe partial struct Float3
|
||||
/// Negates a <see cref="Float3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Float3"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xyz"/>.</returns>
|
||||
/// <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 Float3 operator -(Float3 xyz) => default;
|
||||
|
||||
@@ -1526,6 +1528,7 @@ public unsafe partial struct Float3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float3 operator +(Float3 left, Float3 right) => default;
|
||||
|
||||
@@ -1534,14 +1537,25 @@ public unsafe partial struct Float3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float3 operator /(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float3 operator %(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float3 operator *(Float3 left, Float3 right) => default;
|
||||
|
||||
@@ -1550,6 +1564,61 @@ public unsafe partial struct Float3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float3 operator -(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float3"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator >(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float3"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator >=(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float3"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator <(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float3"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator <=(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float3"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator ==(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float3"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator !=(Float3 left, Float3 right) => default;
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
using System.Numerics;
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -4159,6 +4160,7 @@ public unsafe partial struct Float4
|
||||
/// Negates a <see cref="Float4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Float4"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xyzw"/>.</returns>
|
||||
/// <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 Float4 operator -(Float4 xyzw) => default;
|
||||
|
||||
@@ -4167,6 +4169,7 @@ public unsafe partial struct Float4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float4 operator +(Float4 left, Float4 right) => default;
|
||||
|
||||
@@ -4175,14 +4178,25 @@ public unsafe partial struct Float4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float4 operator /(Float4 left, Float4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float4 operator %(Float4 left, Float4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float4 operator *(Float4 left, Float4 right) => default;
|
||||
|
||||
@@ -4191,6 +4205,61 @@ public unsafe partial struct Float4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Float4 operator -(Float4 left, Float4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float4"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator >(Float4 left, Float4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float4"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator >=(Float4 left, Float4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float4"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator <(Float4 left, Float4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float4"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator <=(Float4 left, Float4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float4"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator ==(Float4 left, Float4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Float4"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator !=(Float4 left, Float4 right) => default;
|
||||
}
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="int2"/> HLSL type.
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -437,6 +438,7 @@ public unsafe partial struct Int2
|
||||
/// Negates a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Int2"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xy"/>.</returns>
|
||||
/// <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 Int2 operator -(Int2 xy) => default;
|
||||
|
||||
@@ -445,6 +447,7 @@ public unsafe partial struct Int2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int2 operator +(Int2 left, Int2 right) => default;
|
||||
|
||||
@@ -453,14 +456,25 @@ public unsafe partial struct Int2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int2 operator /(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int2 operator %(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int2 operator *(Int2 left, Int2 right) => default;
|
||||
|
||||
@@ -469,6 +483,61 @@ public unsafe partial struct Int2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int2 operator -(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int2"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator >(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int2"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator >=(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int2"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator <(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int2"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator <=(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int2"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator ==(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int2"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator !=(Int2 left, Int2 right) => default;
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="int3"/> HLSL type.
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -1518,6 +1519,7 @@ public unsafe partial struct Int3
|
||||
/// Negates a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Int3"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xyz"/>.</returns>
|
||||
/// <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 Int3 operator -(Int3 xyz) => default;
|
||||
|
||||
@@ -1526,6 +1528,7 @@ public unsafe partial struct Int3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int3 operator +(Int3 left, Int3 right) => default;
|
||||
|
||||
@@ -1534,14 +1537,25 @@ public unsafe partial struct Int3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int3 operator /(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int3 operator %(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int3 operator *(Int3 left, Int3 right) => default;
|
||||
|
||||
@@ -1550,6 +1564,61 @@ public unsafe partial struct Int3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int3 operator -(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int3"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator >(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int3"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator >=(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int3"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator <(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int3"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator <=(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int3"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator ==(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int3"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator !=(Int3 left, Int3 right) => default;
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="int4"/> HLSL type.
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -4159,6 +4160,7 @@ public unsafe partial struct Int4
|
||||
/// Negates a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Int4"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="xyzw"/>.</returns>
|
||||
/// <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 Int4 operator -(Int4 xyzw) => default;
|
||||
|
||||
@@ -4167,6 +4169,7 @@ public unsafe partial struct Int4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int4 operator +(Int4 left, Int4 right) => default;
|
||||
|
||||
@@ -4175,14 +4178,25 @@ public unsafe partial struct Int4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int4 operator /(Int4 left, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int4 operator %(Int4 left, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int4 operator *(Int4 left, Int4 right) => default;
|
||||
|
||||
@@ -4191,6 +4205,61 @@ public unsafe partial struct Int4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Int4 operator -(Int4 left, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int4"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator >(Int4 left, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int4"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator >=(Int4 left, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int4"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator <(Int4 left, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int4"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator <=(Int4 left, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int4"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator ==(Int4 left, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int4"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator !=(Int4 left, Int4 right) => default;
|
||||
}
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -17,6 +17,8 @@ using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServ
|
||||
using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
<#
|
||||
@@ -221,6 +223,7 @@ public unsafe partial struct <#=fullTypeName#>
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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#> left, <#=fullTypeName#> right) => default;
|
||||
|
||||
@@ -229,14 +232,25 @@ public unsafe partial struct <#=fullTypeName#>
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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#> left, <#=fullTypeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="<#=fullTypeName#>"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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#> left, <#=fullTypeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="<#=fullTypeName#>"/> values (elementwise product).
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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#> left, <#=fullTypeName#> right) => default;
|
||||
|
||||
@@ -245,11 +259,68 @@ public unsafe partial struct <#=fullTypeName#>
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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#> left, <#=fullTypeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=fullTypeName#>"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=rows#>x<#=columns#> operator >(<#=fullTypeName#> left, <#=fullTypeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=fullTypeName#>"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=rows#>x<#=columns#> operator >=(<#=fullTypeName#> left, <#=fullTypeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=fullTypeName#>"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=rows#>x<#=columns#> operator <(<#=fullTypeName#> left, <#=fullTypeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=fullTypeName#>"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=rows#>x<#=columns#> operator <=(<#=fullTypeName#> left, <#=fullTypeName#> right) => default;
|
||||
<#
|
||||
}
|
||||
|
||||
WriteLine("");
|
||||
#>
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=fullTypeName#>"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=rows#>x<#=columns#> operator ==(<#=fullTypeName#> left, <#=fullTypeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=fullTypeName#>"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=fullTypeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=rows#>x<#=columns#> operator !=(<#=fullTypeName#> left, <#=fullTypeName#> right) => default;
|
||||
<#
|
||||
// Generate the casting operators for row/column vectors
|
||||
if (rows == 1 && columns > 1)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="uint2"/> HLSL type.
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -438,6 +439,7 @@ public unsafe partial struct UInt2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt2 operator +(UInt2 left, UInt2 right) => default;
|
||||
|
||||
@@ -446,14 +448,25 @@ public unsafe partial struct UInt2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt2 operator /(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="UInt2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt2 operator %(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="UInt2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt2 operator *(UInt2 left, UInt2 right) => default;
|
||||
|
||||
@@ -462,6 +475,61 @@ public unsafe partial struct UInt2
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt2 operator -(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt2"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator >(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt2"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator >=(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt2"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator <(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt2"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator <=(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt2"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator ==(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt2"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool2 operator !=(UInt2 left, UInt2 right) => default;
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="uint3"/> HLSL type.
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -1519,6 +1520,7 @@ public unsafe partial struct UInt3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt3 operator +(UInt3 left, UInt3 right) => default;
|
||||
|
||||
@@ -1527,14 +1529,25 @@ public unsafe partial struct UInt3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt3 operator /(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="UInt3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt3 operator %(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="UInt3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt3 operator *(UInt3 left, UInt3 right) => default;
|
||||
|
||||
@@ -1543,6 +1556,61 @@ public unsafe partial struct UInt3
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt3 operator -(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt3"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator >(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt3"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator >=(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt3"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator <(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt3"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator <=(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt3"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator ==(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt3"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool3 operator !=(UInt3 left, UInt3 right) => default;
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace ComputeSharp;
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> that maps the <see langword="uint4"/> HLSL type.
|
||||
|
||||
@@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -4160,6 +4161,7 @@ public unsafe partial struct UInt4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt4 operator +(UInt4 left, UInt4 right) => default;
|
||||
|
||||
@@ -4168,14 +4170,25 @@ public unsafe partial struct UInt4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt4 operator /(UInt4 left, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="UInt4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt4 operator %(UInt4 left, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="UInt4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt4 operator *(UInt4 left, UInt4 right) => default;
|
||||
|
||||
@@ -4184,6 +4197,61 @@ public unsafe partial struct UInt4
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 UInt4 operator -(UInt4 left, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt4"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator >(UInt4 left, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt4"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator >=(UInt4 left, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt4"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator <(UInt4 left, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt4"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator <=(UInt4 left, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt4"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator ==(UInt4 left, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="UInt4"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt4"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="UInt4"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool4 operator !=(UInt4 left, UInt4 right) => default;
|
||||
}
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -66,6 +66,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
@@ -234,6 +235,7 @@ public unsafe partial struct <#=typeName#>
|
||||
/// Negates a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="<#=argumentName#>">The <see cref="<#=typeName#>"/> value to negate.</param>
|
||||
/// <returns>The negated value of <paramref name="<#=argumentName#>"/>.</returns>
|
||||
/// <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 <#=typeName#> operator <#=operatorName#>(<#=typeName#> <#=argumentName#>) => default;
|
||||
<#
|
||||
@@ -249,6 +251,7 @@ public unsafe partial struct <#=typeName#>
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to sum.</param>
|
||||
/// <returns>The result of adding <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 <#=typeName#> operator +(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
@@ -257,14 +260,25 @@ public unsafe partial struct <#=typeName#>
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to divide.</param>
|
||||
/// <returns>The result of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 <#=typeName#> operator /(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the remainder of the division between two <see cref="<#=typeName#>"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to divide.</param>
|
||||
/// <returns>The remainder of dividing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 <#=typeName#> operator %(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="<#=typeName#>"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to multiply.</param>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
@@ -273,10 +287,68 @@ public unsafe partial struct <#=typeName#>
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to subtract.</param>
|
||||
/// <returns>The result of subtracting <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 <#=typeName#> operator -(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=typeName#>"/> values to see if the first is greater than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=i#> operator >(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=typeName#>"/> values to see if the first is greater than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=i#> operator >=(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=typeName#>"/> values to see if the first is lower than the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=i#> operator <(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=typeName#>"/> values to see if the first is lower than or equal to the second.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=i#> operator <=(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
<#
|
||||
}
|
||||
|
||||
WriteLine("");
|
||||
#>
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=typeName#>"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=i#> operator ==(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="<#=typeName#>"/> values to see if they are not equal.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to compare.</param>
|
||||
/// <returns>The result of comparing <paramref name="left"/> and <paramref name="right"/>.</returns>
|
||||
/// <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 Bool<#=i#> operator !=(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
<#
|
||||
#>
|
||||
}
|
||||
<#
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする