- Add a Configuration struct to the WebGPUPlatform class. This allows for client-side setting of WebGPU backend configurations. - Add a configuration for forcing the wgpu backend to pick a certain backend. - Add Vulkan as a potential backend for WebGPU + MacOS. - Locally modify Dawn so that it does not assume only switfshader is available for Vulkan on MacOS. - Enable vulkan support for Dawn (third_party/dawn/tnt/CMakeLists.txt) - Plumb option to pick different WebGPU backend through FilamentApp and gltf_viewer.
18 lines
817 B
Diff
18 lines
817 B
Diff
diff --git a/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp b/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp
|
|
index 4411af890..d0d9d3e26 100644
|
|
--- a/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp
|
|
+++ b/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp
|
|
@@ -545,12 +545,6 @@ std::vector<Ref<PhysicalDeviceBase>> Backend::DiscoverPhysicalDevices(
|
|
std::vector<Ref<PhysicalDeviceBase>> physicalDevices;
|
|
InstanceBase* instance = GetInstance();
|
|
for (ICD icd : kICDs) {
|
|
-#if DAWN_PLATFORM_IS(MACOS)
|
|
- // On Mac, we don't expect non-Swiftshader Vulkan to be available.
|
|
- if (icd == ICD::None) {
|
|
- continue;
|
|
- }
|
|
-#endif // DAWN_PLATFORM_IS(MACOS)
|
|
if (options->forceFallbackAdapter && icd != ICD::SwiftShader) {
|
|
continue;
|
|
}
|