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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index ccc1404f1..4696d50af 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -1077,7 +1077,7 @@ SLANG_NO_THROW slang::TypeReflection* SLANG_MCALL Linkage::getContainerType(
ConstantBufferType* cbType = getASTBuilder()->create<ConstantBufferType>();
cbType->elementType = type;
cbType->declRef = getASTBuilder()->getBuiltinDeclRef(
- "ConstantBuffer", makeConstArrayView<Val*>(static_cast<Val*>(type)));
+ "ConstantBuffer", makeConstArrayViewSingle<Val*>(static_cast<Val*>(type)));
containerTypeReflection = cbType;
}
break;
@@ -1086,7 +1086,7 @@ SLANG_NO_THROW slang::TypeReflection* SLANG_MCALL Linkage::getContainerType(
ParameterBlockType* pbType = getASTBuilder()->create<ParameterBlockType>();
pbType->elementType = type;
pbType->declRef = getASTBuilder()->getBuiltinDeclRef(
- "ParameterBlock", makeConstArrayView<Val*>(static_cast<Val*>(type)));
+ "ParameterBlock", makeConstArrayViewSingle<Val*>(static_cast<Val*>(type)));
containerTypeReflection = pbType;
}
break;
@@ -1096,7 +1096,7 @@ SLANG_NO_THROW slang::TypeReflection* SLANG_MCALL Linkage::getContainerType(
getASTBuilder()->create<HLSLStructuredBufferType>();
sbType->elementType = type;
sbType->declRef = getASTBuilder()->getBuiltinDeclRef(
- "HLSLStructuredBufferType", makeConstArrayView<Val*>(static_cast<Val*>(type)));
+ "HLSLStructuredBufferType", makeConstArrayViewSingle<Val*>(static_cast<Val*>(type)));
containerTypeReflection = sbType;
}
break;