Vixen
02b45cc4
csharp
public enum IrAtomicOp

What an atomic read-modify-write does to the value it finds.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Signedness is not here, because the place's type carries it: SPIR-V splits Min and Max into signed and unsigned opcodes and GLSL does not, so the split belongs to the backend that needs it rather than to an IR both read.

Fields and properties (8)

  • Add

    Adds, and answers with what was there.

  • Min

    Keeps the smaller.

  • Max

    Keeps the larger.

  • And

    Bitwise and.

  • Or

    Bitwise or.

  • Xor

    Bitwise exclusive or.

  • Exchange

    Replaces unconditionally.

  • CompareExchange

    Replaces only if what is there equals the comparand.

Used by (7)

  • AtomicTestsVixen.Raven.Tests
  • FunctionVerifierVixen.Raven
  • GlslEmitterVixen.Raven
  • Int64TestsVixen.Raven.Tests
  • IrAtomicInstructionVixen.Raven
  • LowererVixen.Raven
  • SpirvEmitterVixen.Raven