summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-11-06 10:58:09 -0800
committerGitHub <noreply@github.com>2024-11-06 10:58:09 -0800
commitb86703432629bbfd75a902671d15e40c591065a7 (patch)
tree2109f87304fa534034f01812551f29be098c4710 /source/slang/slang-ir.cpp
parentf8294202ce8d5658f6308eeaed634058db9bbb4b (diff)
[WGSL] Enable arbitrary arrays in uniform buffers. (#5497)
* [WGSL] Enable arbitrary arrays in uniform buffers. * format code * Undo irrelevant change and fixups. * Update expected failure list. * Fix. * Rename. --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index 2cbafea6c..823b3cd7d 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -2264,6 +2264,11 @@ IRInst* IRBuilder::getBoolValue(bool inValue)
return _findOrEmitConstant(keyInst);
}
+IRInst* IRBuilder::getIntValue(IRIntegerValue value)
+{
+ return getIntValue(getIntType(), value);
+}
+
IRInst* IRBuilder::getIntValue(IRType* type, IRIntegerValue inValue)
{
IRConstant keyInst;