Class GaussianSplattingGpuSortOutput
Accessors
buffer
-
get buffer(): Nullable<StorageBuffer>
The buffer holding the sorted splat indices as float32 (back-to-front), padded to a multiple of 16 with the empty splat index.
Returns Nullable<StorageBuffer>
buffers Version
-
get buffersVersion(): number
Incremented each time the underlying buffer and vertex buffers are recreated.
Returns number
instance Count
-
get instanceCount(): number
Number of instances to draw (16 splats per instance) after the last successful sort.
Returns number
padded Count
-
get paddedCount(): number
Number of output slots written by the last successful sort: a multiple of 16 (0 before the first successful sort).
Returns number
vertex Buffers
-
get vertexBuffers(): readonly VertexBuffer[]
The 4 instanced vertex buffers
splatIndex0...splatIndex3(vec4 each, stride 16 floats) viewing buffer.Returns readonly VertexBuffer[]
Per-view GPU buffer receiving a sorted splat index list. It can be bound as the four instanced
splatIndex0...splatIndex3vertex attributes of the Gaussian Splatting vertex shader (16 splats per instance), in place of the CPU-uploaded index buffer.Create it with GaussianSplattingGpuSorter.createOutput. After each successful sort, if buffersVersion changed, the vertex buffers were recreated (the output grew) and must be bound again.