diff options
Diffstat (limited to 'source/slang/ir.cpp')
| -rw-r--r-- | source/slang/ir.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/ir.cpp b/source/slang/ir.cpp index f622804b2..0a5b8491c 100644 --- a/source/slang/ir.cpp +++ b/source/slang/ir.cpp @@ -1710,6 +1710,15 @@ namespace Slang (IRInst* const*) paramTypes); } + IRConstantBufferType* IRBuilder::getConstantBufferType(IRType* elementType) + { + IRInst* operands[] = { elementType }; + return (IRConstantBufferType*) getType( + kIROp_ConstantBufferType, + 1, + operands); + } + IRConstExprRate* IRBuilder::getConstExprRate() { return (IRConstExprRate*)getType(kIROp_ConstExprRate); |
