summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-type-layout.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-11-06 11:21:53 -0800
committerGitHub <noreply@github.com>2024-11-06 11:21:53 -0800
commit2533125cb7c673b313195e1d8bc6066b253d95ae (patch)
tree480193df48d9c5895e976ba929163ed47f82176c /source/slang/slang-type-layout.cpp
parentb86703432629bbfd75a902671d15e40c591065a7 (diff)
Fix WGSL parameter block binding. (#5500)
* Fix WGSL parameter block binding. * Re-enable tests. * Update failure list. * Fix entrypoint parameters. * Update tests. * Enable stat-var test.
Diffstat (limited to 'source/slang/slang-type-layout.cpp')
-rw-r--r--source/slang/slang-type-layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-type-layout.cpp b/source/slang/slang-type-layout.cpp
index e36e54531..62caecf72 100644
--- a/source/slang/slang-type-layout.cpp
+++ b/source/slang/slang-type-layout.cpp
@@ -2546,7 +2546,7 @@ static bool shouldAllocateRegisterSpaceForParameterBlock(TypeLayoutContext const
// If we know that we are targetting Vulkan, then
// the only way to effectively use parameter blocks
// is by using descriptor sets.
- if (isVulkanTarget(targetReq))
+ if (isVulkanTarget(targetReq) || isWGPUTarget(targetReq))
return true;
// If none of the above passed, then it seems like we