commit | 58c655b6b32f296e6e83b4ad8a05b9de317cbc28 | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Mon Dec 06 20:58:56 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Dec 06 20:58:56 2021 +0000 |
tree | bb79d0844fed9ccb33b3c352776655f5833058f5 | |
parent | 652293f14c603fcae90aae9707a3aa2fac267f2a [diff] |
Complete per-backend AdapterDiscoveryOptions D3D12, OpenGL, and OpenGLES have their own backend-specific AdapterDiscoveryOptions. Add the same for Vulkan and Metal so we can selectively discover just Vulkan or Metal adapters. The Vulkan options include a boolean forceSwiftShader to force Dawn to discover only SwiftShader on the Vulkan backend. Also, refactor D3D12's DiscoverDefaultAdapters to simply call DiscoverAdapters to match the other backends. Bug: chromium:1266550 Change-Id: I137f94b40084b2d0ddeda39b6b7ef20f033d8a4b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/69522 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.