init(count:position:scale:rotation:opacity:sphericalHarmonics:)
Creates a buffer resource from descriptors for each per-splat property.
Declaration
@MainActor init(count: Int, position: GaussianSplatResource.BufferDescriptor, scale: GaussianSplatResource.BufferDescriptor, rotation: GaussianSplatResource.BufferDescriptor, opacity: GaussianSplatResource.BufferDescriptor, sphericalHarmonics: (GaussianSplatResource.BufferDescriptor, GaussianSplatResource.SphericalHarmonicDegree)) throwsParameters
- count:
The number of splats to render.
- position:
The descriptor for each splat’s position.
- scale:
The descriptor for each splat’s scale.
- rotation:
The descriptor for each splat’s rotation.
- opacity:
The descriptor for each splat’s opacity.
- sphericalHarmonics:
The descriptor for each splat’s spherical harmonic coefficients, paired with the degree those coefficients represent.