From 553fc52f67670e3c55de72a277bbc3bca42ec332 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Thu, 5 Aug 2021 09:01:43 -0500 Subject: [PATCH] Implement adapter_is_surface_supported() for Web (#1767) --- wgpu/src/backend/web.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wgpu/src/backend/web.rs b/wgpu/src/backend/web.rs index 62e829d317..0505b19d34 100644 --- a/wgpu/src/backend/web.rs +++ b/wgpu/src/backend/web.rs @@ -955,6 +955,14 @@ impl crate::Context for Context { Sendable(context.into()) } + fn adapter_is_surface_supported( + &self, + _adapter: &Self::AdapterId, + _surface: &Self::SurfaceId, + ) -> bool { + true + } + fn instance_request_adapter( &self, options: &crate::RequestAdapterOptions<'_>,