---
title: GaussianSplatResource.SortingMode
framework: realitykit
role: symbol
role_heading: Enumeration
path: realitykit/gaussiansplatresource/sortingmode-swift.enum
---

# GaussianSplatResource.SortingMode

Correct blending of splat opacity requires rendering them in a specific order. You may sort by:

## Declaration

```swift
enum SortingMode
```

## Overview

Overview GaussianSplatResource.SortingMode.depth — Sorts splats by their z-coordinate relative to the camera. GaussianSplatResource.SortingMode.distance — Sorts splats by Euclidean distance from the camera.

## Topics

### Enumeration Cases

- [GaussianSplatResource.SortingMode.depth](realitykit/gaussiansplatresource/sortingmode-swift.enum/depth.md)
- [GaussianSplatResource.SortingMode.distance](realitykit/gaussiansplatresource/sortingmode-swift.enum/distance.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
