summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-hlsl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
-rw-r--r--source/slang/slang-emit-hlsl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp
index 26d37d1f5..824680b72 100644
--- a/source/slang/slang-emit-hlsl.cpp
+++ b/source/slang/slang-emit-hlsl.cpp
@@ -1310,6 +1310,13 @@ void HLSLSourceEmitter::emitSimpleTypeImpl(IRType* type)
_emitHLSLSubpassInputType(subpassType);
return;
}
+ else if (auto cbufferType = as<IRConstantBufferType>(type))
+ {
+ m_writer->emit("ConstantBuffer<");
+ emitType(cbufferType->getElementType());
+ m_writer->emit(" >");
+ return;
+ }
else if (auto structuredBufferType = as<IRHLSLStructuredBufferTypeBase>(type))
{
switch (structuredBufferType->getOp())