playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
14 lines (12 loc) • 457 B
JavaScript
// Template for gsplat stream output - write function for MRT
// Placeholders: {funcName}, {returnType}, {colorSlot}, {defineGuard}
// Note: {colorSlot} is 'color' for index 0, 'color1', 'color2', etc. for others
// {defineGuard} is 1 for real output, 0 for no-op stub
var wgslStreamOutput = /* wgsl */ `
fn write{funcName}(value: {returnType}) {
processOutput.{colorSlot} = value;
}
`;
export { wgslStreamOutput as default };