bindings/webgpu_interop library
Emscripten WebGPU helper — global object access.
This file intentionally has NO @JS('Module') library annotation so that
@JS('WebGPU') resolves to globalThis.WebGPU (the Emscripten Dawn
WebGPU helper), NOT to Module.WebGPU (undefined).
Functions
-
getWebGpuJsObject(
int handle) → JSObject? - Retrieve the JS WebGPU object (GPUDevice, GPUBuffer, GPUTexture…) from its Emscripten integer handle.