commit | 5c36eda233b37810c8ca6ad00ad0300b0f821890 | [log] [tgz] |
---|---|---|
author | Shrek Shao <shrekshao@google.com> | Tue May 20 08:56:21 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 20 08:56:21 2025 -0700 |
tree | 433cb228db771d67a9f7baabf38ce68de26df63d | |
parent | f5e3f0e0fbed040ffc2cf48120d458e70e68d56e [diff] |
[WebGPU backend] Add PhysicalDeviceWGPU Add more implementation for PhysicalDeviceWGPU. Instance::EnumerateAdapters is not exposed in DawnProcTable. So use wgpuInstanceRequestAdapter and pass down the RequestAdapterOptions in BackendWGPU to create one innerAdapter for now. PhysicalDeviceWGPU owns this innerAdapter to make webgpu calls and query capabilities. Also add an extension chained struct for RequestAdapterOptions to indicate whether to select WebGPU backend or not, besieds the WGPUBackendType, to avoid infinite recursion in EnumerateAdapters. This struct can also contain an entrypoint for the proc table in the future. Bug: 413053623 Change-Id: Ia85aa1de579bfaee1dc198f31b1916ac7011bbe1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/241854 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Shrek Shao <shrekshao@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
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.