@playcanvas/splat-transform
Version:
Library and CLI tool for 3D Gaussian splat format conversion and transformation
16 lines (15 loc) • 648 B
TypeScript
/**
* For every adjacent pair of sorted keys where the high-bit tile index
* differs, atomicMin's the current position into `tileOffsets[t]` for
* every tile `t` in `(prevTile, curTile]`. Combined with the sentinel
* init this gives `tileOffsets[T]` = first index in `sortedKeys` whose
* tile bits equal T (or the sentinel if T is empty).
*
* Dispatched indirectly with workgroup count `ceil(totalPairs / 64)` so
* that we don't waste invocations on the unused tail of the pairs
* buffer.
*
* @returns WGSL source for the find-boundaries compute shader.
*/
declare const findBoundariesWgsl: () => string;
export { findBoundariesWgsl };