Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2022-09-21 15:49:19 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2022-09-21 15:53:36 +0300
commit291def0793b3abea934f034742d60ad54f9036cb (patch)
treeaaf9b8eccf1c3a0a1db1c3db20492a4fab87ca11
parenta7f64a8b90c2efbb29ca7debe9a18241a152bb30 (diff)
MSL: Add more keywords to reserved set.fix-2009
Address space qualifiers must also be banned.
-rw-r--r--spirv_msl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/spirv_msl.cpp b/spirv_msl.cpp
index 36a128ba..d81a8189 100644
--- a/spirv_msl.cpp
+++ b/spirv_msl.cpp
@@ -13737,6 +13737,8 @@ const std::unordered_set<std::string> &CompilerMSL::get_reserved_keyword_set()
"vertex",
"fragment",
"compute",
+ "constant",
+ "device",
"bias",
"level",
"gradient2d",
@@ -13863,6 +13865,8 @@ const std::unordered_set<std::string> &CompilerMSL::get_reserved_keyword_set()
"M_SQRT2",
"M_SQRT1_2",
"quad_broadcast",
+ "thread",
+ "threadgroup",
};
return keywords;