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: