summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-06-28 16:09:06 -0700
committerGitHub <noreply@github.com>2023-06-28 16:09:06 -0700
commitb45e5aa07cf5e2e0bd23cf4c14bb40104b0b641c (patch)
tree52477da6fb0c75fd4e424a68850fdb703006f153 /source/slang/slang-emit.cpp
parent97963c5c119a3445fa6353809669d4553952e66c (diff)
Fix parameter block loads in GLSL emit. (#2946)
* Fix parameter block loads in GLSL emit. * Revert `[NoSideEffect]` declarations in DXR1.1 API. * fix. --------- Co-authored-by: Yong He <yhe@nvidia.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 f1ec402dd..b34483cf2 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -783,12 +783,13 @@ Result linkAndOptimizeIR(
break;
}
- // Legalize `ImageSubscript` for GLSL.
+ // Legalize `ImageSubscript` and constant buffer loads for GLSL.
switch (target)
{
case CodeGenTarget::GLSL:
{
legalizeImageSubscriptForGLSL(irModule);
+ legalizeConstantBufferLoadForGLSL(irModule);
}
break;
default: