Instance
A WebGPU instance: navigator.gpu.
Static methods
function hxnAdopt(hxnRaw:Handle):InstanceAn object for a value the library returned.
function create():InstanceProperties
var hxnRaw:HandleMethods
function claimCanvas():Future<Unit>Takes the web page's canvas for this program's WebGPU, which createCanvasSurface then renders into. It fails when the page has no canvas or another browser agent holds it. Without threads the program holds the canvas, and it settles at once.
function createCanvasSurface():SurfaceThe web page's canvas, as a surface to render frames into.
function close():VoidReleases the native value now. The collector does it otherwise. Using this object afterwards throws.