shader: support IMAGE_ATOMIC_SWAP (#456)

This commit is contained in:
Brandon Strong authored and GitHub committed 2026-09-03 03:37:55 +02:00
1 parent 98200fed19
commit 2d5023fda2
8 files changed
+44 -1

No files matched your search

@@ -576,6 +576,7 @@ uint32_t StoreTexel(ValueEmitContext& ctx, const IR::MemoryInfo& mem, uint32_t d
uint32_t ImageAtomicOpcode(IR::ValueOpcode opcode) {
switch (opcode) {
case IR::ValueOpcode::ImageAtomicSwap32: return OpAtomicExchange;
case IR::ValueOpcode::ImageAtomicIAdd32: return OpAtomicIAdd;
case IR::ValueOpcode::ImageAtomicUMin32: return OpAtomicUMin;
case IR::ValueOpcode::ImageAtomicUMax32: return OpAtomicUMax;