Skip to content

Commit

Permalink
fix: edits typos in book to align with tutorial docs (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
shl622 authored Feb 5, 2024
1 parent b38805e commit c68f442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/07-windowing/03-other-initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ fn main() {
let mut viewport = Viewport {
origin: [0.0, 0.0],
dimensions: window.inner_size().into(),
depth_range: 0.0..1.0,
depth_range: 0.0..=1.0,
};

let pipeline = get_pipeline(
Expand Down
2 changes: 1 addition & 1 deletion src/07-windowing/04-event-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ if window_resized || recreate_swapchain {
if window_resized {
window_resized = false;

viewport.dimensions = new_dimensions.into();
viewport.extent = new_dimensions.into();
let new_pipeline = get_pipeline(
device.clone(),
vs.clone(),
Expand Down

0 comments on commit c68f442

Please sign in to comment.