mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-12 06:59:21 +00:00
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>