From 94e7809c25f3f5d9b01dc7e31646825d7a1a6edc Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 16 Mar 2021 15:24:30 +0100 Subject: [PATCH] Added missing Reflection and Refract HLSL intrinsics --- src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs | 460 ++++++++++++++++++ .../Core/Intrinsics/Hlsl.ttinclude | 73 +++ 2 files changed, 533 insertions(+) diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs index 6740c385..3ef38f9f 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs @@ -14099,6 +14099,466 @@ namespace ComputeSharp [HlslIntrinsicName("rcp")] public static Double4x4 Rcp(Double4x4 x) => default; + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static float Reflect(float i, float n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float2 Reflect(Float2 i, Float2 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float3 Reflect(Float3 i, Float3 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float4 Reflect(Float4 i, Float4 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float1x1 Reflect(Float1x1 i, Float1x1 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float1x2 Reflect(Float1x2 i, Float1x2 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float1x3 Reflect(Float1x3 i, Float1x3 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float1x4 Reflect(Float1x4 i, Float1x4 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float2x1 Reflect(Float2x1 i, Float2x1 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float2x2 Reflect(Float2x2 i, Float2x2 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float2x3 Reflect(Float2x3 i, Float2x3 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float2x4 Reflect(Float2x4 i, Float2x4 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float3x1 Reflect(Float3x1 i, Float3x1 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float3x2 Reflect(Float3x2 i, Float3x2 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float3x3 Reflect(Float3x3 i, Float3x3 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float3x4 Reflect(Float3x4 i, Float3x4 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float4x1 Reflect(Float4x1 i, Float4x1 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float4x2 Reflect(Float4x2 i, Float4x2 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float4x3 Reflect(Float4x3 i, Float4x3 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// 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("reflect")] + public static Float4x4 Reflect(Float4x4 i, Float4x4 n) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static float Refract(float i, float n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float2 Refract(Float2 i, Float2 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float3 Refract(Float3 i, Float3 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float4 Refract(Float4 i, Float4 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float1x1 Refract(Float1x1 i, Float1x1 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float1x2 Refract(Float1x2 i, Float1x2 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float1x3 Refract(Float1x3 i, Float1x3 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float1x4 Refract(Float1x4 i, Float1x4 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float2x1 Refract(Float2x1 i, Float2x1 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float2x2 Refract(Float2x2 i, Float2x2 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float2x3 Refract(Float2x3 i, Float2x3 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float2x4 Refract(Float2x4 i, Float2x4 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float3x1 Refract(Float3x1 i, Float3x1 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float3x2 Refract(Float3x2 i, Float3x2 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float3x3 Refract(Float3x3 i, Float3x3 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float3x4 Refract(Float3x4 i, Float3x4 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float4x1 Refract(Float4x1 i, Float4x1 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float4x2 Refract(Float4x2 i, Float4x2 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float4x3 Refract(Float4x3 i, Float4x3 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// 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("refract")] + public static Float4x4 Refract(Float4x4 i, Float4x4 n, float f) => default; + /// /// Reverses the order of the bits, per component. /// diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude b/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude index 3e685080..c0ae07ed 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude @@ -2092,6 +2092,79 @@ var Intrinsics = new[] IsPure = true }, new + { + Name = "Reflect", + HlslName = "reflect", + Summary = "Returns a reflection vector using an incident ray and a surface normal.", + Parameters = new[] + { + new { IsOut = false, Name = "i", Info = "A floating-point, incident vector." }, + new { IsOut = false, Name = "n", Info = "A floating-point, normal vector." } + }, + Returns = "A floating-point, reflection vector.", + Overloads = new[] + { + new { Return = "float", Params = new[] { "float", "float" } }, + new { Return = "Float2", Params = new[] { "Float2", "Float2" } }, + new { Return = "Float3", Params = new[] { "Float3", "Float3" } }, + new { Return = "Float4", Params = new[] { "Float4", "Float4" } }, + new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1" } }, + new { Return = "Float1x2", Params = new[] { "Float1x2", "Float1x2" } }, + new { Return = "Float1x3", Params = new[] { "Float1x3", "Float1x3" } }, + new { Return = "Float1x4", Params = new[] { "Float1x4", "Float1x4" } }, + new { Return = "Float2x1", Params = new[] { "Float2x1", "Float2x1" } }, + new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2" } }, + new { Return = "Float2x3", Params = new[] { "Float2x3", "Float2x3" } }, + new { Return = "Float2x4", Params = new[] { "Float2x4", "Float2x4" } }, + new { Return = "Float3x1", Params = new[] { "Float3x1", "Float3x1" } }, + new { Return = "Float3x2", Params = new[] { "Float3x2", "Float3x2" } }, + new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3" } }, + new { Return = "Float3x4", Params = new[] { "Float3x4", "Float3x4" } }, + new { Return = "Float4x1", Params = new[] { "Float4x1", "Float4x1" } }, + new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2" } }, + new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3" } }, + new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4" } } + }, + IsPure = true + }, + new + { + Name = "Refract", + HlslName = "refract", + Summary = "Returns a refraction vector using an entering ray, a surface normal, and a refraction index.", + Parameters = new[] + { + new { IsOut = false, Name = "i", Info = "A floating-point, ray direction vector." }, + new { IsOut = false, Name = "n", Info = "A floating-point, surface normal vector." }, + new { IsOut = false, Name = "f", Info = "A floating-point, refraction index scalar." } + }, + Returns = "A floating-point, refraction vector. If the angle between the entering ray {i} and the surface normal {n} is too great for a given refraction index {f}, the return value is 0.", + Overloads = new[] + { + new { Return = "float", Params = new[] { "float", "float", "float" } }, + new { Return = "Float2", Params = new[] { "Float2", "Float2", "float" } }, + new { Return = "Float3", Params = new[] { "Float3", "Float3", "float" } }, + new { Return = "Float4", Params = new[] { "Float4", "Float4", "float" } }, + new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1", "float" } }, + new { Return = "Float1x2", Params = new[] { "Float1x2", "Float1x2", "float" } }, + new { Return = "Float1x3", Params = new[] { "Float1x3", "Float1x3", "float" } }, + new { Return = "Float1x4", Params = new[] { "Float1x4", "Float1x4", "float" } }, + new { Return = "Float2x1", Params = new[] { "Float2x1", "Float2x1", "float" } }, + new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2", "float" } }, + new { Return = "Float2x3", Params = new[] { "Float2x3", "Float2x3", "float" } }, + new { Return = "Float2x4", Params = new[] { "Float2x4", "Float2x4", "float" } }, + new { Return = "Float3x1", Params = new[] { "Float3x1", "Float3x1", "float" } }, + new { Return = "Float3x2", Params = new[] { "Float3x2", "Float3x2", "float" } }, + new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3", "float" } }, + new { Return = "Float3x4", Params = new[] { "Float3x4", "Float3x4", "float" } }, + new { Return = "Float4x1", Params = new[] { "Float4x1", "Float4x1", "float" } }, + new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2", "float" } }, + new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3", "float" } }, + new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4", "float" } } + }, + IsPure = true + }, + new { Name = "ReverseBits", HlslName = "reversebits",