playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
23 lines (22 loc) • 983 B
TypeScript
/**
* @import { GSplatComputeLocalRenderer } from './gsplat-compute-local-renderer.js'
*/
/**
* A frame pass for the local tiled compute renderer. Registered as a camera beforePass so
* it runs before the main render pass. On each frame it resizes the offscreen output texture
* to match the camera's render target, then dispatches the single-pass local rasterizer.
* The rasterized result is later composited into the render target via a full-screen quad
* with premultiplied blending.
*
* @ignore
*/
export class FramePassGSplatComputeLocal extends FramePass {
/**
* @param {GSplatComputeLocalRenderer} renderer - The compute renderer that owns this pass.
*/
constructor(renderer: GSplatComputeLocalRenderer);
/** @type {GSplatComputeLocalRenderer} */
renderer: GSplatComputeLocalRenderer;
}
import { FramePass } from '../../platform/graphics/frame-pass.js';
import type { GSplatComputeLocalRenderer } from './gsplat-compute-local-renderer.js';