Skip to content

Commit 798a498

Browse files
authored
Merge pull request Yatekii#104 from Calcoph/master
update to wgpu 0.18
2 parents 89394e0 + 53abff5 commit 798a498

File tree

6 files changed

+20
-7
lines changed

6 files changed

+20
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Per Keep a Changelog there are 6 main categories of changes:
3737
## Unreleased
3838

3939
- Internal: Fixed Scissor-Rect to not span across Framebuffersize, by limiting to framebuffer width. @PixelboysTM
40+
- Bump wgpu version to 0.18. @calcoph
4041

4142
## v0.24.0
4243

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ bytemuck = "1"
4646
imgui = "0.11"
4747
log = "0.4"
4848
smallvec = "1"
49-
wgpu = "0.17"
49+
wgpu = "0.18"
5050

5151
[dev-dependencies]
5252
bytemuck = { version = "1.13", features = ["derive"] }

examples/cube.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,12 @@ impl Example {
307307
b: 0.3,
308308
a: 1.0,
309309
}),
310-
store: true,
310+
store: wgpu::StoreOp::Store,
311311
},
312312
})],
313313
depth_stencil_attachment: None,
314+
timestamp_writes: None,
315+
occlusion_query_set: None,
314316
});
315317
rpass.push_debug_group("Prepare data for draw.");
316318
rpass.set_pipeline(&self.pipeline);
@@ -566,10 +568,12 @@ fn main() {
566568
ops: wgpu::Operations {
567569
load: wgpu::LoadOp::Load, // Do not clear
568570
// load: wgpu::LoadOp::Clear(clear_color),
569-
store: true,
571+
store: wgpu::StoreOp::Store,
570572
},
571573
})],
572574
depth_stencil_attachment: None,
575+
timestamp_writes: None,
576+
occlusion_query_set: None,
573577
});
574578

575579
renderer

examples/custom-texture.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,12 @@ fn main() {
229229
resolve_target: None,
230230
ops: wgpu::Operations {
231231
load: wgpu::LoadOp::Clear(clear_color),
232-
store: true,
232+
store: wgpu::StoreOp::Store,
233233
},
234234
})],
235235
depth_stencil_attachment: None,
236+
timestamp_writes: None,
237+
occlusion_query_set: None,
236238
});
237239

238240
renderer

examples/hello-world.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,12 @@ fn main() {
214214
resolve_target: None,
215215
ops: wgpu::Operations {
216216
load: wgpu::LoadOp::Clear(clear_color),
217-
store: true,
217+
store: wgpu::StoreOp::Store,
218218
},
219219
})],
220220
depth_stencil_attachment: None,
221+
timestamp_writes: None,
222+
occlusion_query_set: None,
221223
});
222224

223225
renderer

src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,12 @@ impl Renderer {
730730
let scissors = (
731731
clip_rect[0].max(0.0).floor() as u32,
732732
clip_rect[1].max(0.0).floor() as u32,
733-
(clip_rect[2].min(fb_size[0]) - clip_rect[0].max(0.0)).abs().ceil() as u32,
734-
(clip_rect[3].min(fb_size[1]) - clip_rect[1].max(0.0)).abs().ceil() as u32,
733+
(clip_rect[2].min(fb_size[0]) - clip_rect[0].max(0.0))
734+
.abs()
735+
.ceil() as u32,
736+
(clip_rect[3].min(fb_size[1]) - clip_rect[1].max(0.0))
737+
.abs()
738+
.ceil() as u32,
735739
);
736740

737741
// XXX: Work-around for wgpu issue [1] by only issuing draw

0 commit comments

Comments
 (0)