Optional ReadonlygpuOptional ReadonlyonCalled with GPU errors the library can attribute: a shader that does not compile
(ShaderCompileError, naming the shader and the lines), validation and out-of-memory errors.
They arrive asynchronously, after the call that caused them. Without it they go to console.error.
The WebGPU entry point to use instead of
navigator.gpu, e.g. Dawn'screate([])from thewebgpupackage in Node (@rullino/nodedoes this for you).