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

Skip to content

Commit 1d83d5a

Browse files
committed
Clarify code in a few sections related to drawing
1 parent 95b9f54 commit 1d83d5a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

03_Drawing_a_triangle/03_Drawing/01_Command_buffers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ void createCommandPool() {
4343
Command pool creation only takes two parameters:
4444

4545
```c++
46+
QueueFamilyIndices queueFamilyIndices = findQueueFamilies(physicalDevice);
47+
4648
VkCommandPoolCreateInfo poolInfo = {};
4749
poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
4850
poolInfo.queueFamilyIndex = queueFamilyIndices.graphicsFamily;

03_Drawing_a_triangle/03_Drawing/02_Rendering_and_presentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ dependencies.
256256

257257
The last step of drawing a frame is submitting the result back to the swap chain
258258
to have it eventually show up on the screen. Presentation is configured through
259-
a `VkPresentInfoKHR` structure.
259+
a `VkPresentInfoKHR` structure at the end of the `drawFrame` function.
260260

261261
```c++
262262
VkPresentInfoKHR presentInfo = {};

0 commit comments

Comments
 (0)