Skip to content

Commit

Permalink
Upgrade to wgpu 0.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 30, 2023
1 parent fc5f99c commit 9f1a29d
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 27 deletions.
113 changes: 90 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/fj-viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ default-features = false
features = ["png", "jpeg"]

[dependencies.wgpu]
version = "0.17.1"
version = "0.18.0"
features = ["webgl"]

# We don't depend on `getrandom` directly, but we need this to enable the `js`
Expand Down
2 changes: 1 addition & 1 deletion crates/fj-viewer/src/graphics/navigation_cube.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl NavigationCubeRenderer {
resolve_target: None,
ops: wgpu::Operations {
load: wgpu::LoadOp::Load,
store: true,
store: wgpu::StoreOp::Store,
},
})],
..Default::default()
Expand Down
4 changes: 2 additions & 2 deletions crates/fj-viewer/src/graphics/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ impl Renderer {
ops: wgpu::Operations {
load: wgpu::LoadOp::Clear(wgpu::Color::WHITE),
// Not necessary, due to MSAA being enabled.
store: false,
store: wgpu::StoreOp::Discard,
},
},
)],
Expand All @@ -289,7 +289,7 @@ impl Renderer {
view: &self.depth_view,
depth_ops: Some(wgpu::Operations {
load: wgpu::LoadOp::Clear(1.0),
store: true,
store: wgpu::StoreOp::Store,
}),
stencil_ops: None,
},
Expand Down

0 comments on commit 9f1a29d

Please sign in to comment.