mgpuGetWGPUDeviceHandle function

int mgpuGetWGPUDeviceHandle()

Returns the Emscripten integer handle for the WGPUDevice. Pass to getWebGpuJsObject from webgpu_interop.dart to get the JS GPUDevice.

Implementation

int mgpuGetWGPUDeviceHandle() =>
    _mgpuGetWGPUDeviceHandleJs().toDartDouble.toInt();