mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
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>
This commit is contained in:
@@ -33,6 +33,12 @@ namespace dawn_native { namespace vulkan {
|
||||
DAWN_NATIVE_EXPORT WGPUTextureFormat
|
||||
GetNativeSwapChainPreferredFormat(const DawnSwapChainImplementation* swapChain);
|
||||
|
||||
struct DAWN_NATIVE_EXPORT AdapterDiscoveryOptions : public AdapterDiscoveryOptionsBase {
|
||||
AdapterDiscoveryOptions();
|
||||
|
||||
bool forceSwiftShader = false;
|
||||
};
|
||||
|
||||
struct DAWN_NATIVE_EXPORT ExternalImageDescriptorVk : ExternalImageDescriptor {
|
||||
public:
|
||||
// The following members may be ignored if |ExternalImageDescriptor::isInitialized| is false
|
||||
|
||||
Reference in New Issue
Block a user