summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-emit.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index 326fc702d..a9d5c5e50 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -1200,6 +1200,15 @@ Result linkAndOptimizeIR(
byteAddressBufferOptions.translateToStructuredBufferOps = false;
byteAddressBufferOptions.lowerBasicTypeOps = true;
break;
+ case CodeGenTarget::WGSL:
+ case CodeGenTarget::WGSLSPIRV:
+ case CodeGenTarget::WGSLSPIRVAssembly:
+ byteAddressBufferOptions.scalarizeVectorLoadStore = true;
+ byteAddressBufferOptions.treatGetEquivalentStructuredBufferAsGetThis = true;
+ byteAddressBufferOptions.translateToStructuredBufferOps = false;
+ byteAddressBufferOptions.lowerBasicTypeOps = true;
+ byteAddressBufferOptions.useBitCastFromUInt = true;
+ break;
}
// We also need to decide whether to translate