---
title: "init(color:depth:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/lowlevelrenderer/output-swift.struct/init(color:depth:)"
---

# init(color:depth:)

Creates an output configuration with the given color and depth texture targets.

## Declaration

```swift
init(color: LowLevelRenderer.Output.Texture? = nil, depth: LowLevelRenderer.Output.Texture? = nil)
```

## Parameters

- `color`: The color output texture, or nil for depth-only passes. Defaults to nil.
- `depth`: The depth output texture, or nil to omit depth. Defaults to nil.

## See Also

### Creating an output

- [LowLevelRenderer.Output.Texture](realitykit/lowlevelrenderer/output-swift.struct/texture.md)
