CanvasTarget

View source

Extends RenderTarget

Constructor


Properties


Methods


getCurrentTexture ( device: WebGLRenderDevice ) : GPUTexture

View source

Returns the native canvas framebuffer as a GPUTexture-shaped render attachment. Its inner value is null because the framebuffer is owned by the WebGL context rather than represented by a WebGLTexture.

Parameters

Name Description Default
device — —