summaryrefslogtreecommitdiff
path: root/source/slang/slang-parameter-binding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-parameter-binding.cpp')
-rw-r--r--source/slang/slang-parameter-binding.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/slang/slang-parameter-binding.cpp b/source/slang/slang-parameter-binding.cpp
index 516b9eb44..f702efb94 100644
--- a/source/slang/slang-parameter-binding.cpp
+++ b/source/slang/slang-parameter-binding.cpp
@@ -2642,7 +2642,8 @@ static ParameterBindingAndKindInfo _allocateConstantBufferBinding(
auto layoutInfo = context->getRulesFamily()
->getConstantBufferRules(context->getTargetRequest()->getOptionSet())
- ->GetObjectLayout(ShaderParameterKind::ConstantBuffer, context->layoutContext.objectLayoutOptions);
+ ->GetObjectLayout(ShaderParameterKind::ConstantBuffer, context->layoutContext.objectLayoutOptions)
+ .getSimple();
ParameterBindingAndKindInfo info;
info.kind = layoutInfo.kind;
@@ -2662,7 +2663,8 @@ static ParameterBindingAndKindInfo _assignConstantBufferBinding(
auto layoutInfo = context->getRulesFamily()
->getConstantBufferRules(context->getTargetRequest()->getOptionSet())
- ->GetObjectLayout(ShaderParameterKind::ConstantBuffer, context->layoutContext.objectLayoutOptions);
+ ->GetObjectLayout(ShaderParameterKind::ConstantBuffer, context->layoutContext.objectLayoutOptions)
+ .getSimple();
const Index count = Index(layoutInfo.size.getFiniteValue());