diff --git a/src/ComputeSharp.Shaders/Mappings/HlslKnownMethods.cs b/src/ComputeSharp.Shaders/Mappings/HlslKnownMethods.cs index 143e087e..f06116e5 100644 --- a/src/ComputeSharp.Shaders/Mappings/HlslKnownMethods.cs +++ b/src/ComputeSharp.Shaders/Mappings/HlslKnownMethods.cs @@ -59,28 +59,7 @@ namespace ComputeSharp.Shaders.Mappings ["System.Numerics.Vector4.Transform"] = "mul", ["System.Numerics.Vector4.Normalize"] = "normalize", ["System.Numerics.Vector4.Zero"] = "(float4)0", - ["System.Numerics.Vector4.One"] = "float4(1.0f, 1.0f, 1.0f, 1.0f)", - - // Matrix4x4 - ["System.Numerics.Matrix4x4.Multiply"] = "mul", - ["System.Numerics.Matrix4x4.Transpose"] = "transpose", - ["System.Numerics.Matrix4x4.Translation"] = "[3].xyz", - ["System.Numerics.Matrix4x4.M11"] = "[0][0]", - ["System.Numerics.Matrix4x4.M12"] = "[0][1]", - ["System.Numerics.Matrix4x4.M13"] = "[0][2]", - ["System.Numerics.Matrix4x4.M14"] = "[0][3]", - ["System.Numerics.Matrix4x4.M21"] = "[1][0]", - ["System.Numerics.Matrix4x4.M22"] = "[1][1]", - ["System.Numerics.Matrix4x4.M23"] = "[1][2]", - ["System.Numerics.Matrix4x4.M24"] = "[1][3]", - ["System.Numerics.Matrix4x4.M31"] = "[2][0]", - ["System.Numerics.Matrix4x4.M32"] = "[2][1]", - ["System.Numerics.Matrix4x4.M33"] = "[2][2]", - ["System.Numerics.Matrix4x4.M34"] = "[2][3]", - ["System.Numerics.Matrix4x4.M41"] = "[3][0]", - ["System.Numerics.Matrix4x4.M42"] = "[3][1]", - ["System.Numerics.Matrix4x4.M43"] = "[3][2]", - ["System.Numerics.Matrix4x4.M44"] = "[3][3]" + ["System.Numerics.Vector4.One"] = "float4(1.0f, 1.0f, 1.0f, 1.0f)" }; /// diff --git a/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs b/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs index 56a9a633..0140ed18 100644 --- a/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs +++ b/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs @@ -25,7 +25,6 @@ namespace ComputeSharp.Shaders.Mappings [typeof(Vector2).FullName] = "float2", [typeof(Vector3).FullName] = "float3", [typeof(Vector4).FullName] = "float4", - [typeof(Matrix4x4).FullName] = "float4x4", [typeof(ThreadIds).FullName] = "uint3", [typeof(ReadOnlyBuffer<>).FullName] = "StructuredBuffer", [typeof(ReadWriteBuffer<>).FullName] = "RWStructuredBuffer" @@ -51,8 +50,7 @@ namespace ComputeSharp.Shaders.Mappings [Pure] public static bool IsKnownVectorType(Type type) => type == typeof(Vector2) || type == typeof(Vector3) || - type == typeof(Vector4) || - type == typeof(Matrix4x4); + type == typeof(Vector4); /// /// Checks whether or not the input type is a value