<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderer/Configuration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C13ConfigurationV"
  },
  "title" : "LowLevelRenderer.Configuration"
}
-->

# LowLevelRenderer.Configuration

The configuration for a renderer.

```
struct Configuration
```

## Topics

### Creating a configuration

[`init(output: LowLevelRenderer.Configuration.Output, rasterSampleCount: Int, enableTonemap: Bool, enableColorMatch: Bool, alphaPremultiply: Bool, maxCameraCount: Int)`](/documentation/RealityKit/LowLevelRenderer/Configuration/init(output:rasterSampleCount:enableTonemap:enableColorMatch:alphaPremultiply:maxCameraCount:))

Creates a configuration with the given output format, MSAA sample count, and flags.

### Specifying the output

[`var output: LowLevelRenderer.Configuration.Output`](/documentation/RealityKit/LowLevelRenderer/Configuration/output-swift.property)

The pixel format configuration for this renderer’s output attachments.

[`struct Output`](/documentation/RealityKit/LowLevelRenderer/Configuration/Output-swift.struct)

The pixel format configuration for a renderer’s output attachments.

[`var renderTargetDescriptor: LowLevelRenderTarget.Descriptor`](/documentation/RealityKit/LowLevelRenderer/Configuration/renderTargetDescriptor)

The render target descriptor derived from this configuration’s [`output`](/documentation/RealityKit/LowLevelRenderer/Configuration/output-swift.property).

### Configuring pixel formats

[`var colorAttachmentPixelFormats: [MTLPixelFormat]`](/documentation/RealityKit/LowLevelRenderer/Configuration/colorAttachmentPixelFormats)

The pixel formats of the color attachments in the render pass the renderer encodes into.

[`var depthAttachmentPixelFormat: MTLPixelFormat`](/documentation/RealityKit/LowLevelRenderer/Configuration/depthAttachmentPixelFormat)

The pixel format of the depth attachment in the render pass the renderer encodes into.

[`var stencilAttachmentPixelFormat: MTLPixelFormat`](/documentation/RealityKit/LowLevelRenderer/Configuration/stencilAttachmentPixelFormat)

The pixel format of the stencil attachment in the render pass the renderer encodes into.

### Tuning rendering options

[`var rasterSampleCount: Int`](/documentation/RealityKit/LowLevelRenderer/Configuration/rasterSampleCount)

The number of samples per pixel for MSAA.

[`var enableTonemap: Bool`](/documentation/RealityKit/LowLevelRenderer/Configuration/enableTonemap)

A Boolean value that indicates whether output values are tone-mapped to the target
pixel format’s range before being written to the output texture.

[`var enableColorMatch: Bool`](/documentation/RealityKit/LowLevelRenderer/Configuration/enableColorMatch)

A Boolean value that indicates whether the renderer applies a gamut conversion matrix during
resolve, converting from the renderer’s working color space to the output display’s
color space.

[`var alphaPremultiply: Bool`](/documentation/RealityKit/LowLevelRenderer/Configuration/alphaPremultiply)

A Boolean value that indicates whether the renderer divides content by alpha before
applying tonemap and color match, then multiplies by alpha before final texture output.

[`var maxCameraCount: Int`](/documentation/RealityKit/LowLevelRenderer/Configuration/maxCameraCount)

The maximum number of simultaneous cameras supported.

## Relationships

### Conforms To

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

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

---

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)