UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

20 lines (19 loc) 673 B
/** * A render pass implementing grab of a color buffer. * * @ignore */ export class RenderPassColorGrab extends RenderPass { colorRenderTarget: any; /** * The source render target to grab the color from. * * @type {RenderTarget|null} */ source: RenderTarget | null; shouldReallocate(targetRT: any, sourceTexture: any, sourceFormat: any): boolean; allocateRenderTarget(renderTarget: any, sourceRenderTarget: any, device: any, format: any): any; releaseRenderTarget(rt: any): void; } import { RenderPass } from '../../platform/graphics/render-pass.js'; import { RenderTarget } from '../../platform/graphics/render-target.js';