From d6502aa38cf934ac4fda1ed2c9668758288a4cf7 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 9 Aug 2022 23:46:11 +0200 Subject: [PATCH] Add "buffer" and "texture" known keywords --- .../Mappings/HlslKnownKeywords.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/Mappings/HlslKnownKeywords.cs b/src/ComputeSharp.SourceGeneration.Hlsl/Mappings/HlslKnownKeywords.cs index 6f6711fe..3db69f94 100644 --- a/src/ComputeSharp.SourceGeneration.Hlsl/Mappings/HlslKnownKeywords.cs +++ b/src/ComputeSharp.SourceGeneration.Hlsl/Mappings/HlslKnownKeywords.cs @@ -23,10 +23,10 @@ internal static partial class HlslKnownKeywords // HLSL keywords HashSet knownKeywords = new(new[] { - "asm", "asm_fragment", "cbuffer", "centroid", "column_major", - "compile", "discard", "dword", "export", "fxgroup", "groupshared", - "half", "inline", "inout", "line", "lineadj", "linear", "matrix", - "nointerpolation", "noperspective", "NULL", "packoffset", "pass", + "asm", "asm_fragment", "cbuffer", "buffer", "texture", "centroid", + "column_major", "compile", "discard", "dword", "export", "fxgroup", + "groupshared", "half", "inline", "inout", "line", "lineadj", "linear", + "matrix", "nointerpolation", "noperspective", "NULL", "packoffset", "pass", "pixelfragment", "point", "precise", "register", "row_major", "sample", "sampler", "shared", "snorm", "stateblock", "stateblock_state", "tbuffer", "technique", "typedef", "triangle", "triangleadj", "uniform", "unorm",