Contents

GaussianSplatResource

A container for the splat data and rendering options that a Gaussian splat component displays.

Declaration

final class GaussianSplatResource

Overview

A Gaussian splat resource holds the per-splat data the framework renders, together with the options that control how it renders that data: the scale and opacity activation functions, the projection mode, the sorting mode, and the color space.

Create a resource from a GaussianSplatResource.BufferResource that describes your splat buffers, then attach it to an entity with a GaussianSplatComponent:

let resource = GaussianSplatResource(bufferResource)
let entity = Entity()
entity.components.set(GaussianSplatComponent(resource))

For a complete example that builds the buffer resource from source data, see GaussianSplatComponent.

The framework references the resource’s buffers rather than copying them, so you can update the contents of the underlying LowLevelBuffer instances to animate the splats over time.

Topics

Structures

Initializers

Instance Properties

Enumerations