diff options
| author | Yong He <yonghe@outlook.com> | 2024-09-20 15:11:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-20 15:11:23 -0700 |
| commit | 490834924cc390cb812713c225b9a8227c66cf1f (patch) | |
| tree | 5644e2a18cb085692d5fe9625f42582db07447be /source/slang/slang-emit-cpp.cpp | |
| parent | b4c851fb1419f869bddaa08487f58376bc0a7144 (diff) | |
Initial `Atomic<T>` type implementation. (#5125)
* Initial Atomic<T> type implementation.
* Update design doc.
* Fix.
* Add test.
* Fixes and add tests.
* Fix WGSL.
* Fix glsl.
* Fix metal.
* experiemnt with github metal.
* experiment github metal 2
* github metal experiment 3
* experiment with github metal 4.
* experiment with metal 5.
* experiment 7.
* metal experiment 8.
* Fix metal tests.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-emit-cpp.cpp')
| -rw-r--r-- | source/slang/slang-emit-cpp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp index bcb9ed9da..19dc05dcf 100644 --- a/source/slang/slang-emit-cpp.cpp +++ b/source/slang/slang-emit-cpp.cpp @@ -337,6 +337,10 @@ SlangResult CPPSourceEmitter::calcTypeName(IRType* type, CodeGenTarget target, S out << intLit->getValue(); return SLANG_OK; } + case kIROp_AtomicType: + { + return calcTypeName((IRType*)type->getOperand(0), target, out); + } default: { if (isNominalOp(type->getOp())) |
