diff options
| author | Yong He <yonghe@outlook.com> | 2024-06-13 16:29:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-13 16:29:58 -0700 |
| commit | cfef0c6f66c9d36ae2899c8c2790c3fe422a7700 (patch) | |
| tree | 0e116769009ae7e4b3b16d2ef28f275bea5e1fd7 /source/slang/slang-ir.cpp | |
| parent | 2407966e899f9e4f490b23a92fc06d5da20544cc (diff) | |
Metal: misc fixes and enable more tests. (#4374)
* Fix and enable tests for metal.
* Fix.
* Fix.
* Fix tests.
* Fix warnings.
* Fix.
---------
Co-authored-by: Yong He <yonghe@Yongs-Mac-mini.local>
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index b6d000d20..22ef4e6be 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -3213,6 +3213,18 @@ namespace Slang return inst; } + IRInst* IRBuilder::emitByteAddressBufferStore(IRInst* byteAddressBuffer, IRInst* offset, IRInst* value) + { + IRInst* args[] = { byteAddressBuffer, offset, getIntValue(getUIntType(), 0), value}; + return emitIntrinsicInst(getVoidType(), kIROp_ByteAddressBufferStore, 4, args); + } + + IRInst* IRBuilder::emitByteAddressBufferStore(IRInst* byteAddressBuffer, IRInst* offset, IRInst* alignment, IRInst* value) + { + IRInst* args[] = { byteAddressBuffer, offset, alignment, value }; + return emitIntrinsicInst(getVoidType(), kIROp_ByteAddressBufferStore, 4, args); + } + IRInst* IRBuilder::emitReinterpret(IRInst* type, IRInst* value) { return emitIntrinsicInst((IRType*)type, kIROp_Reinterpret, 1, &value); |
