Skip to content

Commit c56d64d

Browse files
Update to wgpu 26 (#100)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
1 parent af2b731 commit c56d64d

4 files changed

Lines changed: 68 additions & 70 deletions

File tree

Cargo.lock

Lines changed: 63 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ puffin = ["dep:puffin", "profiling/profile-with-puffin"]
2121
[dependencies]
2222
parking_lot = "0.12" # Used for Mutex & RwLock. Note that wgpu already depends on parking_lot as well.
2323
thiserror = "2"
24-
wgpu = { version = "25.0.0", default-features = false }
24+
wgpu = { version = "26.0.0", default-features = false }
2525

2626
tracy-client = { version = "0.18", optional = true }
2727
puffin = { version = "0.19.1", optional = true }
@@ -31,5 +31,5 @@ futures-lite = "2"
3131
profiling = "1"
3232
puffin_http = "0.16.1"
3333
tracy-client = "0.18"
34-
wgpu = { version = "25.0.0", default-features = true }
34+
wgpu = { version = "26.0.0", default-features = true }
3535
winit = "0.30"

examples/demo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ fn draw(
323323
label: None,
324324
color_attachments: &[Some(wgpu::RenderPassColorAttachment {
325325
view,
326+
depth_slice: None,
326327
resolve_target: None,
327328
ops: wgpu::Operations {
328329
load: wgpu::LoadOp::Clear(wgpu::Color::BLACK),
@@ -358,6 +359,7 @@ fn draw(
358359
label: None,
359360
color_attachments: &[Some(wgpu::RenderPassColorAttachment {
360361
view,
362+
depth_slice: None,
361363
resolve_target: None,
362364
ops: wgpu::Operations {
363365
load: wgpu::LoadOp::Load,

src/tracy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub fn create_tracy_gpu_client(
3535
let mut copy_encoder = device.create_command_encoder(&wgpu::CommandEncoderDescriptor {
3636
label: Some("wgpu-profiler gpu -> cpu copy timestamp"),
3737
});
38-
copy_encoder.copy_buffer_to_buffer(&resolve_buffer, 0, &map_buffer, 0, wgpu::QUERY_SIZE as _);
38+
copy_encoder.copy_buffer_to_buffer(&resolve_buffer, 0, &map_buffer, 0, wgpu::QUERY_SIZE as u64);
3939
queue.submit([timestamp_encoder.finish(), copy_encoder.finish()]);
4040

4141
map_buffer.slice(..).map_async(wgpu::MapMode::Read, |_| ());

0 commit comments

Comments
 (0)