Trait script::dom::bindings::codegen::Bindings::WebGPUBinding::GPUCanvasContext_Binding::GPUCanvasContextMethods
source · pub trait GPUCanvasContextMethods {
// Required methods
fn Canvas(&self) -> HTMLCanvasElementOrOffscreenCanvas;
fn Configure(&self, descriptor: &GPUCanvasConfiguration);
fn Unconfigure(&self);
fn GetCurrentTexture(&self) -> Result<Root<Dom<GPUTexture>>, Error>;
}