summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit.cpp')
-rw-r--r--source/slang/slang-emit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index 7ad4ad5d4..311fce83d 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -242,7 +242,8 @@ Result linkAndOptimizeIR(
// un-specialized IR.
dumpIRIfEnabled(codeGenContext, irModule);
- lowerGLSLShaderStorageBufferObjects(irModule, sink);
+ if(!isKhronosTarget(targetRequest))
+ lowerGLSLShaderStorageBufferObjectsToStructuredBuffers(irModule, sink);
translateGLSLGlobalVar(codeGenContext, irModule);