[WebGPU][Kotlin] Optimize GPUImportedAHB per-frame hot path - Query device.GetAdapterInfo() once when constructing AhbTextureWrapper and cache isVulkan instead of querying it on every beginAccess() and endAccess() call. - Pass null from GPUHardwareBufferWrapper.beginAccess() when fences is null or empty, and allocate IntArray(fences.size) directly otherwise. - Lazily reserve importedFences and move imported SharedFence handles in nativeBeginAccess(). Bug: b/582193550 Test: ./gradlew :webgpu:testDebugUnitTest, buildCMakeRelWithDebInfo Change-Id: I3afb9527a9c5f8cde3d0bf6894dbc6136a22535b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/359935 Reviewed-by: Tarun Saini <sainitarun@google.com> Commit-Queue: Mridul Goyal <mridulgoyal@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.