API

Interface IGaussianSplattingGpuSortSource

Inputs describing the splat data the GPU sorter reads. The sorter only reads textures: it never owns them.

interface IGaussianSplattingGpuSortSource {
    boundsMax?: ArrayLike<number>;
    boundsMin?: ArrayLike<number>;
    centersTexture: BaseTexture;
    partIndicesTexture?: any;
    sog?: {
        meansHighTexture: BaseTexture;
        meansMax: ArrayLike<number>;
        meansMin: ArrayLike<number>;
    };
    textureWidth: number;
    vertexCount: number;
}
Index
boundsMax?: ArrayLike<number>

Optional local-space bounding box maximum of the splat centers.

boundsMin?: ArrayLike<number>

Optional local-space bounding box minimum of the splat centers, used to derive the depth range when none is given to GaussianSplattingGpuSorter.sort. Not needed for SOG data (derived from the means range).

centersTexture: BaseTexture

RGBA32F texture whose xyz hold the splat centers. For SOG data, the RGBA8 "means low" texture.

partIndicesTexture?: any

Compound meshes: R8 texture (same layout as the centers) holding each splat's part index. Used together with GaussianSplattingGpuSorter.setPartMatrices.

sog?: {
    meansHighTexture: BaseTexture;
    meansMax: ArrayLike<number>;
    meansMin: ArrayLike<number>;
}

SOG (quantized means) inputs. When set, centers are decoded like the Gaussian Splatting vertex shader does.

Type Declaration

  • meansHighTexture: BaseTexture

    RGBA8 "means high" texture.

  • meansMax: ArrayLike<number>

    Quantization range maximum (xyz) of the log-encoded means.

  • meansMin: ArrayLike<number>

    Quantization range minimum (xyz) of the log-encoded means.

textureWidth: number

Width in texels of the data textures (splat index i lives at texel (i % width, floor(i / width))).

vertexCount: number

Number of splats in the mesh (the value used as the "empty splat" index padding the sorted output).