From b58ee5f82e946d50f8e348799f86404628cca5d7 Mon Sep 17 00:00:00 2001 From: mosure Date: Sat, 11 Mar 2023 19:58:47 -0600 Subject: [PATCH] feat: upgrade wgpu to 0.15 --- Cargo.toml | 2 +- nokhwa-core/Cargo.toml | 2 +- nokhwa-core/src/traits.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 51278e8..c7fb19b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,7 +68,7 @@ version = "0.2" optional = true [dependencies.wgpu] -version = "0.14" +version = "0.15" optional = true [dependencies.opencv] diff --git a/nokhwa-core/Cargo.toml b/nokhwa-core/Cargo.toml index d3515ee..3e7c3db 100644 --- a/nokhwa-core/Cargo.toml +++ b/nokhwa-core/Cargo.toml @@ -33,7 +33,7 @@ features = ["derive"] optional = true [dependencies.wgpu] -version = "0.14" +version = "0.15" optional = true [dependencies.opencv] diff --git a/nokhwa-core/src/traits.rs b/nokhwa-core/src/traits.rs index 496540d..3b43233 100644 --- a/nokhwa-core/src/traits.rs +++ b/nokhwa-core/src/traits.rs @@ -210,6 +210,7 @@ pub trait CaptureBackendTrait { dimension: TextureDimension::D2, format: TextureFormat::Rgba8UnormSrgb, usage: TextureUsages::TEXTURE_BINDING | TextureUsages::COPY_DST, + view_formats: &[], }); let width_nonzero = match NonZeroU32::try_from(4 * frame.width()) {