diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs index 102e479e..c9df2da1 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs @@ -368,6 +368,186 @@ namespace ComputeSharp [HlslIntrinsicName("abs")] public static Float4x4 Abs(Float4x4 x) => default; /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static double Abs(double x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double2 Abs(Double2 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double3 Abs(Double3 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double4 Abs(Double4 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double1x1 Abs(Double1x1 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double1x2 Abs(Double1x2 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double1x3 Abs(Double1x3 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double1x4 Abs(Double1x4 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double2x1 Abs(Double2x1 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double2x2 Abs(Double2x2 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double2x3 Abs(Double2x3 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double2x4 Abs(Double2x4 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double3x1 Abs(Double3x1 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double3x2 Abs(Double3x2 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double3x3 Abs(Double3x3 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double3x4 Abs(Double3x4 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double4x1 Abs(Double4x1 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double4x2 Abs(Double4x2 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double4x3 Abs(Double4x3 x) => default; + /// + /// Returns the absolute value of the specified value. + /// + /// The specified value. + /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("abs")] + public static Double4x4 Abs(Double4x4 x) => default; + /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. @@ -7839,6 +8019,206 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] + public static double Max(double x, double y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double2 Max(Double2 x, Double2 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double3 Max(Double3 x, Double3 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double4 Max(Double4 x, Double4 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double1x1 Max(Double1x1 x, Double1x1 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double1x2 Max(Double1x2 x, Double1x2 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double1x3 Max(Double1x3 x, Double1x3 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double1x4 Max(Double1x4 x, Double1x4 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double2x1 Max(Double2x1 x, Double2x1 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double2x2 Max(Double2x2 x, Double2x2 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double2x3 Max(Double2x3 x, Double2x3 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double2x4 Max(Double2x4 x, Double2x4 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double3x1 Max(Double3x1 x, Double3x1 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double3x2 Max(Double3x2 x, Double3x2 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double3x3 Max(Double3x3 x, Double3x3 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double3x4 Max(Double3x4 x, Double3x4 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double4x1 Max(Double4x1 x, Double4x1 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double4x2 Max(Double4x2 x, Double4x2 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double4x3 Max(Double4x3 x, Double4x3 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] + public static Double4x4 Max(Double4x4 x, Double4x4 y) => default; + /// + /// Selects the greater between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("max")] public static int Max(int x, int y) => default; /// /// Selects the greater between two inputs. @@ -8239,6 +8619,206 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] + public static double Min(double x, double y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double2 Min(Double2 x, Double2 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double3 Min(Double3 x, Double3 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double4 Min(Double4 x, Double4 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double1x1 Min(Double1x1 x, Double1x1 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double1x2 Min(Double1x2 x, Double1x2 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double1x3 Min(Double1x3 x, Double1x3 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double1x4 Min(Double1x4 x, Double1x4 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double2x1 Min(Double2x1 x, Double2x1 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double2x2 Min(Double2x2 x, Double2x2 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double2x3 Min(Double2x3 x, Double2x3 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double2x4 Min(Double2x4 x, Double2x4 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double3x1 Min(Double3x1 x, Double3x1 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double3x2 Min(Double3x2 x, Double3x2 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double3x3 Min(Double3x3 x, Double3x3 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double3x4 Min(Double3x4 x, Double3x4 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double4x1 Min(Double4x1 x, Double4x1 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double4x2 Min(Double4x2 x, Double4x2 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double4x3 Min(Double4x3 x, Double4x3 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] + public static Double4x4 Min(Double4x4 x, Double4x4 y) => default; + /// + /// Selects the lesser between two inputs. + /// + /// The first input value. + /// The second input value. + /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("min")] public static int Min(int x, int y) => default; /// /// Selects the lesser between two inputs. @@ -12814,6 +13394,186 @@ namespace ComputeSharp [HlslIntrinsicName("saturate")] public static Float4x4 Saturate(Float4x4 x) => default; /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static double Saturate(double x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double2 Saturate(Double2 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double3 Saturate(Double3 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double4 Saturate(Double4 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double1x1 Saturate(Double1x1 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double1x2 Saturate(Double1x2 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double1x3 Saturate(Double1x3 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double1x4 Saturate(Double1x4 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double2x1 Saturate(Double2x1 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double2x2 Saturate(Double2x2 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double2x3 Saturate(Double2x3 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double2x4 Saturate(Double2x4 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double3x1 Saturate(Double3x1 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double3x2 Saturate(Double3x2 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double3x3 Saturate(Double3x3 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double3x4 Saturate(Double3x4 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double4x1 Saturate(Double4x1 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double4x2 Saturate(Double4x2 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double4x3 Saturate(Double4x3 x) => default; + /// + /// Clamps the specified value within the range of 0 to 1. + /// + /// The specified value. + /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("saturate")] + public static Double4x4 Saturate(Double4x4 x) => default; + /// /// Returns the sign of the input value. /// /// The specified value. diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude b/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude index 0fb2200d..3e685080 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude @@ -59,7 +59,27 @@ var Intrinsics = new[] new { Return = "Float4x1", Params = new[] { "Float4x1" } }, new { Return = "Float4x2", Params = new[] { "Float4x2" } }, new { Return = "Float4x3", Params = new[] { "Float4x3" } }, - new { Return = "Float4x4", Params = new[] { "Float4x4" } } + new { Return = "Float4x4", Params = new[] { "Float4x4" } }, + new { Return = "double", Params = new[] { "double" } }, + new { Return = "Double2", Params = new[] { "Double2" } }, + new { Return = "Double3", Params = new[] { "Double3" } }, + new { Return = "Double4", Params = new[] { "Double4" } }, + new { Return = "Double1x1", Params = new[] { "Double1x1" } }, + new { Return = "Double1x2", Params = new[] { "Double1x2" } }, + new { Return = "Double1x3", Params = new[] { "Double1x3" } }, + new { Return = "Double1x4", Params = new[] { "Double1x4" } }, + new { Return = "Double2x1", Params = new[] { "Double2x1" } }, + new { Return = "Double2x2", Params = new[] { "Double2x2" } }, + new { Return = "Double2x3", Params = new[] { "Double2x3" } }, + new { Return = "Double2x4", Params = new[] { "Double2x4" } }, + new { Return = "Double3x1", Params = new[] { "Double3x1" } }, + new { Return = "Double3x2", Params = new[] { "Double3x2" } }, + new { Return = "Double3x3", Params = new[] { "Double3x3" } }, + new { Return = "Double3x4", Params = new[] { "Double3x4" } }, + new { Return = "Double4x1", Params = new[] { "Double4x1" } }, + new { Return = "Double4x2", Params = new[] { "Double4x2" } }, + new { Return = "Double4x3", Params = new[] { "Double4x3" } }, + new { Return = "Double4x4", Params = new[] { "Double4x4" } } }, IsPure = true }, @@ -1459,6 +1479,26 @@ var Intrinsics = new[] new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2" } }, new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3" } }, new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4" } }, + new { Return = "double", Params = new[] { "double", "double" } }, + new { Return = "Double2", Params = new[] { "Double2", "Double2" } }, + new { Return = "Double3", Params = new[] { "Double3", "Double3" } }, + new { Return = "Double4", Params = new[] { "Double4", "Double4" } }, + new { Return = "Double1x1", Params = new[] { "Double1x1", "Double1x1" } }, + new { Return = "Double1x2", Params = new[] { "Double1x2", "Double1x2" } }, + new { Return = "Double1x3", Params = new[] { "Double1x3", "Double1x3" } }, + new { Return = "Double1x4", Params = new[] { "Double1x4", "Double1x4" } }, + new { Return = "Double2x1", Params = new[] { "Double2x1", "Double2x1" } }, + new { Return = "Double2x2", Params = new[] { "Double2x2", "Double2x2" } }, + new { Return = "Double2x3", Params = new[] { "Double2x3", "Double2x3" } }, + new { Return = "Double2x4", Params = new[] { "Double2x4", "Double2x4" } }, + new { Return = "Double3x1", Params = new[] { "Double3x1", "Double3x1" } }, + new { Return = "Double3x2", Params = new[] { "Double3x2", "Double3x2" } }, + new { Return = "Double3x3", Params = new[] { "Double3x3", "Double3x3" } }, + new { Return = "Double3x4", Params = new[] { "Double3x4", "Double3x4" } }, + new { Return = "Double4x1", Params = new[] { "Double4x1", "Double4x1" } }, + new { Return = "Double4x2", Params = new[] { "Double4x2", "Double4x2" } }, + new { Return = "Double4x3", Params = new[] { "Double4x3", "Double4x3" } }, + new { Return = "Double4x4", Params = new[] { "Double4x4", "Double4x4" } }, new { Return = "int", Params = new[] { "int", "int" } }, new { Return = "Int2", Params = new[] { "Int2", "Int2" } }, new { Return = "Int3", Params = new[] { "Int3", "Int3" } }, @@ -1515,6 +1555,26 @@ var Intrinsics = new[] new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2" } }, new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3" } }, new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4" } }, + new { Return = "double", Params = new[] { "double", "double" } }, + new { Return = "Double2", Params = new[] { "Double2", "Double2" } }, + new { Return = "Double3", Params = new[] { "Double3", "Double3" } }, + new { Return = "Double4", Params = new[] { "Double4", "Double4" } }, + new { Return = "Double1x1", Params = new[] { "Double1x1", "Double1x1" } }, + new { Return = "Double1x2", Params = new[] { "Double1x2", "Double1x2" } }, + new { Return = "Double1x3", Params = new[] { "Double1x3", "Double1x3" } }, + new { Return = "Double1x4", Params = new[] { "Double1x4", "Double1x4" } }, + new { Return = "Double2x1", Params = new[] { "Double2x1", "Double2x1" } }, + new { Return = "Double2x2", Params = new[] { "Double2x2", "Double2x2" } }, + new { Return = "Double2x3", Params = new[] { "Double2x3", "Double2x3" } }, + new { Return = "Double2x4", Params = new[] { "Double2x4", "Double2x4" } }, + new { Return = "Double3x1", Params = new[] { "Double3x1", "Double3x1" } }, + new { Return = "Double3x2", Params = new[] { "Double3x2", "Double3x2" } }, + new { Return = "Double3x3", Params = new[] { "Double3x3", "Double3x3" } }, + new { Return = "Double3x4", Params = new[] { "Double3x4", "Double3x4" } }, + new { Return = "Double4x1", Params = new[] { "Double4x1", "Double4x1" } }, + new { Return = "Double4x2", Params = new[] { "Double4x2", "Double4x2" } }, + new { Return = "Double4x3", Params = new[] { "Double4x3", "Double4x3" } }, + new { Return = "Double4x4", Params = new[] { "Double4x4", "Double4x4" } }, new { Return = "int", Params = new[] { "int", "int" } }, new { Return = "Int2", Params = new[] { "Int2", "Int2" } }, new { Return = "Int3", Params = new[] { "Int3", "Int3" } }, @@ -2151,7 +2211,27 @@ var Intrinsics = new[] new { Return = "Float4x1", Params = new[] { "Float4x1" } }, new { Return = "Float4x2", Params = new[] { "Float4x2" } }, new { Return = "Float4x3", Params = new[] { "Float4x3" } }, - new { Return = "Float4x4", Params = new[] { "Float4x4" } } + new { Return = "Float4x4", Params = new[] { "Float4x4" } }, + new { Return = "double", Params = new[] { "double" } }, + new { Return = "Double2", Params = new[] { "Double2" } }, + new { Return = "Double3", Params = new[] { "Double3" } }, + new { Return = "Double4", Params = new[] { "Double4" } }, + new { Return = "Double1x1", Params = new[] { "Double1x1" } }, + new { Return = "Double1x2", Params = new[] { "Double1x2" } }, + new { Return = "Double1x3", Params = new[] { "Double1x3" } }, + new { Return = "Double1x4", Params = new[] { "Double1x4" } }, + new { Return = "Double2x1", Params = new[] { "Double2x1" } }, + new { Return = "Double2x2", Params = new[] { "Double2x2" } }, + new { Return = "Double2x3", Params = new[] { "Double2x3" } }, + new { Return = "Double2x4", Params = new[] { "Double2x4" } }, + new { Return = "Double3x1", Params = new[] { "Double3x1" } }, + new { Return = "Double3x2", Params = new[] { "Double3x2" } }, + new { Return = "Double3x3", Params = new[] { "Double3x3" } }, + new { Return = "Double3x4", Params = new[] { "Double3x4" } }, + new { Return = "Double4x1", Params = new[] { "Double4x1" } }, + new { Return = "Double4x2", Params = new[] { "Double4x2" } }, + new { Return = "Double4x3", Params = new[] { "Double4x3" } }, + new { Return = "Double4x4", Params = new[] { "Double4x4" } } }, IsPure = true },