<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderPipelineState/Descriptor/writeMask",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer27LowLevelRenderPipelineStateC10DescriptorV9writeMaskSo013MTLColorWriteK0Vvp"
  },
  "title" : "writeMask"
}
-->

# writeMask

The color channels written to the output attachment.

```
var writeMask: MTLColorWriteMask { get set }
```

## Discussion

Defaults to `.all`. Set this to a subset of channels to write only specific components.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)