File tree Expand file tree Collapse file tree
03_Drawing_a_triangle/03_Drawing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ void createCommandPool() {
4343Command pool creation only takes two parameters:
4444
4545``` c++
46+ QueueFamilyIndices queueFamilyIndices = findQueueFamilies(physicalDevice);
47+
4648VkCommandPoolCreateInfo poolInfo = {};
4749poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
4850poolInfo.queueFamilyIndex = queueFamilyIndices.graphicsFamily;
Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ dependencies.
256256
257257The last step of drawing a frame is submitting the result back to the swap chain
258258to 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++
262262VkPresentInfoKHR presentInfo = {};
You can’t perform that action at this time.
0 commit comments