---
title: swizzle
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtltexturedescriptor/swizzle
---

# swizzle

The pattern you want the GPU to apply to pixels when you read or sample pixels from the texture.

## Declaration

```swift
var swizzle: MTLTextureSwizzleChannels { get set }
```

## Discussion

Discussion The default value does not apply a transformation to pixels sampled or read from the texture.

## See Also

### Specifying texture attributes

- [textureType](metal/mtltexturedescriptor/texturetype.md)
- [pixelFormat](metal/mtltexturedescriptor/pixelformat.md)
- [width](metal/mtltexturedescriptor/width.md)
- [height](metal/mtltexturedescriptor/height.md)
- [depth](metal/mtltexturedescriptor/depth.md)
- [mipmapLevelCount](metal/mtltexturedescriptor/mipmaplevelcount.md)
- [sampleCount](metal/mtltexturedescriptor/samplecount.md)
- [arrayLength](metal/mtltexturedescriptor/arraylength.md)
- [resourceOptions](metal/mtltexturedescriptor/resourceoptions.md)
- [cpuCacheMode](metal/mtltexturedescriptor/cpucachemode.md)
- [storageMode](metal/mtltexturedescriptor/storagemode.md)
- [hazardTrackingMode](metal/mtltexturedescriptor/hazardtrackingmode.md)
- [allowGPUOptimizedContents](metal/mtltexturedescriptor/allowgpuoptimizedcontents.md)
- [usage](metal/mtltexturedescriptor/usage.md)
- [MTLTextureSwizzleChannels](metal/mtltextureswizzlechannels.md)
