chore(deps): update wgpu to v30

* Update Rust crate wgpu to v30

* Fix Linux wgpu texture import build

* Fix wgpu 30 API usage in osr example

* Fix macOS wgpu texture import API usage

* Fix Windows wgpu 30 create_texture_from_hal API usage in d3d11.rs

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
renovate[bot]andcopilot-swe-agent[bot] authored and GitHub committed 2026-07-21 08:34:55 -07:00
1 parent a001794ac9
commit 642aaaaea6
5 files changed
+13 -4

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ syn = { version = "3", features = ["full"] }
thiserror = "2"
toml_edit = "0.25"
tracing = "0.1"
wgpu = "29"
wgpu = "30"
winres = "0.1"
x11-dl = "2"
+2
View File
@@ -130,6 +130,7 @@ impl D3D11Importer {
usage: wgpu::TextureUsages::TEXTURE_BINDING,
view_formats: &[],
},
wgpu::TextureUses::RESOURCE,
)
};
@@ -192,6 +193,7 @@ impl D3D11Importer {
usage: wgpu::TextureUsages::TEXTURE_BINDING,
view_formats: &[],
},
wgpu::TextureUses::RESOURCE,
)
};
+1
View File
@@ -138,6 +138,7 @@ impl DmaBufImporter {
usage: wgpu::TextureUsages::TEXTURE_BINDING,
view_formats: &[],
},
TextureUses::RESOURCE,
)
};
+6 -1
View File
@@ -159,6 +159,7 @@ impl IOSurfaceImporter {
height: texture_desc.size.height,
depth: texture_desc.array_layer_count(),
},
None,
);
Ok::<_, TextureImportError>(hal_tex)
@@ -167,7 +168,11 @@ impl IOSurfaceImporter {
};
Ok(unsafe {
device.create_texture_from_hal::<wgpu::wgc::api::Metal>(hal_tex, &texture_desc)
device.create_texture_from_hal::<wgpu::wgc::api::Metal>(
hal_tex,
&texture_desc,
wgpu::TextureUses::RESOURCE,
)
})
}
+3 -2
View File
@@ -99,7 +99,7 @@ impl State {
vertex: wgpu::VertexState {
module: &shader,
entry_point: Some("vs_main"),
buffers: &[Vertex::desc()],
buffers: &[Some(Vertex::desc())],
compilation_options: Default::default(),
},
fragment: Some(wgpu::FragmentState {
@@ -159,6 +159,7 @@ impl State {
let surface_config = wgpu::SurfaceConfiguration {
usage: wgpu::TextureUsages::RENDER_ATTACHMENT,
format: self.surface_format,
color_space: wgpu::SurfaceColorSpace::Auto,
view_formats: vec![self.surface_format],
alpha_mode: wgpu::CompositeAlphaMode::Auto,
width: self.size.width,
@@ -226,7 +227,7 @@ impl State {
});
self.window.pre_present_notify();
surface_texture.present();
self.queue.present(surface_texture);
}
}