Contents

shaderAtomic

An option that enables atomic memory operations on texture elements in shader code.

Declaration

static var shaderAtomic: MTLTextureUsage { get }

Discussion

Shaders can run atomic memory operations on textures with specific element type and pixel format combinations:

Shader element type

Pixel format

int

R32sint

uint

R32uint

ulong

Rg32uint

See Also

Specifying texture usage options