Add bitwise operators to HLSL vector types
このコミットが含まれているのは:
1 親
97447fbc68
コミット
4ad7bba4b8
7ファイル変更
+709
検索条件に一致するファイルはありません
@@ -543,6 +543,106 @@ public unsafe partial struct Int2
|
||||
/// <remarks>This method is 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>
|
||||
/// Bitwise negates a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Int2"/> value to bitwise negate.</param>
|
||||
/// <returns>The bitwise 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;
|
||||
|
||||
#if NEEDS_CSHARP_11
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Int2"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xy"/> right by <paramref name="amount"/>.</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, Int2 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Int2"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xy"/> right by <paramref name="amount"/>.</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, UInt2 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Int2"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xy"/> left by <paramref name="amount"/>.</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, Int2 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Int2"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xy"/> left by <paramref name="amount"/>.</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, UInt2 amount) => default;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int2"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="Int2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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>
|
||||
/// Bitwise ands a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int2"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="UInt2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ors a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int2"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="Int2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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>
|
||||
/// Bitwise ors a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int2"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="UInt2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise xors a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int2"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="Int2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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>
|
||||
/// Bitwise xors a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int2"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="UInt2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int2"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
|
||||
@@ -1629,6 +1629,106 @@ public unsafe partial struct Int3
|
||||
/// <remarks>This method is 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>
|
||||
/// Bitwise negates a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Int3"/> value to bitwise negate.</param>
|
||||
/// <returns>The bitwise 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;
|
||||
|
||||
#if NEEDS_CSHARP_11
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Int3"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyz"/> right by <paramref name="amount"/>.</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, Int3 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Int3"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyz"/> right by <paramref name="amount"/>.</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, UInt3 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Int3"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyz"/> left by <paramref name="amount"/>.</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, Int3 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Int3"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyz"/> left by <paramref name="amount"/>.</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, UInt3 amount) => default;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int3"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="Int3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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>
|
||||
/// Bitwise ands a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int3"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="UInt3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ors a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int3"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="Int3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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>
|
||||
/// Bitwise ors a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int3"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="UInt3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise xors a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int3"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="Int3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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>
|
||||
/// Bitwise xors a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int3"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="UInt3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int3"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
|
||||
@@ -4275,6 +4275,106 @@ public unsafe partial struct Int4
|
||||
/// <remarks>This method is 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>
|
||||
/// Bitwise negates a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Int4"/> value to bitwise negate.</param>
|
||||
/// <returns>The bitwise 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;
|
||||
|
||||
#if NEEDS_CSHARP_11
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Int4"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyzw"/> right by <paramref name="amount"/>.</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, Int4 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Int4"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyzw"/> right by <paramref name="amount"/>.</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, UInt4 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Int4"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyzw"/> left by <paramref name="amount"/>.</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, Int4 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Int4"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyzw"/> left by <paramref name="amount"/>.</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, UInt4 amount) => default;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int4"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="Int4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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>
|
||||
/// Bitwise ands a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int4"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="UInt4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ors a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int4"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="Int4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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>
|
||||
/// Bitwise ors a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int4"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="UInt4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise xors a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int4"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="Int4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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>
|
||||
/// Bitwise xors a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="Int4"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="UInt4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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, UInt4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two <see cref="Int4"/> values to see if they are equal.
|
||||
/// </summary>
|
||||
|
||||
@@ -535,6 +535,106 @@ public unsafe partial struct UInt2
|
||||
/// <remarks>This method is 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>
|
||||
/// Bitwise negates a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="UInt2"/> value to bitwise negate.</param>
|
||||
/// <returns>The bitwise 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 UInt2 operator ~(UInt2 xy) => default;
|
||||
|
||||
#if NEEDS_CSHARP_11
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="UInt2"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xy"/> right by <paramref name="amount"/>.</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 xy, Int2 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="UInt2"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xy"/> right by <paramref name="amount"/>.</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 xy, UInt2 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="UInt2"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xy"/> left by <paramref name="amount"/>.</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 xy, Int2 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="UInt2"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xy"/> left by <paramref name="amount"/>.</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 xy, UInt2 amount) => default;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt2"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="Int2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt2"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="UInt2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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>
|
||||
/// Bitwise ors a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt2"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="Int2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ors a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt2"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="UInt2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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>
|
||||
/// Bitwise xors a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt2"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="Int2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise xors a <see cref="UInt2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt2"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="UInt2"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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 they are equal.
|
||||
/// </summary>
|
||||
|
||||
@@ -1621,6 +1621,106 @@ public unsafe partial struct UInt3
|
||||
/// <remarks>This method is 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>
|
||||
/// Bitwise negates a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="UInt3"/> value to bitwise negate.</param>
|
||||
/// <returns>The bitwise 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 UInt3 operator ~(UInt3 xyz) => default;
|
||||
|
||||
#if NEEDS_CSHARP_11
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="UInt3"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyz"/> right by <paramref name="amount"/>.</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 xyz, Int3 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="UInt3"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyz"/> right by <paramref name="amount"/>.</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 xyz, UInt3 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="UInt3"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyz"/> left by <paramref name="amount"/>.</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 xyz, Int3 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="UInt3"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyz"/> left by <paramref name="amount"/>.</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 xyz, UInt3 amount) => default;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt3"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="Int3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt3"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="UInt3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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>
|
||||
/// Bitwise ors a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt3"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="Int3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ors a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt3"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="UInt3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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>
|
||||
/// Bitwise xors a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt3"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="Int3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise xors a <see cref="UInt3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt3"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="UInt3"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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 they are equal.
|
||||
/// </summary>
|
||||
|
||||
@@ -4267,6 +4267,106 @@ public unsafe partial struct UInt4
|
||||
/// <remarks>This method is 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>
|
||||
/// Bitwise negates a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="UInt4"/> value to bitwise negate.</param>
|
||||
/// <returns>The bitwise 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 UInt4 operator ~(UInt4 xyzw) => default;
|
||||
|
||||
#if NEEDS_CSHARP_11
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="UInt4"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyzw"/> right by <paramref name="amount"/>.</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 xyzw, Int4 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="UInt4"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyzw"/> right by <paramref name="amount"/>.</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 xyzw, UInt4 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="UInt4"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyzw"/> left by <paramref name="amount"/>.</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 xyzw, Int4 amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="UInt4"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="xyzw"/> left by <paramref name="amount"/>.</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 xyzw, UInt4 amount) => default;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt4"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="Int4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt4"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="UInt4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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>
|
||||
/// Bitwise ors a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt4"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="Int4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ors a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt4"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="UInt4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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>
|
||||
/// Bitwise xors a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt4"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="Int4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise xors a <see cref="UInt4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="UInt4"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="UInt4"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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 they are equal.
|
||||
/// </summary>
|
||||
|
||||
@@ -392,6 +392,115 @@ public unsafe partial struct <#=typeName#>
|
||||
<#
|
||||
}
|
||||
|
||||
// Generate the bitwise operators
|
||||
if (elementTypeName == "Int" || elementTypeName == "UInt")
|
||||
{
|
||||
string argumentName = "xyzw".Substring(0, i);
|
||||
|
||||
WriteLine("");
|
||||
#>
|
||||
/// <summary>
|
||||
/// Bitwise negates a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="<#=argumentName#>">The <see cref="<#=typeName#>"/> value to bitwise negate.</param>
|
||||
/// <returns>The bitwise 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 ~(<#=typeName#> <#=argumentName#>) => default;
|
||||
|
||||
#if NEEDS_CSHARP_11
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="<#=argumentName#>">The <see cref="<#=typeName#>"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="<#=argumentName#>"/> right by <paramref name="amount"/>.</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#> <#=argumentName#>, Int<#=i#> amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts right a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="<#=argumentName#>">The <see cref="<#=typeName#>"/> value to shift right.</param>
|
||||
/// <param name="amount">The amount to shift each element right by.</param>
|
||||
/// <returns>The result of shifting <paramref name="<#=argumentName#>"/> right by <paramref name="amount"/>.</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#> <#=argumentName#>, UInt<#=i#> amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="<#=argumentName#>">The <see cref="<#=typeName#>"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="<#=argumentName#>"/> left by <paramref name="amount"/>.</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#> <#=argumentName#>, Int<#=i#> amount) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Shifts left a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="<#=argumentName#>">The <see cref="<#=typeName#>"/> value to shift left.</param>
|
||||
/// <param name="amount">The amount to shift each element left by.</param>
|
||||
/// <returns>The result of shifting <paramref name="<#=argumentName#>"/> left by <paramref name="amount"/>.</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#> <#=argumentName#>, UInt<#=i#> amount) => default;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="<#=typeName#>"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="Int<#=i#>"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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, Int<#=i#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ands a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="<#=typeName#>"/> value to bitwise and.</param>
|
||||
/// <param name="right">The <see cref="UInt<#=i#>"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise and between <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, UInt<#=i#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ors a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="<#=typeName#>"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="Int<#=i#>"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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, Int<#=i#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise ors a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="<#=typeName#>"/> value to bitwise or.</param>
|
||||
/// <param name="right">The <see cref="UInt<#=i#>"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise or between <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, UInt<#=i#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise xors a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="<#=typeName#>"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="Int<#=i#>"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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, Int<#=i#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Bitwise xors a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="left">The <see cref="<#=typeName#>"/> value to bitwise xor.</param>
|
||||
/// <param name="right">The <see cref="UInt<#=i#>"/> value to combine.</param>
|
||||
/// <returns>The result of performing the bitwise xor between <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, UInt<#=i#> right) => default;
|
||||
<#
|
||||
}
|
||||
|
||||
WriteLine("");
|
||||
#>
|
||||
/// <summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする