---
title: "init(depthPass:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/modelsortgroup/init(depthpass:)"
---

# init(depthPass:)

Creates a model sort group with an optional depth pass.

## Declaration

```swift
init(depthPass: ModelSortGroup.DepthPass? = nil)
```

## Parameters

- `depthPass`: A depth pass instance that tells the group how to draw the model entity’s color relative to its depth.
