diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index 835e00a43a..baa15b0bb1 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -28,20 +28,20 @@ cross = ["wgc/cross"] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgc] package = "wgpu-core" git = "https://github.com/gfx-rs/wgpu" -rev = "11666be0776f80bdbedde02f3c38cd82fa8c1450" +rev = "31f52202c5ba690ff122631070da11fdcbca574c" features = ["raw-window-handle"] [target.'cfg(target_arch = "wasm32")'.dependencies.wgc] package = "wgpu-core" git = "https://github.com/gfx-rs/wgpu" -rev = "11666be0776f80bdbedde02f3c38cd82fa8c1450" +rev = "31f52202c5ba690ff122631070da11fdcbca574c" features = ["raw-window-handle"] optional = true [dependencies.wgt] package = "wgpu-types" git = "https://github.com/gfx-rs/wgpu" -rev = "11666be0776f80bdbedde02f3c38cd82fa8c1450" +rev = "31f52202c5ba690ff122631070da11fdcbca574c" [dependencies] arrayvec = "0.5" diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 205bdd4fc6..f5a9ad3eab 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -179,9 +179,8 @@ trait Context: Debug + Send + Sized + Sync { type SwapChainOutputDetail: Send; type RequestAdapterFuture: Future> + Send; - type RequestDeviceFuture: Future< - Output = Result<(Self::DeviceId, Self::QueueId), RequestDeviceError>, - > + Send; + type RequestDeviceFuture: Future> + + Send; type MapAsyncFuture: Future> + Send; fn init(backends: BackendBit) -> Self;