commit | 6949f01cff438389019c5bf9b301648ea08dadfb | [log] [tgz] |
---|---|---|
author | Patrick To <patrto@microsoft.com> | Tue Jun 25 04:09:37 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 25 04:09:37 2024 +0000 |
tree | 316c69a1f92b0d13d9b930204cda4c0a4fb4d613 | |
parent | f78ef39f1c1182f5ee74dff0765062d218355bff [diff] |
d3d: Use EnumAdapterByGpuPreference when available Dawn currently uses EnumAdapters1 to enumerate IDXGIAdapters, and then uses various properties of the adapter to infer the power preference. This change uses the IDXGIFactory6::EnumAdapterByGpuPreference to correctly return the most accurate power preference order, in IDXGIFactory6 is available. EnumAdapters1 is used as a fallback. The order of adapters returned by either API should take priority, so the manual sorting is Dawn is bypassed for D3D backends. Bug: 342299155 Change-Id: I5e27fbe6bb301cb393aafbc9468015818407044c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/189641 Commit-Queue: Patrick To <patrto@microsoft.com> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.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.