From 995af0fd3a1610d89deeacb244d8365233376e4b Mon Sep 17 00:00:00 2001 From: Tom Rindell Date: Tue, 13 Jan 2026 00:59:56 +0200 Subject: [PATCH 1/2] Typo fix Changed VkFormat to vk::Format in findDepthFormat --- en/07_Depth_buffering.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/07_Depth_buffering.adoc b/en/07_Depth_buffering.adoc index 10863848..5435baf9 100644 --- a/en/07_Depth_buffering.adoc +++ b/en/07_Depth_buffering.adoc @@ -235,7 +235,7 @@ We'll use this function now to create a `findDepthFormat` helper function to sel [,c++] ---- -VkFormat findDepthFormat() { +vk::Format findDepthFormat() { return findSupportedFormat( {vk::Format::eD32Sfloat, vk::Format::eD32SfloatS8Uint, vk::Format::eD24UnormS8Uint}, vk::ImageTiling::eOptimal, From 9e77a9de342924f16c7ac0d394a33d6a7d595669 Mon Sep 17 00:00:00 2001 From: Tom Rindell Date: Tue, 13 Jan 2026 21:31:29 +0200 Subject: [PATCH 2/2] Typo fix k::ImageLayout::eUndefined to vk::ImageLayout::eUndefined --- en/07_Depth_buffering.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/07_Depth_buffering.adoc b/en/07_Depth_buffering.adoc index 5435baf9..9fd44b60 100644 --- a/en/07_Depth_buffering.adoc +++ b/en/07_Depth_buffering.adoc @@ -385,7 +385,7 @@ transition_image_layout( vk::ImageAspectFlagBits::eDepth); ---- -Unlike as with the color image we don't need multiple barriers here. As we don't care for the contents of the depth attachment once the frame is finished, we can always translate from `k::ImageLayout::eUndefined`. What's special about this layout, is the fact that you can always use it as a source without having to care what happens before. +Unlike as with the color image we don't need multiple barriers here. As we don't care for the contents of the depth attachment once the frame is finished, we can always translate from `vk::ImageLayout::eUndefined`. What's special about this layout, is the fact that you can always use it as a source without having to care what happens before. Also make sure you adjust all other calls to the `transition_image_layout` function call to pass the correct image aspect: