UNPKG

@playcanvas/splat-transform

Version:

Library and CLI tool for 3D Gaussian splat format conversion and transformation

12 lines (11 loc) 513 B
/** * Initialises `tileOffsets[0 .. numTiles]` to the sentinel value * `totalPairs[0]` (= past-the-end). `findBoundaries` then atomicMin's * the actual first-pair-index for every non-empty tile; tiles with no * pairs keep the sentinel, which collapses to a zero-length slice when * the rasterize-binned shader reads `tileOffsets[T] .. tileOffsets[T+1]`. * * @returns WGSL source for the init-tile-offsets compute shader. */ declare const initTileOffsetsWgsl: () => string; export { initTileOffsetsWgsl };