<!--
{
  "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/Output-swift.struct/init(colorPixelFormat:depthPixelFormat:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer08LowLevelC0C13ConfigurationV6OutputV16colorPixelFormat05depthiJ0AGSo08MTLPixelJ0VSg_ALtcfc"
  },
  "title" : "init(colorPixelFormat:depthPixelFormat:)"
}
-->

# init(colorPixelFormat:depthPixelFormat:)

Creates an output configuration with the given color and depth pixel formats.

```
init(colorPixelFormat: MTLPixelFormat?, depthPixelFormat: MTLPixelFormat? = nil)
```

## Parameters

`colorPixelFormat`

The pixel format of the color attachment, or `nil` for depth-only passes.

`depthPixelFormat`

The pixel format of the depth attachment, or `nil` to omit depth. Defaults to `nil`.

---

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)