diff options
Diffstat (limited to 'source/slang/slang-emit-cpp.cpp')
| -rw-r--r-- | source/slang/slang-emit-cpp.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp index 95a6ea4ff..58c635d90 100644 --- a/source/slang/slang-emit-cpp.cpp +++ b/source/slang/slang-emit-cpp.cpp @@ -352,6 +352,9 @@ SlangResult CPPSourceEmitter::calcTypeName(IRType* type, CodeGenTarget target, S // Assumes ordering of types matches ordering of operands. UInt operandCount = type->getOperandCount(); + if (as<IRHLSLStructuredBufferTypeBase>(type)) + operandCount = 1; + if (operandCount) { m_writer->emit("<"); |
