WebGLCommandEncoder

View source

WebGPU-shaped command encoder for the WebGL backend.

The encoder executes immediately against the WebGL context. finish() is kept as a compatibility hook so WebGPU-shaped call sites still read cleanly.

Constructor


constructor ( context: WebGL2RenderingContext , drawBuffer: WebGLFramebuffer , readBuffer: WebGLFramebuffer , limits: WebGLDeviceLimits )

View source

Parameters

Name Description Default
context — —
drawBuffer — —
readBuffer — —
limits — —

Methods


copyBufferToBuffer ( source: GPUBuffer , sourceOffset: number , destination: GPUBuffer , destinationOffset: number , size: number ) : void

View source

Parameters

Name Description Default
source — —
sourceOffset — —
destination — —
destinationOffset — —
size — —