UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

12 lines (11 loc) 434 B
var gsplatComputeStreamDecl_default = ( /* wgsl */ ` @group(0) @binding({binding}) var {name}: {textureType}; fn load{funcName}() -> {returnType} { return textureLoad({name}, splat.uv, 0); } fn load{funcName}WithIndex(index: u32) -> {returnType} { return textureLoad({name}, vec2i(i32(index % uniforms.splatTextureSize), i32(index / uniforms.splatTextureSize)), 0); } ` ); export { gsplatComputeStreamDecl_default as default };