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,
) -> Result<(), Error>;
fn Unconfigure(&self);
fn GetCurrentTexture(&self) -> Result<Root<Dom<GPUTexture>>, Error>;
}