<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Capabilities/supportedColorFormats(options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "s:So27CP_OBJECT_cp_layer_rendererC18CompositorServicesE12CapabilitiesV21supportedColorFormats7optionsSaySo14MTLPixelFormatVGAE09SupportedjK7OptionsV_tF"
  },
  "title" : "supportedColorFormats(options:)"
}
-->

# supportedColorFormats(options:)

Returns an array of formats that the layer supports for its color textures

```
func supportedColorFormats(options: LayerRenderer.Capabilities.SupportedColorFormatsOptions) -> [MTLPixelFormat]
```

## Parameters

`options`

Specific options you want the formats of the color textures to be supported with.
The function returns only color formats that are supported with the specified options.

## Discussion

Call this function to determine which pixel arrangements and characteristics the layer supports for its color
textures.

---

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)