<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Capabilities",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "s:So27CP_OBJECT_cp_layer_rendererC18CompositorServicesE12CapabilitiesV"
  },
  "title" : "LayerRenderer.Capabilities"
}
-->

# LayerRenderer.Capabilities

The color formats, depth formats, and features that you can use to configure your rendering engine.

```
struct Capabilities
```

## Overview

A [`LayerRenderer.Capabilities`](/documentation/CompositorServices/LayerRenderer/Capabilities) type provides information about the capabilities of the current device. Simulator and devices support different sets of options. Use the information in this type to specify the configuration details for your layer.

## Topics

### Getting the supported formats

[`var supportedColorFormats: [MTLPixelFormat]`](/documentation/CompositorServices/LayerRenderer/Capabilities/supportedColorFormats)

An array of color formats that the layer supports for its textures.

[`var supportedDepthFormats: [MTLPixelFormat]`](/documentation/CompositorServices/LayerRenderer/Capabilities/supportedDepthFormats)

The list of depth formats that the layer supports

### Getting the supported layouts

[`func supportedLayouts(options: LayerRenderer.Capabilities.SupportedLayoutsOptions) -> [LayerRenderer.Layout]`](/documentation/CompositorServices/LayerRenderer/Capabilities/supportedLayouts(options:))

Returns an array of texture layouts that the layer supports.

[`struct SupportedLayoutsOptions`](/documentation/CompositorServices/LayerRenderer/Capabilities/SupportedLayoutsOptions)

Options you can use to filter the supported layouts for a layer.

### Getting the supported layer features

[`var supportsFoveation: Bool`](/documentation/CompositorServices/LayerRenderer/Capabilities/supportsFoveation)

A Boolean value that indicates whether the layer supports variable rasterization rates.

### Getting the minimum near plane distance

[`var supportedMinimumNearPlaneDistance: Float`](/documentation/CompositorServices/LayerRenderer/Capabilities/supportedMinimumNearPlaneDistance)

The minimum distance in meters to the layer’s near projection plane.

### Determining supported stencil formats

[`var drawableRenderContextSupportedStencilFormats: [MTLPixelFormat]`](/documentation/CompositorServices/LayerRenderer/Capabilities/drawableRenderContextSupportedStencilFormats)

An array of metal pixel formats the layer renderer drawable supports with its render context.

### Getting render quality

[`var defaultRenderQuality: LayerRenderer.RenderQuality`](/documentation/CompositorServices/LayerRenderer/Capabilities/defaultRenderQuality)

The default render quality used on this platform.

### Structures

[`struct SupportedColorFormatsOptions`](/documentation/CompositorServices/LayerRenderer/Capabilities/SupportedColorFormatsOptions)

Options you can use to filter the supported color formats for a layer textures.

### Instance Properties

[`var supportedTrackingAreasFormats: [MTLPixelFormat]`](/documentation/CompositorServices/LayerRenderer/Capabilities/supportedTrackingAreasFormats)

An array of tracking areas formats that the layer supports for its textures.

### Instance Methods

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

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

## Relationships

### Conforms To

[`Copyable`](/documentation/Swift/Copyable)

[`Escapable`](/documentation/Swift/Escapable)

---

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)