diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.g.cs b/src/ComputeSharp.Core/Intrinsics/Hlsl.g.cs
index 9210e941..26191a04 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.g.cs
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.g.cs
@@ -1687,6 +1687,253 @@ partial class Hlsl
[HlslIntrinsicName("all")]
public static bool All(Bool4x4 x) => default;
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool2 And(Bool2 left, Bool2 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool3 And(Bool3 left, Bool3 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool4 And(Bool4 left, Bool4 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool1x1 And(Bool1x1 left, Bool1x1 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool1x2 And(Bool1x2 left, Bool1x2 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool1x3 And(Bool1x3 left, Bool1x3 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool1x4 And(Bool1x4 left, Bool1x4 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool2x1 And(Bool2x1 left, Bool2x1 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool2x2 And(Bool2x2 left, Bool2x2 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool2x3 And(Bool2x3 left, Bool2x3 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool2x4 And(Bool2x4 left, Bool2x4 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool3x1 And(Bool3x1 left, Bool3x1 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool3x2 And(Bool3x2 left, Bool3x2 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool3x3 And(Bool3x3 left, Bool3x3 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool3x4 And(Bool3x4 left, Bool3x4 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool4x1 And(Bool4x1 left, Bool4x1 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool4x2 And(Bool4x2 left, Bool4x2 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool4x3 And(Bool4x3 left, Bool4x3 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__And")]
+ public static Bool4x4 And(Bool4x4 left, Bool4x4 right) => default;
+
///
/// Determines if any components of the specified value are non-zero.
///
@@ -5413,1336 +5660,6 @@ partial class Hlsl
[HlslIntrinsicName("clamp")]
public static Int4x4 Clamp(Int4x4 x, Int4x4 min, Int4x4 max) => default;
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool2 ConditionalSelect(Bool2 mask, Bool2 left, Bool2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool3 ConditionalSelect(Bool3 mask, Bool3 left, Bool3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool4 ConditionalSelect(Bool4 mask, Bool4 left, Bool4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool1x1 ConditionalSelect(Bool1x1 mask, Bool1x1 left, Bool1x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool1x2 ConditionalSelect(Bool1x2 mask, Bool1x2 left, Bool1x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool1x3 ConditionalSelect(Bool1x3 mask, Bool1x3 left, Bool1x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool1x4 ConditionalSelect(Bool1x4 mask, Bool1x4 left, Bool1x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool2x1 ConditionalSelect(Bool2x1 mask, Bool2x1 left, Bool2x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool2x2 ConditionalSelect(Bool2x2 mask, Bool2x2 left, Bool2x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool2x3 ConditionalSelect(Bool2x3 mask, Bool2x3 left, Bool2x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool2x4 ConditionalSelect(Bool2x4 mask, Bool2x4 left, Bool2x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool3x1 ConditionalSelect(Bool3x1 mask, Bool3x1 left, Bool3x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool3x2 ConditionalSelect(Bool3x2 mask, Bool3x2 left, Bool3x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool3x3 ConditionalSelect(Bool3x3 mask, Bool3x3 left, Bool3x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool3x4 ConditionalSelect(Bool3x4 mask, Bool3x4 left, Bool3x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool4x1 ConditionalSelect(Bool4x1 mask, Bool4x1 left, Bool4x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool4x2 ConditionalSelect(Bool4x2 mask, Bool4x2 left, Bool4x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool4x3 ConditionalSelect(Bool4x3 mask, Bool4x3 left, Bool4x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Bool4x4 ConditionalSelect(Bool4x4 mask, Bool4x4 left, Bool4x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float2 ConditionalSelect(Bool2 mask, Float2 left, Float2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float3 ConditionalSelect(Bool3 mask, Float3 left, Float3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float4 ConditionalSelect(Bool4 mask, Float4 left, Float4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float1x1 ConditionalSelect(Bool1x1 mask, Float1x1 left, Float1x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float1x2 ConditionalSelect(Bool1x2 mask, Float1x2 left, Float1x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float1x3 ConditionalSelect(Bool1x3 mask, Float1x3 left, Float1x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float1x4 ConditionalSelect(Bool1x4 mask, Float1x4 left, Float1x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float2x1 ConditionalSelect(Bool2x1 mask, Float2x1 left, Float2x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float2x2 ConditionalSelect(Bool2x2 mask, Float2x2 left, Float2x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float2x3 ConditionalSelect(Bool2x3 mask, Float2x3 left, Float2x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float2x4 ConditionalSelect(Bool2x4 mask, Float2x4 left, Float2x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float3x1 ConditionalSelect(Bool3x1 mask, Float3x1 left, Float3x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float3x2 ConditionalSelect(Bool3x2 mask, Float3x2 left, Float3x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float3x3 ConditionalSelect(Bool3x3 mask, Float3x3 left, Float3x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float3x4 ConditionalSelect(Bool3x4 mask, Float3x4 left, Float3x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float4x1 ConditionalSelect(Bool4x1 mask, Float4x1 left, Float4x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float4x2 ConditionalSelect(Bool4x2 mask, Float4x2 left, Float4x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float4x3 ConditionalSelect(Bool4x3 mask, Float4x3 left, Float4x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Float4x4 ConditionalSelect(Bool4x4 mask, Float4x4 left, Float4x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double2 ConditionalSelect(Bool2 mask, Double2 left, Double2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double3 ConditionalSelect(Bool3 mask, Double3 left, Double3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double4 ConditionalSelect(Bool4 mask, Double4 left, Double4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double1x1 ConditionalSelect(Bool1x1 mask, Double1x1 left, Double1x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double1x2 ConditionalSelect(Bool1x2 mask, Double1x2 left, Double1x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double1x3 ConditionalSelect(Bool1x3 mask, Double1x3 left, Double1x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double1x4 ConditionalSelect(Bool1x4 mask, Double1x4 left, Double1x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double2x1 ConditionalSelect(Bool2x1 mask, Double2x1 left, Double2x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double2x2 ConditionalSelect(Bool2x2 mask, Double2x2 left, Double2x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double2x3 ConditionalSelect(Bool2x3 mask, Double2x3 left, Double2x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double2x4 ConditionalSelect(Bool2x4 mask, Double2x4 left, Double2x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double3x1 ConditionalSelect(Bool3x1 mask, Double3x1 left, Double3x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double3x2 ConditionalSelect(Bool3x2 mask, Double3x2 left, Double3x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double3x3 ConditionalSelect(Bool3x3 mask, Double3x3 left, Double3x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double3x4 ConditionalSelect(Bool3x4 mask, Double3x4 left, Double3x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double4x1 ConditionalSelect(Bool4x1 mask, Double4x1 left, Double4x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double4x2 ConditionalSelect(Bool4x2 mask, Double4x2 left, Double4x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double4x3 ConditionalSelect(Bool4x3 mask, Double4x3 left, Double4x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Double4x4 ConditionalSelect(Bool4x4 mask, Double4x4 left, Double4x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int2 ConditionalSelect(Bool2 mask, Int2 left, Int2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int3 ConditionalSelect(Bool3 mask, Int3 left, Int3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int4 ConditionalSelect(Bool4 mask, Int4 left, Int4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int1x1 ConditionalSelect(Bool1x1 mask, Int1x1 left, Int1x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int1x2 ConditionalSelect(Bool1x2 mask, Int1x2 left, Int1x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int1x3 ConditionalSelect(Bool1x3 mask, Int1x3 left, Int1x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int1x4 ConditionalSelect(Bool1x4 mask, Int1x4 left, Int1x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int2x1 ConditionalSelect(Bool2x1 mask, Int2x1 left, Int2x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int2x2 ConditionalSelect(Bool2x2 mask, Int2x2 left, Int2x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int2x3 ConditionalSelect(Bool2x3 mask, Int2x3 left, Int2x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int2x4 ConditionalSelect(Bool2x4 mask, Int2x4 left, Int2x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int3x1 ConditionalSelect(Bool3x1 mask, Int3x1 left, Int3x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int3x2 ConditionalSelect(Bool3x2 mask, Int3x2 left, Int3x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int3x3 ConditionalSelect(Bool3x3 mask, Int3x3 left, Int3x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int3x4 ConditionalSelect(Bool3x4 mask, Int3x4 left, Int3x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int4x1 ConditionalSelect(Bool4x1 mask, Int4x1 left, Int4x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int4x2 ConditionalSelect(Bool4x2 mask, Int4x2 left, Int4x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int4x3 ConditionalSelect(Bool4x3 mask, Int4x3 left, Int4x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static Int4x4 ConditionalSelect(Bool4x4 mask, Int4x4 left, Int4x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt2 ConditionalSelect(Bool2 mask, UInt2 left, UInt2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt3 ConditionalSelect(Bool3 mask, UInt3 left, UInt3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt4 ConditionalSelect(Bool4 mask, UInt4 left, UInt4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt1x1 ConditionalSelect(Bool1x1 mask, UInt1x1 left, UInt1x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt1x2 ConditionalSelect(Bool1x2 mask, UInt1x2 left, UInt1x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt1x3 ConditionalSelect(Bool1x3 mask, UInt1x3 left, UInt1x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt1x4 ConditionalSelect(Bool1x4 mask, UInt1x4 left, UInt1x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt2x1 ConditionalSelect(Bool2x1 mask, UInt2x1 left, UInt2x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt2x2 ConditionalSelect(Bool2x2 mask, UInt2x2 left, UInt2x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt2x3 ConditionalSelect(Bool2x3 mask, UInt2x3 left, UInt2x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt2x4 ConditionalSelect(Bool2x4 mask, UInt2x4 left, UInt2x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt3x1 ConditionalSelect(Bool3x1 mask, UInt3x1 left, UInt3x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt3x2 ConditionalSelect(Bool3x2 mask, UInt3x2 left, UInt3x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt3x3 ConditionalSelect(Bool3x3 mask, UInt3x3 left, UInt3x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt3x4 ConditionalSelect(Bool3x4 mask, UInt3x4 left, UInt3x4 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt4x1 ConditionalSelect(Bool4x1 mask, UInt4x1 left, UInt4x1 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt4x2 ConditionalSelect(Bool4x2 mask, UInt4x2 left, UInt4x2 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt4x3 ConditionalSelect(Bool4x3 mask, UInt4x3 left, UInt4x3 right) => default;
-
- ///
- /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
- ///
- /// The boolean mask used to drive selection.
- /// The first input vector or matrix value.
- /// The second input vector or matrix value.
- /// The new vector or matrix value with elements selected based on the input mask.
- ///
- /// For more info, see .
- /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
- ///
- [HlslIntrinsicName("__ConditionalSelect")]
- public static UInt4x4 ConditionalSelect(Bool4x4 mask, UInt4x4 left, UInt4x4 right) => default;
-
///
/// Returns the cosine of the specified value.
///
@@ -19293,6 +18210,253 @@ partial class Hlsl
[HlslIntrinsicName("normalize")]
public static Float4 Normalize(Float4 x) => default;
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool2 Or(Bool2 left, Bool2 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool3 Or(Bool3 left, Bool3 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool4 Or(Bool4 left, Bool4 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool1x1 Or(Bool1x1 left, Bool1x1 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool1x2 Or(Bool1x2 left, Bool1x2 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool1x3 Or(Bool1x3 left, Bool1x3 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool1x4 Or(Bool1x4 left, Bool1x4 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool2x1 Or(Bool2x1 left, Bool2x1 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool2x2 Or(Bool2x2 left, Bool2x2 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool2x3 Or(Bool2x3 left, Bool2x3 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool2x4 Or(Bool2x4 left, Bool2x4 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool3x1 Or(Bool3x1 left, Bool3x1 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool3x2 Or(Bool3x2 left, Bool3x2 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool3x3 Or(Bool3x3 left, Bool3x3 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool3x4 Or(Bool3x4 left, Bool3x4 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool4x1 Or(Bool4x1 left, Bool4x1 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool4x2 Or(Bool4x2 left, Bool4x2 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool4x3 Or(Bool4x3 left, Bool4x3 right) => default;
+
+ ///
+ /// Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.
+ ///
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements resulting from the boolean operation.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Or")]
+ public static Bool4x4 Or(Bool4x4 left, Bool4x4 right) => default;
+
///
/// Returns the specified value raised to the specified power.
///
@@ -21821,6 +20985,1336 @@ partial class Hlsl
[HlslIntrinsicName("saturate")]
public static Double4x4 Saturate(Double4x4 x) => default;
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool2 Select(Bool2 mask, Bool2 left, Bool2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool3 Select(Bool3 mask, Bool3 left, Bool3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool4 Select(Bool4 mask, Bool4 left, Bool4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool1x1 Select(Bool1x1 mask, Bool1x1 left, Bool1x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool1x2 Select(Bool1x2 mask, Bool1x2 left, Bool1x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool1x3 Select(Bool1x3 mask, Bool1x3 left, Bool1x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool1x4 Select(Bool1x4 mask, Bool1x4 left, Bool1x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool2x1 Select(Bool2x1 mask, Bool2x1 left, Bool2x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool2x2 Select(Bool2x2 mask, Bool2x2 left, Bool2x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool2x3 Select(Bool2x3 mask, Bool2x3 left, Bool2x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool2x4 Select(Bool2x4 mask, Bool2x4 left, Bool2x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool3x1 Select(Bool3x1 mask, Bool3x1 left, Bool3x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool3x2 Select(Bool3x2 mask, Bool3x2 left, Bool3x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool3x3 Select(Bool3x3 mask, Bool3x3 left, Bool3x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool3x4 Select(Bool3x4 mask, Bool3x4 left, Bool3x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool4x1 Select(Bool4x1 mask, Bool4x1 left, Bool4x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool4x2 Select(Bool4x2 mask, Bool4x2 left, Bool4x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool4x3 Select(Bool4x3 mask, Bool4x3 left, Bool4x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Bool4x4 Select(Bool4x4 mask, Bool4x4 left, Bool4x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float2 Select(Bool2 mask, Float2 left, Float2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float3 Select(Bool3 mask, Float3 left, Float3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float4 Select(Bool4 mask, Float4 left, Float4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float1x1 Select(Bool1x1 mask, Float1x1 left, Float1x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float1x2 Select(Bool1x2 mask, Float1x2 left, Float1x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float1x3 Select(Bool1x3 mask, Float1x3 left, Float1x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float1x4 Select(Bool1x4 mask, Float1x4 left, Float1x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float2x1 Select(Bool2x1 mask, Float2x1 left, Float2x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float2x2 Select(Bool2x2 mask, Float2x2 left, Float2x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float2x3 Select(Bool2x3 mask, Float2x3 left, Float2x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float2x4 Select(Bool2x4 mask, Float2x4 left, Float2x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float3x1 Select(Bool3x1 mask, Float3x1 left, Float3x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float3x2 Select(Bool3x2 mask, Float3x2 left, Float3x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float3x3 Select(Bool3x3 mask, Float3x3 left, Float3x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float3x4 Select(Bool3x4 mask, Float3x4 left, Float3x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float4x1 Select(Bool4x1 mask, Float4x1 left, Float4x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float4x2 Select(Bool4x2 mask, Float4x2 left, Float4x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float4x3 Select(Bool4x3 mask, Float4x3 left, Float4x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Float4x4 Select(Bool4x4 mask, Float4x4 left, Float4x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double2 Select(Bool2 mask, Double2 left, Double2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double3 Select(Bool3 mask, Double3 left, Double3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double4 Select(Bool4 mask, Double4 left, Double4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double1x1 Select(Bool1x1 mask, Double1x1 left, Double1x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double1x2 Select(Bool1x2 mask, Double1x2 left, Double1x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double1x3 Select(Bool1x3 mask, Double1x3 left, Double1x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double1x4 Select(Bool1x4 mask, Double1x4 left, Double1x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double2x1 Select(Bool2x1 mask, Double2x1 left, Double2x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double2x2 Select(Bool2x2 mask, Double2x2 left, Double2x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double2x3 Select(Bool2x3 mask, Double2x3 left, Double2x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double2x4 Select(Bool2x4 mask, Double2x4 left, Double2x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double3x1 Select(Bool3x1 mask, Double3x1 left, Double3x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double3x2 Select(Bool3x2 mask, Double3x2 left, Double3x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double3x3 Select(Bool3x3 mask, Double3x3 left, Double3x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double3x4 Select(Bool3x4 mask, Double3x4 left, Double3x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double4x1 Select(Bool4x1 mask, Double4x1 left, Double4x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double4x2 Select(Bool4x2 mask, Double4x2 left, Double4x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double4x3 Select(Bool4x3 mask, Double4x3 left, Double4x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Double4x4 Select(Bool4x4 mask, Double4x4 left, Double4x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int2 Select(Bool2 mask, Int2 left, Int2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int3 Select(Bool3 mask, Int3 left, Int3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int4 Select(Bool4 mask, Int4 left, Int4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int1x1 Select(Bool1x1 mask, Int1x1 left, Int1x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int1x2 Select(Bool1x2 mask, Int1x2 left, Int1x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int1x3 Select(Bool1x3 mask, Int1x3 left, Int1x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int1x4 Select(Bool1x4 mask, Int1x4 left, Int1x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int2x1 Select(Bool2x1 mask, Int2x1 left, Int2x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int2x2 Select(Bool2x2 mask, Int2x2 left, Int2x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int2x3 Select(Bool2x3 mask, Int2x3 left, Int2x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int2x4 Select(Bool2x4 mask, Int2x4 left, Int2x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int3x1 Select(Bool3x1 mask, Int3x1 left, Int3x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int3x2 Select(Bool3x2 mask, Int3x2 left, Int3x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int3x3 Select(Bool3x3 mask, Int3x3 left, Int3x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int3x4 Select(Bool3x4 mask, Int3x4 left, Int3x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int4x1 Select(Bool4x1 mask, Int4x1 left, Int4x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int4x2 Select(Bool4x2 mask, Int4x2 left, Int4x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int4x3 Select(Bool4x3 mask, Int4x3 left, Int4x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static Int4x4 Select(Bool4x4 mask, Int4x4 left, Int4x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt2 Select(Bool2 mask, UInt2 left, UInt2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt3 Select(Bool3 mask, UInt3 left, UInt3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt4 Select(Bool4 mask, UInt4 left, UInt4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt1x1 Select(Bool1x1 mask, UInt1x1 left, UInt1x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt1x2 Select(Bool1x2 mask, UInt1x2 left, UInt1x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt1x3 Select(Bool1x3 mask, UInt1x3 left, UInt1x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt1x4 Select(Bool1x4 mask, UInt1x4 left, UInt1x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt2x1 Select(Bool2x1 mask, UInt2x1 left, UInt2x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt2x2 Select(Bool2x2 mask, UInt2x2 left, UInt2x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt2x3 Select(Bool2x3 mask, UInt2x3 left, UInt2x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt2x4 Select(Bool2x4 mask, UInt2x4 left, UInt2x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt3x1 Select(Bool3x1 mask, UInt3x1 left, UInt3x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt3x2 Select(Bool3x2 mask, UInt3x2 left, UInt3x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt3x3 Select(Bool3x3 mask, UInt3x3 left, UInt3x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt3x4 Select(Bool3x4 mask, UInt3x4 left, UInt3x4 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt4x1 Select(Bool4x1 mask, UInt4x1 left, UInt4x1 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt4x2 Select(Bool4x2 mask, UInt4x2 left, UInt4x2 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt4x3 Select(Bool4x3 mask, UInt4x3 left, UInt4x3 right) => default;
+
+ ///
+ /// Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.
+ ///
+ /// The boolean mask used to drive selection.
+ /// The first input vector or matrix value.
+ /// The second input vector or matrix value.
+ /// The new vector or matrix value with elements selected based on the input mask.
+ ///
+ /// For more info, see .
+ /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
+ ///
+ [HlslIntrinsicName("__Select")]
+ public static UInt4x4 Select(Bool4x4 mask, UInt4x4 left, UInt4x4 right) => default;
+
///
/// Returns the sign of the input value.
///
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.ttinclude b/src/ComputeSharp.Core/Intrinsics/Hlsl.ttinclude
index 41244274..96f1588d 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.ttinclude
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.ttinclude
@@ -193,6 +193,41 @@ var Intrinsics = new[]
}
},
new
+ {
+ Name = "And",
+ HlslName = "__And",
+ Summary = "Performs a vectorized, non short-circuiting boolean 'AND' operation between two operands.",
+ Url = "https://learn.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-operators#boolean-math-operators",
+ Parameters = new[]
+ {
+ new { IsOut = false, Name = "left", Info = "The first input vector or matrix value." },
+ new { IsOut = false, Name = "right", Info = "The second input vector or matrix value." }
+ },
+ Returns = "The new vector or matrix value with elements resulting from the boolean operation.",
+ Overloads = new[]
+ {
+ new { Return = "Bool2", Params = new[] { "Bool2", "Bool2" } },
+ new { Return = "Bool3", Params = new[] { "Bool3", "Bool3" } },
+ new { Return = "Bool4", Params = new[] { "Bool4", "Bool4" } },
+ new { Return = "Bool1x1", Params = new[] { "Bool1x1", "Bool1x1" } },
+ new { Return = "Bool1x2", Params = new[] { "Bool1x2", "Bool1x2" } },
+ new { Return = "Bool1x3", Params = new[] { "Bool1x3", "Bool1x3" } },
+ new { Return = "Bool1x4", Params = new[] { "Bool1x4", "Bool1x4" } },
+ new { Return = "Bool2x1", Params = new[] { "Bool2x1", "Bool2x1" } },
+ new { Return = "Bool2x2", Params = new[] { "Bool2x2", "Bool2x2" } },
+ new { Return = "Bool2x3", Params = new[] { "Bool2x3", "Bool2x3" } },
+ new { Return = "Bool2x4", Params = new[] { "Bool2x4", "Bool2x4" } },
+ new { Return = "Bool3x1", Params = new[] { "Bool3x1", "Bool3x1" } },
+ new { Return = "Bool3x2", Params = new[] { "Bool3x2", "Bool3x2" } },
+ new { Return = "Bool3x3", Params = new[] { "Bool3x3", "Bool3x3" } },
+ new { Return = "Bool3x4", Params = new[] { "Bool3x4", "Bool3x4" } },
+ new { Return = "Bool4x1", Params = new[] { "Bool4x1", "Bool4x1" } },
+ new { Return = "Bool4x2", Params = new[] { "Bool4x2", "Bool4x2" } },
+ new { Return = "Bool4x3", Params = new[] { "Bool4x3", "Bool4x3" } },
+ new { Return = "Bool4x4", Params = new[] { "Bool4x4", "Bool4x4" } }
+ }
+ },
+ new
{
Name = "Any",
HlslName = "any",
@@ -649,118 +684,6 @@ var Intrinsics = new[]
}
},
new
- {
- Name = "ConditionalSelect",
- HlslName = "__ConditionalSelect",
- Summary = "Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.",
- Url = "https://learn.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-operators#boolean-math-operators",
- Parameters = new[]
- {
- new { IsOut = false, Name = "mask", Info = "The boolean mask used to drive selection." },
- new { IsOut = false, Name = "left", Info = "The first input vector or matrix value." },
- new { IsOut = false, Name = "right", Info = "The second input vector or matrix value." }
- },
- Returns = "The new vector or matrix value with elements selected based on the input mask.",
- Overloads = new[]
- {
- new { Return = "Bool2", Params = new[] { "Bool2", "Bool2", "Bool2" } },
- new { Return = "Bool3", Params = new[] { "Bool3", "Bool3", "Bool3" } },
- new { Return = "Bool4", Params = new[] { "Bool4", "Bool4", "Bool4" } },
- new { Return = "Bool1x1", Params = new[] { "Bool1x1", "Bool1x1", "Bool1x1" } },
- new { Return = "Bool1x2", Params = new[] { "Bool1x2", "Bool1x2", "Bool1x2" } },
- new { Return = "Bool1x3", Params = new[] { "Bool1x3", "Bool1x3", "Bool1x3" } },
- new { Return = "Bool1x4", Params = new[] { "Bool1x4", "Bool1x4", "Bool1x4" } },
- new { Return = "Bool2x1", Params = new[] { "Bool2x1", "Bool2x1", "Bool2x1" } },
- new { Return = "Bool2x2", Params = new[] { "Bool2x2", "Bool2x2", "Bool2x2" } },
- new { Return = "Bool2x3", Params = new[] { "Bool2x3", "Bool2x3", "Bool2x3" } },
- new { Return = "Bool2x4", Params = new[] { "Bool2x4", "Bool2x4", "Bool2x4" } },
- new { Return = "Bool3x1", Params = new[] { "Bool3x1", "Bool3x1", "Bool3x1" } },
- new { Return = "Bool3x2", Params = new[] { "Bool3x2", "Bool3x2", "Bool3x2" } },
- new { Return = "Bool3x3", Params = new[] { "Bool3x3", "Bool3x3", "Bool3x3" } },
- new { Return = "Bool3x4", Params = new[] { "Bool3x4", "Bool3x4", "Bool3x4" } },
- new { Return = "Bool4x1", Params = new[] { "Bool4x1", "Bool4x1", "Bool4x1" } },
- new { Return = "Bool4x2", Params = new[] { "Bool4x2", "Bool4x2", "Bool4x2" } },
- new { Return = "Bool4x3", Params = new[] { "Bool4x3", "Bool4x3", "Bool4x3" } },
- new { Return = "Bool4x4", Params = new[] { "Bool4x4", "Bool4x4", "Bool4x4" } },
- new { Return = "Float2", Params = new[] { "Bool2", "Float2", "Float2" } },
- new { Return = "Float3", Params = new[] { "Bool3", "Float3", "Float3" } },
- new { Return = "Float4", Params = new[] { "Bool4", "Float4", "Float4" } },
- new { Return = "Float1x1", Params = new[] { "Bool1x1", "Float1x1", "Float1x1" } },
- new { Return = "Float1x2", Params = new[] { "Bool1x2", "Float1x2", "Float1x2" } },
- new { Return = "Float1x3", Params = new[] { "Bool1x3", "Float1x3", "Float1x3" } },
- new { Return = "Float1x4", Params = new[] { "Bool1x4", "Float1x4", "Float1x4" } },
- new { Return = "Float2x1", Params = new[] { "Bool2x1", "Float2x1", "Float2x1" } },
- new { Return = "Float2x2", Params = new[] { "Bool2x2", "Float2x2", "Float2x2" } },
- new { Return = "Float2x3", Params = new[] { "Bool2x3", "Float2x3", "Float2x3" } },
- new { Return = "Float2x4", Params = new[] { "Bool2x4", "Float2x4", "Float2x4" } },
- new { Return = "Float3x1", Params = new[] { "Bool3x1", "Float3x1", "Float3x1" } },
- new { Return = "Float3x2", Params = new[] { "Bool3x2", "Float3x2", "Float3x2" } },
- new { Return = "Float3x3", Params = new[] { "Bool3x3", "Float3x3", "Float3x3" } },
- new { Return = "Float3x4", Params = new[] { "Bool3x4", "Float3x4", "Float3x4" } },
- new { Return = "Float4x1", Params = new[] { "Bool4x1", "Float4x1", "Float4x1" } },
- new { Return = "Float4x2", Params = new[] { "Bool4x2", "Float4x2", "Float4x2" } },
- new { Return = "Float4x3", Params = new[] { "Bool4x3", "Float4x3", "Float4x3" } },
- new { Return = "Float4x4", Params = new[] { "Bool4x4", "Float4x4", "Float4x4" } },
- new { Return = "Double2", Params = new[] { "Bool2", "Double2", "Double2" } },
- new { Return = "Double3", Params = new[] { "Bool3", "Double3", "Double3" } },
- new { Return = "Double4", Params = new[] { "Bool4", "Double4", "Double4" } },
- new { Return = "Double1x1", Params = new[] { "Bool1x1", "Double1x1", "Double1x1" } },
- new { Return = "Double1x2", Params = new[] { "Bool1x2", "Double1x2", "Double1x2" } },
- new { Return = "Double1x3", Params = new[] { "Bool1x3", "Double1x3", "Double1x3" } },
- new { Return = "Double1x4", Params = new[] { "Bool1x4", "Double1x4", "Double1x4" } },
- new { Return = "Double2x1", Params = new[] { "Bool2x1", "Double2x1", "Double2x1" } },
- new { Return = "Double2x2", Params = new[] { "Bool2x2", "Double2x2", "Double2x2" } },
- new { Return = "Double2x3", Params = new[] { "Bool2x3", "Double2x3", "Double2x3" } },
- new { Return = "Double2x4", Params = new[] { "Bool2x4", "Double2x4", "Double2x4" } },
- new { Return = "Double3x1", Params = new[] { "Bool3x1", "Double3x1", "Double3x1" } },
- new { Return = "Double3x2", Params = new[] { "Bool3x2", "Double3x2", "Double3x2" } },
- new { Return = "Double3x3", Params = new[] { "Bool3x3", "Double3x3", "Double3x3" } },
- new { Return = "Double3x4", Params = new[] { "Bool3x4", "Double3x4", "Double3x4" } },
- new { Return = "Double4x1", Params = new[] { "Bool4x1", "Double4x1", "Double4x1" } },
- new { Return = "Double4x2", Params = new[] { "Bool4x2", "Double4x2", "Double4x2" } },
- new { Return = "Double4x3", Params = new[] { "Bool4x3", "Double4x3", "Double4x3" } },
- new { Return = "Double4x4", Params = new[] { "Bool4x4", "Double4x4", "Double4x4" } },
- new { Return = "Int2", Params = new[] { "Bool2", "Int2", "Int2" } },
- new { Return = "Int3", Params = new[] { "Bool3", "Int3", "Int3" } },
- new { Return = "Int4", Params = new[] { "Bool4", "Int4", "Int4" } },
- new { Return = "Int1x1", Params = new[] { "Bool1x1", "Int1x1", "Int1x1" } },
- new { Return = "Int1x2", Params = new[] { "Bool1x2", "Int1x2", "Int1x2" } },
- new { Return = "Int1x3", Params = new[] { "Bool1x3", "Int1x3", "Int1x3" } },
- new { Return = "Int1x4", Params = new[] { "Bool1x4", "Int1x4", "Int1x4" } },
- new { Return = "Int2x1", Params = new[] { "Bool2x1", "Int2x1", "Int2x1" } },
- new { Return = "Int2x2", Params = new[] { "Bool2x2", "Int2x2", "Int2x2" } },
- new { Return = "Int2x3", Params = new[] { "Bool2x3", "Int2x3", "Int2x3" } },
- new { Return = "Int2x4", Params = new[] { "Bool2x4", "Int2x4", "Int2x4" } },
- new { Return = "Int3x1", Params = new[] { "Bool3x1", "Int3x1", "Int3x1" } },
- new { Return = "Int3x2", Params = new[] { "Bool3x2", "Int3x2", "Int3x2" } },
- new { Return = "Int3x3", Params = new[] { "Bool3x3", "Int3x3", "Int3x3" } },
- new { Return = "Int3x4", Params = new[] { "Bool3x4", "Int3x4", "Int3x4" } },
- new { Return = "Int4x1", Params = new[] { "Bool4x1", "Int4x1", "Int4x1" } },
- new { Return = "Int4x2", Params = new[] { "Bool4x2", "Int4x2", "Int4x2" } },
- new { Return = "Int4x3", Params = new[] { "Bool4x3", "Int4x3", "Int4x3" } },
- new { Return = "Int4x4", Params = new[] { "Bool4x4", "Int4x4", "Int4x4" } },
- new { Return = "UInt2", Params = new[] { "Bool2", "UInt2", "UInt2" } },
- new { Return = "UInt3", Params = new[] { "Bool3", "UInt3", "UInt3" } },
- new { Return = "UInt4", Params = new[] { "Bool4", "UInt4", "UInt4" } },
- new { Return = "UInt1x1", Params = new[] { "Bool1x1", "UInt1x1", "UInt1x1" } },
- new { Return = "UInt1x2", Params = new[] { "Bool1x2", "UInt1x2", "UInt1x2" } },
- new { Return = "UInt1x3", Params = new[] { "Bool1x3", "UInt1x3", "UInt1x3" } },
- new { Return = "UInt1x4", Params = new[] { "Bool1x4", "UInt1x4", "UInt1x4" } },
- new { Return = "UInt2x1", Params = new[] { "Bool2x1", "UInt2x1", "UInt2x1" } },
- new { Return = "UInt2x2", Params = new[] { "Bool2x2", "UInt2x2", "UInt2x2" } },
- new { Return = "UInt2x3", Params = new[] { "Bool2x3", "UInt2x3", "UInt2x3" } },
- new { Return = "UInt2x4", Params = new[] { "Bool2x4", "UInt2x4", "UInt2x4" } },
- new { Return = "UInt3x1", Params = new[] { "Bool3x1", "UInt3x1", "UInt3x1" } },
- new { Return = "UInt3x2", Params = new[] { "Bool3x2", "UInt3x2", "UInt3x2" } },
- new { Return = "UInt3x3", Params = new[] { "Bool3x3", "UInt3x3", "UInt3x3" } },
- new { Return = "UInt3x4", Params = new[] { "Bool3x4", "UInt3x4", "UInt3x4" } },
- new { Return = "UInt4x1", Params = new[] { "Bool4x1", "UInt4x1", "UInt4x1" } },
- new { Return = "UInt4x2", Params = new[] { "Bool4x2", "UInt4x2", "UInt4x2" } },
- new { Return = "UInt4x3", Params = new[] { "Bool4x3", "UInt4x3", "UInt4x3" } },
- new { Return = "UInt4x4", Params = new[] { "Bool4x4", "UInt4x4", "UInt4x4" } }
- }
- },
- new
{
Name = "Cos",
HlslName = "cos",
@@ -2394,6 +2317,41 @@ var Intrinsics = new[]
}
},
new
+ {
+ Name = "Or",
+ HlslName = "__Or",
+ Summary = "Performs a vectorized, non short-circuiting boolean 'OR' operation between two operands.",
+ Url = "https://learn.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-operators#boolean-math-operators",
+ Parameters = new[]
+ {
+ new { IsOut = false, Name = "left", Info = "The first input vector or matrix value." },
+ new { IsOut = false, Name = "right", Info = "The second input vector or matrix value." }
+ },
+ Returns = "The new vector or matrix value with elements resulting from the boolean operation.",
+ Overloads = new[]
+ {
+ new { Return = "Bool2", Params = new[] { "Bool2", "Bool2" } },
+ new { Return = "Bool3", Params = new[] { "Bool3", "Bool3" } },
+ new { Return = "Bool4", Params = new[] { "Bool4", "Bool4" } },
+ new { Return = "Bool1x1", Params = new[] { "Bool1x1", "Bool1x1" } },
+ new { Return = "Bool1x2", Params = new[] { "Bool1x2", "Bool1x2" } },
+ new { Return = "Bool1x3", Params = new[] { "Bool1x3", "Bool1x3" } },
+ new { Return = "Bool1x4", Params = new[] { "Bool1x4", "Bool1x4" } },
+ new { Return = "Bool2x1", Params = new[] { "Bool2x1", "Bool2x1" } },
+ new { Return = "Bool2x2", Params = new[] { "Bool2x2", "Bool2x2" } },
+ new { Return = "Bool2x3", Params = new[] { "Bool2x3", "Bool2x3" } },
+ new { Return = "Bool2x4", Params = new[] { "Bool2x4", "Bool2x4" } },
+ new { Return = "Bool3x1", Params = new[] { "Bool3x1", "Bool3x1" } },
+ new { Return = "Bool3x2", Params = new[] { "Bool3x2", "Bool3x2" } },
+ new { Return = "Bool3x3", Params = new[] { "Bool3x3", "Bool3x3" } },
+ new { Return = "Bool3x4", Params = new[] { "Bool3x4", "Bool3x4" } },
+ new { Return = "Bool4x1", Params = new[] { "Bool4x1", "Bool4x1" } },
+ new { Return = "Bool4x2", Params = new[] { "Bool4x2", "Bool4x2" } },
+ new { Return = "Bool4x3", Params = new[] { "Bool4x3", "Bool4x3" } },
+ new { Return = "Bool4x4", Params = new[] { "Bool4x4", "Bool4x4" } }
+ }
+ },
+ new
{
Name = "Pow",
HlslName = "pow",
@@ -2737,6 +2695,118 @@ var Intrinsics = new[]
}
},
new
+ {
+ Name = "Select",
+ HlslName = "__Select",
+ Summary = "Creates a new vector or matrix value with elements selected between two specified source vector or matrix values based on an input boolean mask.",
+ Url = "https://learn.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-operators#boolean-math-operators",
+ Parameters = new[]
+ {
+ new { IsOut = false, Name = "mask", Info = "The boolean mask used to drive selection." },
+ new { IsOut = false, Name = "left", Info = "The first input vector or matrix value." },
+ new { IsOut = false, Name = "right", Info = "The second input vector or matrix value." }
+ },
+ Returns = "The new vector or matrix value with elements selected based on the input mask.",
+ Overloads = new[]
+ {
+ new { Return = "Bool2", Params = new[] { "Bool2", "Bool2", "Bool2" } },
+ new { Return = "Bool3", Params = new[] { "Bool3", "Bool3", "Bool3" } },
+ new { Return = "Bool4", Params = new[] { "Bool4", "Bool4", "Bool4" } },
+ new { Return = "Bool1x1", Params = new[] { "Bool1x1", "Bool1x1", "Bool1x1" } },
+ new { Return = "Bool1x2", Params = new[] { "Bool1x2", "Bool1x2", "Bool1x2" } },
+ new { Return = "Bool1x3", Params = new[] { "Bool1x3", "Bool1x3", "Bool1x3" } },
+ new { Return = "Bool1x4", Params = new[] { "Bool1x4", "Bool1x4", "Bool1x4" } },
+ new { Return = "Bool2x1", Params = new[] { "Bool2x1", "Bool2x1", "Bool2x1" } },
+ new { Return = "Bool2x2", Params = new[] { "Bool2x2", "Bool2x2", "Bool2x2" } },
+ new { Return = "Bool2x3", Params = new[] { "Bool2x3", "Bool2x3", "Bool2x3" } },
+ new { Return = "Bool2x4", Params = new[] { "Bool2x4", "Bool2x4", "Bool2x4" } },
+ new { Return = "Bool3x1", Params = new[] { "Bool3x1", "Bool3x1", "Bool3x1" } },
+ new { Return = "Bool3x2", Params = new[] { "Bool3x2", "Bool3x2", "Bool3x2" } },
+ new { Return = "Bool3x3", Params = new[] { "Bool3x3", "Bool3x3", "Bool3x3" } },
+ new { Return = "Bool3x4", Params = new[] { "Bool3x4", "Bool3x4", "Bool3x4" } },
+ new { Return = "Bool4x1", Params = new[] { "Bool4x1", "Bool4x1", "Bool4x1" } },
+ new { Return = "Bool4x2", Params = new[] { "Bool4x2", "Bool4x2", "Bool4x2" } },
+ new { Return = "Bool4x3", Params = new[] { "Bool4x3", "Bool4x3", "Bool4x3" } },
+ new { Return = "Bool4x4", Params = new[] { "Bool4x4", "Bool4x4", "Bool4x4" } },
+ new { Return = "Float2", Params = new[] { "Bool2", "Float2", "Float2" } },
+ new { Return = "Float3", Params = new[] { "Bool3", "Float3", "Float3" } },
+ new { Return = "Float4", Params = new[] { "Bool4", "Float4", "Float4" } },
+ new { Return = "Float1x1", Params = new[] { "Bool1x1", "Float1x1", "Float1x1" } },
+ new { Return = "Float1x2", Params = new[] { "Bool1x2", "Float1x2", "Float1x2" } },
+ new { Return = "Float1x3", Params = new[] { "Bool1x3", "Float1x3", "Float1x3" } },
+ new { Return = "Float1x4", Params = new[] { "Bool1x4", "Float1x4", "Float1x4" } },
+ new { Return = "Float2x1", Params = new[] { "Bool2x1", "Float2x1", "Float2x1" } },
+ new { Return = "Float2x2", Params = new[] { "Bool2x2", "Float2x2", "Float2x2" } },
+ new { Return = "Float2x3", Params = new[] { "Bool2x3", "Float2x3", "Float2x3" } },
+ new { Return = "Float2x4", Params = new[] { "Bool2x4", "Float2x4", "Float2x4" } },
+ new { Return = "Float3x1", Params = new[] { "Bool3x1", "Float3x1", "Float3x1" } },
+ new { Return = "Float3x2", Params = new[] { "Bool3x2", "Float3x2", "Float3x2" } },
+ new { Return = "Float3x3", Params = new[] { "Bool3x3", "Float3x3", "Float3x3" } },
+ new { Return = "Float3x4", Params = new[] { "Bool3x4", "Float3x4", "Float3x4" } },
+ new { Return = "Float4x1", Params = new[] { "Bool4x1", "Float4x1", "Float4x1" } },
+ new { Return = "Float4x2", Params = new[] { "Bool4x2", "Float4x2", "Float4x2" } },
+ new { Return = "Float4x3", Params = new[] { "Bool4x3", "Float4x3", "Float4x3" } },
+ new { Return = "Float4x4", Params = new[] { "Bool4x4", "Float4x4", "Float4x4" } },
+ new { Return = "Double2", Params = new[] { "Bool2", "Double2", "Double2" } },
+ new { Return = "Double3", Params = new[] { "Bool3", "Double3", "Double3" } },
+ new { Return = "Double4", Params = new[] { "Bool4", "Double4", "Double4" } },
+ new { Return = "Double1x1", Params = new[] { "Bool1x1", "Double1x1", "Double1x1" } },
+ new { Return = "Double1x2", Params = new[] { "Bool1x2", "Double1x2", "Double1x2" } },
+ new { Return = "Double1x3", Params = new[] { "Bool1x3", "Double1x3", "Double1x3" } },
+ new { Return = "Double1x4", Params = new[] { "Bool1x4", "Double1x4", "Double1x4" } },
+ new { Return = "Double2x1", Params = new[] { "Bool2x1", "Double2x1", "Double2x1" } },
+ new { Return = "Double2x2", Params = new[] { "Bool2x2", "Double2x2", "Double2x2" } },
+ new { Return = "Double2x3", Params = new[] { "Bool2x3", "Double2x3", "Double2x3" } },
+ new { Return = "Double2x4", Params = new[] { "Bool2x4", "Double2x4", "Double2x4" } },
+ new { Return = "Double3x1", Params = new[] { "Bool3x1", "Double3x1", "Double3x1" } },
+ new { Return = "Double3x2", Params = new[] { "Bool3x2", "Double3x2", "Double3x2" } },
+ new { Return = "Double3x3", Params = new[] { "Bool3x3", "Double3x3", "Double3x3" } },
+ new { Return = "Double3x4", Params = new[] { "Bool3x4", "Double3x4", "Double3x4" } },
+ new { Return = "Double4x1", Params = new[] { "Bool4x1", "Double4x1", "Double4x1" } },
+ new { Return = "Double4x2", Params = new[] { "Bool4x2", "Double4x2", "Double4x2" } },
+ new { Return = "Double4x3", Params = new[] { "Bool4x3", "Double4x3", "Double4x3" } },
+ new { Return = "Double4x4", Params = new[] { "Bool4x4", "Double4x4", "Double4x4" } },
+ new { Return = "Int2", Params = new[] { "Bool2", "Int2", "Int2" } },
+ new { Return = "Int3", Params = new[] { "Bool3", "Int3", "Int3" } },
+ new { Return = "Int4", Params = new[] { "Bool4", "Int4", "Int4" } },
+ new { Return = "Int1x1", Params = new[] { "Bool1x1", "Int1x1", "Int1x1" } },
+ new { Return = "Int1x2", Params = new[] { "Bool1x2", "Int1x2", "Int1x2" } },
+ new { Return = "Int1x3", Params = new[] { "Bool1x3", "Int1x3", "Int1x3" } },
+ new { Return = "Int1x4", Params = new[] { "Bool1x4", "Int1x4", "Int1x4" } },
+ new { Return = "Int2x1", Params = new[] { "Bool2x1", "Int2x1", "Int2x1" } },
+ new { Return = "Int2x2", Params = new[] { "Bool2x2", "Int2x2", "Int2x2" } },
+ new { Return = "Int2x3", Params = new[] { "Bool2x3", "Int2x3", "Int2x3" } },
+ new { Return = "Int2x4", Params = new[] { "Bool2x4", "Int2x4", "Int2x4" } },
+ new { Return = "Int3x1", Params = new[] { "Bool3x1", "Int3x1", "Int3x1" } },
+ new { Return = "Int3x2", Params = new[] { "Bool3x2", "Int3x2", "Int3x2" } },
+ new { Return = "Int3x3", Params = new[] { "Bool3x3", "Int3x3", "Int3x3" } },
+ new { Return = "Int3x4", Params = new[] { "Bool3x4", "Int3x4", "Int3x4" } },
+ new { Return = "Int4x1", Params = new[] { "Bool4x1", "Int4x1", "Int4x1" } },
+ new { Return = "Int4x2", Params = new[] { "Bool4x2", "Int4x2", "Int4x2" } },
+ new { Return = "Int4x3", Params = new[] { "Bool4x3", "Int4x3", "Int4x3" } },
+ new { Return = "Int4x4", Params = new[] { "Bool4x4", "Int4x4", "Int4x4" } },
+ new { Return = "UInt2", Params = new[] { "Bool2", "UInt2", "UInt2" } },
+ new { Return = "UInt3", Params = new[] { "Bool3", "UInt3", "UInt3" } },
+ new { Return = "UInt4", Params = new[] { "Bool4", "UInt4", "UInt4" } },
+ new { Return = "UInt1x1", Params = new[] { "Bool1x1", "UInt1x1", "UInt1x1" } },
+ new { Return = "UInt1x2", Params = new[] { "Bool1x2", "UInt1x2", "UInt1x2" } },
+ new { Return = "UInt1x3", Params = new[] { "Bool1x3", "UInt1x3", "UInt1x3" } },
+ new { Return = "UInt1x4", Params = new[] { "Bool1x4", "UInt1x4", "UInt1x4" } },
+ new { Return = "UInt2x1", Params = new[] { "Bool2x1", "UInt2x1", "UInt2x1" } },
+ new { Return = "UInt2x2", Params = new[] { "Bool2x2", "UInt2x2", "UInt2x2" } },
+ new { Return = "UInt2x3", Params = new[] { "Bool2x3", "UInt2x3", "UInt2x3" } },
+ new { Return = "UInt2x4", Params = new[] { "Bool2x4", "UInt2x4", "UInt2x4" } },
+ new { Return = "UInt3x1", Params = new[] { "Bool3x1", "UInt3x1", "UInt3x1" } },
+ new { Return = "UInt3x2", Params = new[] { "Bool3x2", "UInt3x2", "UInt3x2" } },
+ new { Return = "UInt3x3", Params = new[] { "Bool3x3", "UInt3x3", "UInt3x3" } },
+ new { Return = "UInt3x4", Params = new[] { "Bool3x4", "UInt3x4", "UInt3x4" } },
+ new { Return = "UInt4x1", Params = new[] { "Bool4x1", "UInt4x1", "UInt4x1" } },
+ new { Return = "UInt4x2", Params = new[] { "Bool4x2", "UInt4x2", "UInt4x2" } },
+ new { Return = "UInt4x3", Params = new[] { "Bool4x3", "UInt4x3", "UInt4x3" } },
+ new { Return = "UInt4x4", Params = new[] { "Bool4x4", "UInt4x4", "UInt4x4" } }
+ }
+ },
+ new
{
Name = "Sign",
HlslName = "sign",
diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs
index f639c425..66655aa9 100644
--- a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs
+++ b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxRewriters/HlslSourceRewriter.cs
@@ -465,12 +465,44 @@ internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter
// This path should only ever be reached for valid ones.
switch (method)
{
- // Conditional select invocations are rewritten as follows:
+ // 'And' invocations are rewritten as follows:
//
- // C#: Hlsl.ConditionalSelect(mask, left, right)
+ // C#: Hlsl.And(left, right)
+ // HLSL (DX12): and(left, right)
+ // HLSL (D2D1): (left && right)
+ case "And":
+#if D3D12_SOURCE_GENERATOR
+ return updatedNode.WithExpression(IdentifierName("and"));
+#else
+ return
+ ParenthesizedExpression(
+ BinaryExpression(
+ SyntaxKind.LogicalAndExpression,
+ updatedNode.ArgumentList.Arguments[0].Expression,
+ updatedNode.ArgumentList.Arguments[1].Expression));
+#endif
+ // 'Or' invocations are rewritten as follows:
+ //
+ // C#: Hlsl.Or(left, right)
+ // HLSL (DX12): or(left, right)
+ // HLSL (D2D1): (left || right)
+ case "Or":
+#if D3D12_SOURCE_GENERATOR
+ return updatedNode.WithExpression(IdentifierName("or"));
+#else
+ return
+ ParenthesizedExpression(
+ BinaryExpression(
+ SyntaxKind.LogicalOrExpression,
+ updatedNode.ArgumentList.Arguments[0].Expression,
+ updatedNode.ArgumentList.Arguments[1].Expression));
+#endif
+ // 'Select' invocations are rewritten as follows:
+ //
+ // C#: Hlsl.Select(mask, left, right)
// HLSL (DX12): select(mask, left, right)
// HLSL (D2D1): (mask ? left : right)
- case "ConditionalSelect":
+ case "Select":
#if D3D12_SOURCE_GENERATOR
return updatedNode.WithExpression(IdentifierName("select"));
#else
diff --git a/tests/ComputeSharp.D2D1.Tests/ShaderRewriterTests.cs b/tests/ComputeSharp.D2D1.Tests/ShaderRewriterTests.cs
index fbc6ca81..acc94bab 100644
--- a/tests/ComputeSharp.D2D1.Tests/ShaderRewriterTests.cs
+++ b/tests/ComputeSharp.D2D1.Tests/ShaderRewriterTests.cs
@@ -110,23 +110,73 @@ public partial class ShaderRewriterTests
float4 float4_1 = new(1, 2, 3.14f, 4);
float4 float4_2 = new(5, 6, 7, 8);
- float4 float4_r = Hlsl.ConditionalSelect(mask4, float4_1, float4_2);
+ float4 float4_r = Hlsl.Select(mask4, float4_1, float4_2);
bool1x3 mask1x3 = new(true, true, false);
int1x3 int1x3_1 = new(1, 2, 3);
int1x3 int1x3_2 = new(4, 5, 6);
- int1x3 int1x3_r = Hlsl.ConditionalSelect(mask1x3, int1x3_1, int1x3_2);
+ int1x3 int1x3_r = Hlsl.Select(mask1x3, int1x3_1, int1x3_2);
bool2x4 mask2x4 = new(true, true, false, true, false, false, false, true);
uint2x4 uint2x4_1 = new(1, 2, 3, 4, 5, 6, 7, 8);
uint2x4 uint2x4_2 = new(111, 222, 333, 444, 555, 666, 777, 888);
- uint2x4 uint2x4_r = Hlsl.ConditionalSelect(mask2x4, uint2x4_1, uint2x4_2);
+ uint2x4 uint2x4_r = Hlsl.Select(mask2x4, uint2x4_1, uint2x4_2);
float2x2 f2x2_r = (float2x4)uint2x4_r * new float4x2(float4_r.XY, float4_r.ZW, new float2(int1x3_r.M11, int1x3_r.M12), new float2(int1x3_r.M13, 1.0f));
return new(f2x2_r.M11, f2x2_r.M12, f2x2_r.M21, f2x2_r.M22);
}
}
+
+ [TestMethod]
+ public void KnownNamedIntrinsic_AndOr()
+ {
+ D2D1ShaderInfo shaderInfo = D2D1ReflectionServices.GetShaderInfo();
+
+ Assert.AreEqual("""
+ #define D2D_INPUT_COUNT 0
+
+ #include "d2d1effecthelpers.hlsli"
+
+ D2D_PS_ENTRY(Execute)
+ {
+ bool4 mask4_1 = bool4(true, false, true, true);
+ bool4 mask4_2 = bool4(true, false, true, true);
+ bool4 mask4_r_and = (mask4_1 && mask4_2);
+ bool4 mask4_r_or = (mask4_1 || mask4_2);
+ bool2x3 mask2x3_1 = bool2x3((bool)true, (bool)false, (bool)true, (bool)true, (bool)false, (bool)false);
+ bool2x3 mask2x3_2 = bool2x3((bool)true, (bool)false, (bool)true, (bool)true, (bool)true, (bool)true);
+ bool2x3 mask2x3_r_and = (mask2x3_1 && mask2x3_2);
+ bool2x3 mask2x3_r_or = (mask2x3_1 || mask2x3_2);
+ return float4(mask4_r_and.x ? 1 : 0, mask4_r_or.y ? 1 : 0, mask2x3_r_and._m00 ? 1 : 0, mask2x3_r_or._m00 ? 1 : 0);
+ }
+ """, shaderInfo.HlslSource);
+ }
+
+ [D2DInputCount(0)]
+ [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
+ [D2DGeneratedPixelShaderDescriptor]
+ internal readonly partial struct KnownNamedIntrinsic_AndOrShader : ID2D1PixelShader
+ {
+ public float4 Execute()
+ {
+ bool4 mask4_1 = new(true, false, true, true);
+ bool4 mask4_2 = new(true, false, true, true);
+ bool4 mask4_r_and = Hlsl.And(mask4_1, mask4_2);
+ bool4 mask4_r_or = Hlsl.Or(mask4_1, mask4_2);
+
+ bool2x3 mask2x3_1 = new(true, false, true, true, false, false);
+ bool2x3 mask2x3_2 = new(true, false, true, true, true, true);
+ bool2x3 mask2x3_r_and = Hlsl.And(mask2x3_1, mask2x3_2);
+ bool2x3 mask2x3_r_or = Hlsl.Or(mask2x3_1, mask2x3_2);
+
+ return new(
+ mask4_r_and.X ? 1 : 0,
+ mask4_r_or.Y ? 1 : 0,
+ mask2x3_r_and.M11 ? 1 : 0,
+ mask2x3_r_or.M11 ? 1 : 0);
+ }
+ }
}
\ No newline at end of file
diff --git a/tests/ComputeSharp.Tests/ShaderRewriterTests.cs b/tests/ComputeSharp.Tests/ShaderRewriterTests.cs
index daebb75c..6810cc7b 100644
--- a/tests/ComputeSharp.Tests/ShaderRewriterTests.cs
+++ b/tests/ComputeSharp.Tests/ShaderRewriterTests.cs
@@ -1159,7 +1159,7 @@ public partial class ShaderRewriterTests
float4 float4_1 = new(1, 2, 3.14f, 4);
float4 float4_2 = new(5, 6, 7, 8);
- float4 float4_r = Hlsl.ConditionalSelect(mask4, float4_1, float4_2);
+ float4 float4_r = Hlsl.Select(mask4, float4_1, float4_2);
buffer1[0] = float4_r.X;
buffer1[1] = float4_r.Y;
@@ -1170,7 +1170,7 @@ public partial class ShaderRewriterTests
int1x3 int1x3_1 = new(1, 2, 3);
int1x3 int1x3_2 = new(4, 5, 6);
- int1x3 int1x3_r = Hlsl.ConditionalSelect(mask1x3, int1x3_1, int1x3_2);
+ int1x3 int1x3_r = Hlsl.Select(mask1x3, int1x3_1, int1x3_2);
buffer2[0] = int1x3_r.M11;
buffer2[1] = int1x3_r.M12;
@@ -1180,7 +1180,7 @@ public partial class ShaderRewriterTests
uint2x4 uint2x4_1 = new(1, 2, 3, 4, 5, 6, 7, 8);
uint2x4 uint2x4_2 = new(111, 222, 333, 444, 555, 666, 777, 888);
- uint2x4 uint2x4_r = Hlsl.ConditionalSelect(mask2x4, uint2x4_1, uint2x4_2);
+ uint2x4 uint2x4_r = Hlsl.Select(mask2x4, uint2x4_1, uint2x4_2);
buffer3[0] = uint2x4_r.M11;
buffer3[1] = uint2x4_r.M12;
@@ -1192,4 +1192,73 @@ public partial class ShaderRewriterTests
buffer3[7] = uint2x4_r.M24;
}
}
+
+ [TestMethod]
+ public void KnownNamedIntrinsic_AndOr()
+ {
+ ShaderInfo info = ReflectionServices.GetShaderInfo();
+
+ Assert.AreEqual(
+ """
+ #define __GroupSize__get_X 64
+ #define __GroupSize__get_Y 1
+ #define __GroupSize__get_Z 1
+
+ cbuffer _ : register(b0)
+ {
+ uint __x;
+ uint __y;
+ uint __z;
+ }
+
+ RWStructuredBuffer __reserved__buffer : register(u0);
+
+ [NumThreads(__GroupSize__get_X, __GroupSize__get_Y, __GroupSize__get_Z)]
+ void Execute(uint3 ThreadIds : SV_DispatchThreadID)
+ {
+ if (ThreadIds.x < __x && ThreadIds.y < __y && ThreadIds.z < __z)
+ {
+ bool4 mask4_1 = bool4(true, false, true, true);
+ bool4 mask4_2 = bool4(true, false, true, true);
+ bool4 mask4_r_and = and(mask4_1, mask4_2);
+ bool4 mask4_r_or = or(mask4_1, mask4_2);
+ bool2x3 mask2x3_1 = bool2x3((bool)true, (bool)false, (bool)true, (bool)true, (bool)false, (bool)false);
+ bool2x3 mask2x3_2 = bool2x3((bool)true, (bool)false, (bool)true, (bool)true, (bool)true, (bool)true);
+ bool2x3 mask2x3_r_and = and(mask2x3_1, mask2x3_2);
+ bool2x3 mask2x3_r_or = or(mask2x3_1, mask2x3_2);
+ __reserved__buffer[0] = mask4_r_and.x ? 1 : 0;
+ __reserved__buffer[1] = mask4_r_or.y ? 1 : 0;
+ __reserved__buffer[2] = mask2x3_r_and._m00 ? 1 : 0;
+ __reserved__buffer[3] = mask2x3_r_or._m00 ? 1 : 0;
+ }
+ }
+ """,
+ info.HlslSource);
+ }
+
+ [AutoConstructor]
+ [ThreadGroupSize(DefaultThreadGroupSizes.X)]
+ [GeneratedComputeShaderDescriptor]
+ internal readonly partial struct KnownNamedIntrinsic_AndOrShader : IComputeShader
+ {
+ public readonly ReadWriteBuffer buffer;
+
+ public void Execute()
+ {
+ bool4 mask4_1 = new(true, false, true, true);
+ bool4 mask4_2 = new(true, false, true, true);
+ bool4 mask4_r_and = Hlsl.And(mask4_1, mask4_2);
+ bool4 mask4_r_or = Hlsl.Or(mask4_1, mask4_2);
+
+ bool2x3 mask2x3_1 = new(true, false, true, true, false, false);
+ bool2x3 mask2x3_2 = new(true, false, true, true, true, true);
+ bool2x3 mask2x3_r_and = Hlsl.And(mask2x3_1, mask2x3_2);
+ bool2x3 mask2x3_r_or = Hlsl.Or(mask2x3_1, mask2x3_2);
+
+ buffer[0] = mask4_r_and.X ? 1 : 0;
+ buffer[1] = mask4_r_or.Y ? 1 : 0;
+ buffer[2] = mask2x3_r_and.M11 ? 1 : 0;
+ buffer[3] = mask2x3_r_or.M11 ? 1 : 0;
+ }
+ }
}
\ No newline at end of file