Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to wgpu 0.18.0 #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading