Skip to content

Commit

Permalink
Update wgpu to 22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jul 19, 2024
1 parent ee7068c commit 540ca81
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ cosmic-text = "0.12"
dark-light = "1.0"
futures = "0.3"
glam = "0.25"
glyphon = { git = "https://github.com/hecrj/glyphon.git", rev = "ce412b3954118d2a4ae20de2d6959247d6f7ed76" }
glyphon = { git = "https://github.com/hecrj/glyphon.git", rev = "0d7ba1bba4dd71eb88d2cface5ce649db2413cb7" }
guillotiere = "0.6"
half = "2.2"
image = "0.24"
Expand Down Expand Up @@ -173,7 +173,7 @@ wasm-bindgen-futures = "0.4"
wasm-timer = "0.2"
web-sys = "0.3.67"
web-time = "1.1"
wgpu = "0.20.1"
wgpu = "22.0"
winapi = "0.3"
window_clipboard = "0.4.1"
winit = { git = "https://github.com/iced-rs/winit.git", rev = "254d6b3420ce4e674f516f7a2bd440665e05484d" }
Expand Down
1 change: 1 addition & 0 deletions benches/wgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ fn benchmark<'a>(
label: None,
required_features: wgpu::Features::empty(),
required_limits: wgpu::Limits::default(),
memory_hints: wgpu::MemoryHints::MemoryUsage,
},
None,
))
Expand Down
2 changes: 2 additions & 0 deletions examples/custom_shader/src/scene/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ impl Pipeline {
wgpu::PipelineCompilationOptions::default(),
}),
multiview: None,
cache: None,
});

let depth_pipeline = DepthPipeline::new(
Expand Down Expand Up @@ -518,6 +519,7 @@ impl DepthPipeline {
wgpu::PipelineCompilationOptions::default(),
}),
multiview: None,
cache: None,
});

Self {
Expand Down
2 changes: 2 additions & 0 deletions examples/integration/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ pub fn main() -> Result<(), winit::error::EventLoopError> {
required_features: adapter_features
& wgpu::Features::default(),
required_limits: wgpu::Limits::default(),
memory_hints:
wgpu::MemoryHints::MemoryUsage,
},
None,
)
Expand Down
1 change: 1 addition & 0 deletions examples/integration/src/scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@ fn build_pipeline(
alpha_to_coverage_enabled: false,
},
multiview: None,
cache: None,
})
}
1 change: 1 addition & 0 deletions wgpu/src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ pub fn convert(
depth_stencil: None,
multisample: wgpu::MultisampleState::default(),
multiview: None,
cache: None,
});

let texture = device.create_texture(&wgpu::TextureDescriptor {
Expand Down
1 change: 1 addition & 0 deletions wgpu/src/image/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ impl Pipeline {
alpha_to_coverage_enabled: false,
},
multiview: None,
cache: None,
});

Pipeline {
Expand Down
1 change: 1 addition & 0 deletions wgpu/src/quad/gradient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ impl Pipeline {
alpha_to_coverage_enabled: false,
},
multiview: None,
cache: None,
},
);

Expand Down
1 change: 1 addition & 0 deletions wgpu/src/quad/solid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ impl Pipeline {
alpha_to_coverage_enabled: false,
},
multiview: None,
cache: None,
});

Self { pipeline }
Expand Down
2 changes: 2 additions & 0 deletions wgpu/src/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ mod solid {
depth_stencil: None,
multisample: triangle::multisample_state(antialiasing),
multiview: None,
cache: None,
},
);

Expand Down Expand Up @@ -955,6 +956,7 @@ mod gradient {
depth_stencil: None,
multisample: triangle::multisample_state(antialiasing),
multiview: None,
cache: None,
},
);

Expand Down
1 change: 1 addition & 0 deletions wgpu/src/triangle/msaa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ impl Blit {
alpha_to_coverage_enabled: false,
},
multiview: None,
cache: None,
});

Blit {
Expand Down
1 change: 1 addition & 0 deletions wgpu/src/window/compositor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ impl Compositor {
),
required_features: wgpu::Features::empty(),
required_limits: required_limits.clone(),
memory_hints: wgpu::MemoryHints::MemoryUsage,
},
None,
)
Expand Down

0 comments on commit 540ca81

Please sign in to comment.