From 0a5ebe88fdb1698eb437f675f58b114bcaedd09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABlle=20van=20Essen?= Date: Sun, 3 May 2026 15:56:12 +0200 Subject: [PATCH] Correction in 03_Render_passes.adoc --- .../02_Graphics_pipeline_basics/03_Render_passes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/03_Drawing_a_triangle/02_Graphics_pipeline_basics/03_Render_passes.adoc b/en/03_Drawing_a_triangle/02_Graphics_pipeline_basics/03_Render_passes.adoc index fd9c856b..e2bb05ea 100644 --- a/en/03_Drawing_a_triangle/02_Graphics_pipeline_basics/03_Render_passes.adoc +++ b/en/03_Drawing_a_triangle/02_Graphics_pipeline_basics/03_Render_passes.adoc @@ -14,7 +14,7 @@ To use dynamic rendering, we need to specify the formats of the attachments that [,c++] ---- -vk::PipelineRenderingCreateInfo pipelineRenderingCreateInfo{ .colorAttachmentCount = 1, .pColorAttachmentFormats = &swapChainImageFormat }; +vk::PipelineRenderingCreateInfo pipelineRenderingCreateInfo{ .colorAttachmentCount = 1, .pColorAttachmentFormats = &swapChainSurfaceFormat.format }; ---- This structure specifies that we'll be using one color attachment with the format of our swap chain images. We then include this structure in the `vk::StructureChain`, starting with the `vk::GraphicsPipelineCreateInfo` structure: