Skip to content

Commit

Permalink
Updated to wgpu 0.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dewey committed Feb 9, 2024
1 parent 89394e0 commit fbe5018
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ bytemuck = "1"
imgui = "0.11"
log = "0.4"
smallvec = "1"
wgpu = "0.17"
wgpu = "0.18.0"

[dev-dependencies]
bytemuck = { version = "1.13", features = ["derive"] }
Expand Down
8 changes: 6 additions & 2 deletions examples/cube.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,12 @@ impl Example {
b: 0.3,
a: 1.0,
}),
store: true,
store: wgpu::StoreOp::Store,
},
})],
depth_stencil_attachment: None,
timestamp_writes: None,
occlusion_query_set: None
});
rpass.push_debug_group("Prepare data for draw.");
rpass.set_pipeline(&self.pipeline);
Expand Down Expand Up @@ -566,10 +568,12 @@ fn main() {
ops: wgpu::Operations {
load: wgpu::LoadOp::Load, // Do not clear
// load: wgpu::LoadOp::Clear(clear_color),
store: true,
store: wgpu::StoreOp::Store,
},
})],
depth_stencil_attachment: None,
timestamp_writes: None,
occlusion_query_set: None
});

renderer
Expand Down
4 changes: 3 additions & 1 deletion examples/custom-texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,12 @@ fn main() {
resolve_target: None,
ops: wgpu::Operations {
load: wgpu::LoadOp::Clear(clear_color),
store: true,
store: wgpu::StoreOp::Store,
},
})],
depth_stencil_attachment: None,
timestamp_writes: None,
occlusion_query_set: None
});

renderer
Expand Down
5 changes: 4 additions & 1 deletion examples/hello-world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ fn main() {
.position([400.0, 200.0], Condition::FirstUseEver)
.build(|| {
ui.text(format!("Frametime: {delta_s:?}"));
ui.text(format!("FPS: {}", 1.0 / delta_s.as_secs_f32()));
});

ui.show_demo_window(&mut demo_open);
Expand All @@ -214,10 +215,12 @@ fn main() {
resolve_target: None,
ops: wgpu::Operations {
load: wgpu::LoadOp::Clear(clear_color),
store: true,
store: wgpu::StoreOp::Store,
},
})],
depth_stencil_attachment: None,
timestamp_writes: None,
occlusion_query_set: None
});

renderer
Expand Down

0 comments on commit fbe5018

Please # to comment.