Skip to content

Commit 0a5ebe8

Browse files
committed
Correction in 03_Render_passes.adoc
1 parent a3f5172 commit 0a5ebe8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

en/03_Drawing_a_triangle/02_Graphics_pipeline_basics/03_Render_passes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To use dynamic rendering, we need to specify the formats of the attachments that
1414

1515
[,c++]
1616
----
17-
vk::PipelineRenderingCreateInfo pipelineRenderingCreateInfo{ .colorAttachmentCount = 1, .pColorAttachmentFormats = &swapChainImageFormat };
17+
vk::PipelineRenderingCreateInfo pipelineRenderingCreateInfo{ .colorAttachmentCount = 1, .pColorAttachmentFormats = &swapChainSurfaceFormat.format };
1818
----
1919

2020
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:

0 commit comments

Comments
 (0)