From c68f44283064040ab10800d47f48e0cd946fe284 Mon Sep 17 00:00:00 2001 From: Brian Lee <82965477+shl622@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:15:34 -0500 Subject: [PATCH] fix: edits typos in book to align with tutorial docs (#32) --- src/07-windowing/03-other-initialization.md | 2 +- src/07-windowing/04-event-handling.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/07-windowing/03-other-initialization.md b/src/07-windowing/03-other-initialization.md index 4729a4e..9231fef 100644 --- a/src/07-windowing/03-other-initialization.md +++ b/src/07-windowing/03-other-initialization.md @@ -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( diff --git a/src/07-windowing/04-event-handling.md b/src/07-windowing/04-event-handling.md index 1347fdc..f746f0c 100644 --- a/src/07-windowing/04-event-handling.md +++ b/src/07-windowing/04-event-handling.md @@ -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(),