Kotlin: fix intermittent crashing in webGPU.close() I fixed a bug where the isClosing flag wasn't set (this can stop crashing in the event polling loop). Currently if device.close() (which calls wgpuDeviceRelease) is called this is kills the thread. I don't know why. On the other hand, if I don't call wgpuDeviceRelease I am able to bring down the surface, the instance and the adapter, which is an improvement. Bug: 428866400 Test: Run the demo at https: //dawn-android-samples.googlesource.com/dawn-demo/+/refs/heads/main Change-Id: I58cbbd5fbb090699c618cea49eb2082cdfca24a9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/257155 Commit-Queue: Jim Blackler <jimblackler@google.com> Reviewed-by: Alfie Baxter <alfiebaxter@google.com> Reviewed-by: Loko Kung <lokokung@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.