summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 854d90df5..e4de61276 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -1608,7 +1608,9 @@ SLANG_NO_THROW slang::TypeReflection* SLANG_MCALL Linkage::getContainerType(
{
case slang::ContainerType::ConstantBuffer:
{
- ConstantBufferType* cbType = getASTBuilder()->getConstantBufferType(type);
+ SemanticsVisitor visitor(getSemanticsForReflection());
+ auto layoutType = getASTBuilder()->getDefaultLayoutType();
+ Type* cbType = visitor.getConstantBufferType(type, layoutType);
containerTypeReflection = cbType;
}
break;