---
title: LayerRenderer.Configuration
framework: compositorservices
role: symbol
role_heading: Structure
path: compositorservices/layerrenderer/configuration-swift.struct
---

# LayerRenderer.Configuration

A type that stores the texture formats, layout information, and other details you use to configure your rendering loop code.

## Declaration

```swift
struct Configuration
```

## Mentioned in

Defining layer renderer quality

## Overview

Overview A LayerRenderer.Configuration type stores the configuration options for your app’s LayerRenderer object. When configuring your app’s CompositorLayer type, use this type to specify information about the texture layouts, pixel formats, and rendering options you want. The system uses the provided information to initialize the LayerRenderer object. It also uses the information to create the Metal textures and other data structures that you use for each frame of content. You don’t create this type directly. When implementing the makeConfiguration(capabilities:configuration:) method of your CompositorLayerConfiguration type, the system passes a set of default configuration values for you to modify.

## Topics

### Configuring the color textures

- [colorFormat](compositorservices/layerrenderer/configuration-swift.struct/colorformat.md)
- [colorUsage](compositorservices/layerrenderer/configuration-swift.struct/colorusage.md)

### Configuring the depth information

- [depthFormat](compositorservices/layerrenderer/configuration-swift.struct/depthformat.md)
- [depthUsage](compositorservices/layerrenderer/configuration-swift.struct/depthusage.md)
- [defaultDepthRange](compositorservices/layerrenderer/configuration-swift.struct/defaultdepthrange.md)

### Configuring the texture layout

- [layout](compositorservices/layerrenderer/configuration-swift.struct/layout.md)
- [LayerRenderer.Layout](compositorservices/layerrenderer/layout.md)

### Configuring the foveation setting

- [isFoveationEnabled](compositorservices/layerrenderer/configuration-swift.struct/isfoveationenabled.md)
- [generateFlippedRasterizationRateMaps](compositorservices/layerrenderer/configuration-swift.struct/generateflippedrasterizationratemaps.md)

### Configurating the render context

- [drawableRenderContextStencilFormat](compositorservices/layerrenderer/configuration-swift.struct/drawablerendercontextstencilformat.md)
- [drawableRenderContextRasterSampleCount](compositorservices/layerrenderer/configuration-swift.struct/drawablerendercontextrastersamplecount.md)

### Configuring quality level

- [maxRenderQuality](compositorservices/layerrenderer/configuration-swift.struct/maxrenderquality.md)

### Instance Properties

- [supportsMTL4](compositorservices/layerrenderer/configuration-swift.struct/supportsmtl4.md)
- [trackingAreasFormat](compositorservices/layerrenderer/configuration-swift.struct/trackingareasformat.md)
- [trackingAreasUsage](compositorservices/layerrenderer/configuration-swift.struct/trackingareasusage.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)

## See Also

### Configuring the layer renderer

- [configuration](compositorservices/layerrenderer/configuration-swift.property.md)
- [LayerRenderer.Capabilities](compositorservices/layerrenderer/capabilities.md)
