diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index bbc61802..2ba0ec72 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -499,34 +499,6 @@ public unsafe partial struct Float2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2 operator *(Float2 left, Float2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float2 operator *(float x, Float2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float2 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float2 operator *(Float2 x, float y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index 5d655a73..95d0c277 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -1585,34 +1585,6 @@ public unsafe partial struct Float3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3 operator *(Float3 left, Float3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float3 operator *(float x, Float3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float3 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float3 operator *(Float3 x, float y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index e954aa8f..73593b57 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -4231,34 +4231,6 @@ public unsafe partial struct Float4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4 operator *(Float4 left, Float4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float4 operator *(float x, Float4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float4 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float4 operator *(Float4 x, float y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs index 54e0d5f6..6d8010e5 100644 --- a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs @@ -126,34 +126,6 @@ public unsafe partial struct Float1x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x1 operator *(Float1x1 left, Float1x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float1x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float1x1 operator *(float x, Float1x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float1x1 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float1x1 operator *(Float1x1 x, float y) => default; - /// /// Subtracts two values. /// @@ -345,34 +317,6 @@ public unsafe partial struct Float1x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x2 operator *(Float1x2 left, Float1x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float1x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float1x2 operator *(float x, Float1x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float1x2 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float1x2 operator *(Float1x2 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -665,34 +609,6 @@ public unsafe partial struct Float1x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x3 operator *(Float1x3 left, Float1x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float1x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float1x3 operator *(float x, Float1x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float1x3 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float1x3 operator *(Float1x3 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -996,34 +912,6 @@ public unsafe partial struct Float1x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x4 operator *(Float1x4 left, Float1x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float1x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float1x4 operator *(float x, Float1x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float1x4 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float1x4 operator *(Float1x4 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -1305,34 +1193,6 @@ public unsafe partial struct Float2x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x1 operator *(Float2x1 left, Float2x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float2x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float2x1 operator *(float x, Float2x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float2x1 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float2x1 operator *(Float2x1 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -1635,34 +1495,6 @@ public unsafe partial struct Float2x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x2 operator *(Float2x2 left, Float2x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float2x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float2x2 operator *(float x, Float2x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float2x2 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float2x2 operator *(Float2x2 x, float y) => default; - /// /// Subtracts two values. /// @@ -1913,34 +1745,6 @@ public unsafe partial struct Float2x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x3 operator *(Float2x3 left, Float2x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float2x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float2x3 operator *(float x, Float2x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float2x3 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float2x3 operator *(Float2x3 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -2299,34 +2103,6 @@ public unsafe partial struct Float2x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x4 operator *(Float2x4 left, Float2x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float2x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float2x4 operator *(float x, Float2x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float2x4 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float2x4 operator *(Float2x4 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -2613,34 +2389,6 @@ public unsafe partial struct Float3x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x1 operator *(Float3x1 left, Float3x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float3x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float3x1 operator *(float x, Float3x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float3x1 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float3x1 operator *(Float3x1 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -2968,34 +2716,6 @@ public unsafe partial struct Float3x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x2 operator *(Float3x2 left, Float3x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float3x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float3x2 operator *(float x, Float3x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float3x2 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float3x2 operator *(Float3x2 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -3367,34 +3087,6 @@ public unsafe partial struct Float3x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x3 operator *(Float3x3 left, Float3x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float3x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float3x3 operator *(float x, Float3x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float3x3 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float3x3 operator *(Float3x3 x, float y) => default; - /// /// Subtracts two values. /// @@ -3718,34 +3410,6 @@ public unsafe partial struct Float3x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x4 operator *(Float3x4 left, Float3x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float3x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float3x4 operator *(float x, Float3x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float3x4 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float3x4 operator *(Float3x4 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -4043,34 +3707,6 @@ public unsafe partial struct Float4x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x1 operator *(Float4x1 left, Float4x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float4x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float4x1 operator *(float x, Float4x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float4x1 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float4x1 operator *(Float4x1 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -4423,34 +4059,6 @@ public unsafe partial struct Float4x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x2 operator *(Float4x2 left, Float4x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float4x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float4x2 operator *(float x, Float4x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float4x2 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float4x2 operator *(Float4x2 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -4859,34 +4467,6 @@ public unsafe partial struct Float4x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x3 operator *(Float4x3 left, Float4x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float4x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float4x3 operator *(float x, Float4x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float4x3 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float4x3 operator *(Float4x3 x, float y) => default; - /// /// Multiplies two values using matrix math. /// @@ -5343,34 +4923,6 @@ public unsafe partial struct Float4x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x4 operator *(Float4x4 left, Float4x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first float input value. - /// The second Float4x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float4x4 operator *(float x, Float4x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Float4x4 input value. - /// The second float input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Float4x4 operator *(Float4x4 x, float y) => default; - /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index ef3be113..107c4a56 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -499,34 +499,6 @@ public unsafe partial struct Int2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2 operator *(Int2 left, Int2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int2 operator *(int x, Int2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int2 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int2 operator *(Int2 x, int y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index fc61e841..b0ffbf82 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -1585,34 +1585,6 @@ public unsafe partial struct Int3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3 operator *(Int3 left, Int3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int3 operator *(int x, Int3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int3 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int3 operator *(Int3 x, int y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index 109b0908..362c31ce 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -4231,34 +4231,6 @@ public unsafe partial struct Int4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4 operator *(Int4 left, Int4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int4 operator *(int x, Int4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int4 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int4 operator *(Int4 x, int y) => default; - /// /// Multiplies two values using matrix math. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index 2a82aee7..f1b62349 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -126,34 +126,6 @@ public unsafe partial struct Int1x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x1 operator *(Int1x1 left, Int1x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int1x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int1x1 operator *(int x, Int1x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int1x1 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int1x1 operator *(Int1x1 x, int y) => default; - /// /// Subtracts two values. /// @@ -445,34 +417,6 @@ public unsafe partial struct Int1x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x2 operator *(Int1x2 left, Int1x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int1x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int1x2 operator *(int x, Int1x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int1x2 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int1x2 operator *(Int1x2 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -865,34 +809,6 @@ public unsafe partial struct Int1x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x3 operator *(Int1x3 left, Int1x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int1x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int1x3 operator *(int x, Int1x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int1x3 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int1x3 operator *(Int1x3 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -1296,34 +1212,6 @@ public unsafe partial struct Int1x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x4 operator *(Int1x4 left, Int1x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int1x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int1x4 operator *(int x, Int1x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int1x4 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int1x4 operator *(Int1x4 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -1705,34 +1593,6 @@ public unsafe partial struct Int2x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x1 operator *(Int2x1 left, Int2x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int2x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int2x1 operator *(int x, Int2x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int2x1 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int2x1 operator *(Int2x1 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -2135,34 +1995,6 @@ public unsafe partial struct Int2x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x2 operator *(Int2x2 left, Int2x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int2x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int2x2 operator *(int x, Int2x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int2x2 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int2x2 operator *(Int2x2 x, int y) => default; - /// /// Subtracts two values. /// @@ -2513,34 +2345,6 @@ public unsafe partial struct Int2x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x3 operator *(Int2x3 left, Int2x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int2x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int2x3 operator *(int x, Int2x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int2x3 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int2x3 operator *(Int2x3 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -2999,34 +2803,6 @@ public unsafe partial struct Int2x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x4 operator *(Int2x4 left, Int2x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int2x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int2x4 operator *(int x, Int2x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int2x4 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int2x4 operator *(Int2x4 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -3413,34 +3189,6 @@ public unsafe partial struct Int3x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x1 operator *(Int3x1 left, Int3x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int3x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int3x1 operator *(int x, Int3x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int3x1 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int3x1 operator *(Int3x1 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -3868,34 +3616,6 @@ public unsafe partial struct Int3x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x2 operator *(Int3x2 left, Int3x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int3x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int3x2 operator *(int x, Int3x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int3x2 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int3x2 operator *(Int3x2 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -4367,34 +4087,6 @@ public unsafe partial struct Int3x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x3 operator *(Int3x3 left, Int3x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int3x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int3x3 operator *(int x, Int3x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int3x3 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int3x3 operator *(Int3x3 x, int y) => default; - /// /// Subtracts two values. /// @@ -4818,34 +4510,6 @@ public unsafe partial struct Int3x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x4 operator *(Int3x4 left, Int3x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int3x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int3x4 operator *(int x, Int3x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int3x4 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int3x4 operator *(Int3x4 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -5243,34 +4907,6 @@ public unsafe partial struct Int4x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x1 operator *(Int4x1 left, Int4x1 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int4x1 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int4x1 operator *(int x, Int4x1 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int4x1 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int4x1 operator *(Int4x1 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -5723,34 +5359,6 @@ public unsafe partial struct Int4x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x2 operator *(Int4x2 left, Int4x2 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int4x2 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int4x2 operator *(int x, Int4x2 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int4x2 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int4x2 operator *(Int4x2 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -6259,34 +5867,6 @@ public unsafe partial struct Int4x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x3 operator *(Int4x3 left, Int4x3 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int4x3 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int4x3 operator *(int x, Int4x3 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int4x3 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int4x3 operator *(Int4x3 x, int y) => default; - /// /// Multiplies two values using matrix math. /// @@ -6843,34 +6423,6 @@ public unsafe partial struct Int4x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x4 operator *(Int4x4 left, Int4x4 right) => default; - /// - /// Multiplies two values using matrix math. - /// - /// The first int input value. - /// The second Int4x4 input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int4x4 operator *(int x, Int4x4 y) => default; - - /// - /// Multiplies two values using matrix math. - /// - /// The first Int4x4 input value. - /// The second int input value. - /// The result of times . The result has the dimension -rows by -columns. - /// - /// This operator is equivalent to using with the same input arguments. - /// 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("mul", RequiresParametersMatching = true)] - public static Int4x4 operator *(Int4x4 x, int y) => default; - /// /// Subtracts two values. /// diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index 69fff1a0..63d6265b 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -297,9 +297,11 @@ public unsafe partial struct <#=fullTypeName#> /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=fullTypeName#> operator *(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; <# - // Process all operators for the mul() intrinsic + // Process all operators for the mul() intrinsic (see comments in VectorType.ttinclude for info on the filters below) foreach (var mulOverload in MulOverloads.Where(overload => !(overload.Params[0] == fullTypeName && overload.Params[1] == fullTypeName) && + Regex.IsMatch(overload.Params[0], @"\d") && + Regex.IsMatch(overload.Params[1], @"\d") && (overload.Return == fullTypeName && overload.Params.Contains(fullTypeName) || !overload.Params.Contains(overload.Return) && overload.Params[0] == fullTypeName))) { diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index 25f2c264..295c6e1a 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -360,9 +360,27 @@ public unsafe partial struct <#=typeName#> /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => default; <# - // Process all operators for the mul() intrinsic + // Process all operators for the mul() intrinsic. We apply the following filtering: + // 1) Operators where both arguments are of the containing type are skipped. This is because + // this operation is already defined as an elementwise product for all vector/matrix types. + // Defining the operator would cause a conflict, plus it would alter the semantics anyway. + // 2) Operators where either parameter is a primitive type (ie. not a vector) are skipped. This + // is because such operation is already implicitly defined (it's an elementwise product where + // the scalar is auto-promoted to the same vector/matrix type of the other argument). Again, + // defining the operator would cause the semantics of such expressions to change to a cross + // product, so these operators are intentionally skipped to keep code consistent with HLSL. + // 3) Among all available overloads, only either of these two cases are selected: + // - The containing type matches the return type and the first parameter type of the operator. + // This ensures that all overloads where the return type matches the containing type and the + // first parameter are generated inside the containing type, as one would do manually as well. + // - The return type is unlike both parameter types, but the containing type matches the type of + // the first parameter. This is the case when the operator (ie. the cross product) produces a + // result that's of a completely different type. In this case, the overload maps to a generated + // operator declared in the type that matches the type of the first parameter, as a convention. foreach (var mulOverload in MulOverloads.Where(overload => !(overload.Params[0] == typeName && overload.Params[1] == typeName) && + Regex.IsMatch(overload.Params[0], @"\d") && + Regex.IsMatch(overload.Params[1], @"\d") && (overload.Return == typeName && overload.Params.Contains(typeName) || !overload.Params.Contains(overload.Return) && overload.Params[0] == typeName))) {