Skip to content

Commit

Permalink
Merge pull request #105 from Calcoph/master
Browse files Browse the repository at this point in the history
update to wgpu 0.18
  • Loading branch information
hecrj committed Oct 27, 2023
2 parents 03f514f + 967d062 commit 17de687
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/wgpu_glyph"
readme = "README.md"

[dependencies]
wgpu = "0.17"
wgpu = "0.18"
glyph_brush = "0.7"
log = "0.4"

Expand Down
4 changes: 3 additions & 1 deletion examples/clipping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@ fn main() -> Result<(), Box<dyn Error>> {
a: 1.0,
},
),
store: true,
store: wgpu::StoreOp::Store,
},
},
)],
depth_stencil_attachment: None,
timestamp_writes: None,
occlusion_query_set: None,
},
);
}
Expand Down
8 changes: 5 additions & 3 deletions examples/depth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,13 @@ fn main() -> Result<(), Box<dyn Error>> {
a: 1.0,
},
),
store: true,
store: wgpu::StoreOp::Store,
},
},
)],
depth_stencil_attachment: None,
timestamp_writes: None,
occlusion_query_set: None,
},
);
}
Expand Down Expand Up @@ -162,11 +164,11 @@ fn main() -> Result<(), Box<dyn Error>> {
view: &depth_view,
depth_ops: Some(wgpu::Operations {
load: wgpu::LoadOp::Clear(0.0),
store: true,
store: wgpu::StoreOp::Store,
}),
stencil_ops: Some(wgpu::Operations {
load: wgpu::LoadOp::Clear(0),
store: true,
store: wgpu::StoreOp::Store,
}),
},
size.width,
Expand Down
4 changes: 3 additions & 1 deletion examples/hello.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@ fn main() -> Result<(), Box<dyn Error>> {
a: 1.0,
},
),
store: true,
store: wgpu::StoreOp::Store,
},
},
)],
depth_stencil_attachment: None,
timestamp_writes: None,
occlusion_query_set: None,
},
);
}
Expand Down
4 changes: 3 additions & 1 deletion src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,12 @@ fn draw<D>(
resolve_target: None,
ops: wgpu::Operations {
load: wgpu::LoadOp::Load,
store: true,
store: wgpu::StoreOp::Store,
},
})],
depth_stencil_attachment,
timestamp_writes: None,
occlusion_query_set: None,
});

render_pass.set_pipeline(&pipeline.raw);
Expand Down

0 comments on commit 17de687

Please sign in to comment.