summaryrefslogtreecommitdiffstats
path: root/wgpu/src/image.rs
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src/image.rs')
-rw-r--r--wgpu/src/image.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/wgpu/src/image.rs b/wgpu/src/image.rs
index 06c22870..c8e4a4c2 100644
--- a/wgpu/src/image.rs
+++ b/wgpu/src/image.rs
@@ -176,7 +176,11 @@ impl Data {
}
impl Pipeline {
- pub fn new(device: &wgpu::Device, format: wgpu::TextureFormat) -> Self {
+ pub fn new(
+ device: &wgpu::Device,
+ format: wgpu::TextureFormat,
+ backend: wgpu::Backend,
+ ) -> Self {
let nearest_sampler = device.create_sampler(&wgpu::SamplerDescriptor {
address_mode_u: wgpu::AddressMode::ClampToEdge,
address_mode_v: wgpu::AddressMode::ClampToEdge,
@@ -318,7 +322,7 @@ impl Pipeline {
multiview: None,
});
- let texture_atlas = Atlas::new(device);
+ let texture_atlas = Atlas::new(device, backend);
let texture = device.create_bind_group(&wgpu::BindGroupDescriptor {
label: Some("iced_wgpu::image texture atlas bind group"),