diff options
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index e7f82f5ad..f6c662a98 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -3046,10 +3046,10 @@ IRWitnessTableIDType* IRBuilder::getWitnessTableIDType(IRType* baseType) createIntrinsicInst(nullptr, kIROp_WitnessTableIDType, 1, (IRInst* const*)&baseType); } -IRConstantBufferType* IRBuilder::getConstantBufferType(IRType* elementType) +IRConstantBufferType* IRBuilder::getConstantBufferType(IRType* elementType, IRType* layoutType) { - IRInst* operands[] = {elementType}; - return (IRConstantBufferType*)getType(kIROp_ConstantBufferType, 1, operands); + IRInst* operands[] = {elementType, layoutType}; + return (IRConstantBufferType*)getType(kIROp_ConstantBufferType, 2, operands); } IRGLSLOutputParameterGroupType* IRBuilder::getGLSLOutputParameterGroupType(IRType* elementType) |
