GPUCanvasContext
interface
interface GPUCanvasContextThe rendering context that presents WebGPU-rendered images on an
OffscreenCanvas. Obtained from
OffscreenCanvas.getContext with the "webgpu" context id.
variable
var GPUCanvasContext: { … }The constructor object for GPUCanvasContext.
A GPUCanvasContext is obtained from
OffscreenCanvas.getContext with the "webgpu" context id rather
than constructed directly.
Properties
canvas
readonly canvas: OffscreenCanvasThe canvas that this context is bound to.
prototype
prototype: GPUCanvasContextMethods
configure
configure(configuration: GPUCanvasConfiguration): undefinedgetConfiguration
getConfiguration(): GPUCanvasConfiguration | nullunconfigure
unconfigure(): undefinedgetCurrentTexture
getCurrentTexture(): GPUTexture