Skip to content
0.2.0-dev Download ZIP
16 lines ·825 B Raw
1diff --git a/thirdparty/glslang/SPIRV/GlslangToSpv.cpp b/thirdparty/glslang/SPIRV/GlslangToSpv.cpp
2index 1a5c40c53a..d4af42f70b 100644
3--- a/thirdparty/glslang/SPIRV/GlslangToSpv.cpp
4+++ b/thirdparty/glslang/SPIRV/GlslangToSpv.cpp
5@@ -5181,6 +5181,11 @@ spv::Id TGlslangToSpvTraverser::createSpvVariable(const glslang::TIntermSymbol*
6 glslang::TQualifier typeQualifier = node->getType().getQualifier();
7 TranslateMemoryDecoration(typeQualifier, topLevelDecorations, glslangIntermediate->usingVulkanMemoryModel());
8 for (auto deco : topLevelDecorations) {
9+#ifdef __APPLE__
10+ if (deco != spv::Decoration::Restrict &&
11+ deco != spv::Decoration::RestrictPointer &&
12+ deco != spv::Decoration::RestrictPointerEXT)
13+#endif
14 builder.addDecoration(var, deco);
15 }
16 return var;