summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-09-23 16:32:47 -0700
committerGitHub <noreply@github.com>2024-09-23 16:32:47 -0700
commit3e950e11f46fa3d2a84f04345ea860907ae9715a (patch)
tree13c115fb9c41f6ceb6c270f35822cd762f624f68 /source/slang/slang-emit.cpp
parent14b1098c934927898488c057b8c517da84990595 (diff)
Implemented Combined-texture for WGSL (#5130)
* Implemented Combined-texture for WGSL * Remove unnecessary comment * Limit to std430 layout * Fix compiler warning for unused variable --------- Co-authored-by: Yong He <yonghe@outlook.com>
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 6e3556064..71ef7ee33 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -973,8 +973,9 @@ Result linkAndOptimizeIR(
case CodeGenTarget::Metal:
case CodeGenTarget::MetalLib:
case CodeGenTarget::MetalLibAssembly:
+ case CodeGenTarget::WGSL:
if (requiredLoweringPassSet.combinedTextureSamplers)
- lowerCombinedTextureSamplers(irModule, sink);
+ lowerCombinedTextureSamplers(codeGenContext, irModule, sink);
break;
}