---
title: shaderAtomic
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtltextureusage/shaderatomic
---

# shaderAtomic

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

## Declaration

```swift
static var shaderAtomic: MTLTextureUsage { get }
```

## Discussion

Discussion Shaders can run atomic memory operations on textures with specific element type and pixel format combinations:  |   |   |   |  note: Applying this usage option to a texture disables lossless compression.

## See Also

### Specifying texture usage options

- [unknown](metal/mtltextureusage/unknown.md)
- [shaderRead](metal/mtltextureusage/shaderread.md)
- [shaderWrite](metal/mtltextureusage/shaderwrite.md)
- [renderTarget](metal/mtltextureusage/rendertarget.md)
- [pixelFormatView](metal/mtltextureusage/pixelformatview.md)
