playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
9 lines (8 loc) • 414 B
JavaScript
var gsplatComputeStreamDecl_default = `
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
};