From fcc41ae91613821e8d2ab899c6635fa3ab97a7e7 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 20 Sep 2019 03:13:04 +0200 Subject: [PATCH] Added mappings for the Bool type --- src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs b/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs index de6c9a36..170953b0 100644 --- a/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs +++ b/src/ComputeSharp.Shaders/Mappings/HlslKnownTypes.cs @@ -17,6 +17,7 @@ namespace ComputeSharp.Shaders.Mappings private static readonly IReadOnlyDictionary KnownTypes = new Dictionary { [typeof(bool).FullName] = "bool", + [typeof(Bool).FullName] = "bool", [typeof(Bool2).FullName] = "bool2", [typeof(Bool3).FullName] = "bool3", [typeof(Bool4).FullName] = "bool4", @@ -77,6 +78,7 @@ namespace ComputeSharp.Shaders.Mappings /// A indicating whether the input is in fact a known HLSL scalar type [Pure] public static bool IsKnownScalarType(Type type) => type == typeof(bool) || + type == typeof(Bool) || type == typeof(int) || type == typeof(uint) || type == typeof(float) ||