GPUCanvasContext
The GPUCanvasContext interface of the WebGPU API represents the WebGPU rendering context of a
Properties
Functions
The configure() method of the GPUCanvasContext interface configures the context to use for rendering with a given GPUDevice. When called the canvas will initially be cleared to transparent black.
The getConfiguration() method of the GPUCanvasContext interface returns the current configuration set for the context.
The getCurrentTexture() method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
The unconfigure() method of the GPUCanvasContext interface removes any previously-set context configuration, and destroys any textures returned via getCurrentTexture() while the canvas context was configured.