Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ec77b0

Browse files
committed
Fix typo in depth buffering chapter
1 parent 1fd119e commit 2ec77b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

07_Depth_buffering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ range of `0.0` to `1.0` using the `GLM_FORCE_DEPTH_ZERO_TO_ONE` definition.
125125

126126
A depth attachment is based on an image, just like the color attachment. The
127127
difference is that the swap chain will not automatically create depth images for
128-
us. We need a depth image for every frame that can be in flight simultaneously. In practice it's easiest to juse have one per swap chain image similar to the uniform buffers. The depth images will again require the trifecta of resources: image, memory and image view.
128+
us. We need a depth image for every frame that can be in flight simultaneously. In practice it's easiest to just have one per swap chain image similar to the uniform buffers. The depth images will again require the trifecta of resources: image, memory and image view.
129129

130130
```c++
131131
std::vector<VkImage> depthImages;
@@ -553,7 +553,7 @@ function to recreate the depth resources in that case:
553553
```c++
554554
void recreateSwapChain() {
555555
vkDeviceWaitIdle(device);
556-
556+
557557
cleanupSwapChain();
558558

559559
createSwapChain();

0 commit comments

Comments
 (0)