| 573 | } |
| 574 | |
| 575 | void vkRenderer::createCommandPool() { |
| 576 | QueueFamilyIndices queueFamilyIndices = findQueueFamilies(physicalDevice); |
| 577 | |
| 578 | VkCommandPoolCreateInfo poolInfo = {}; |
| 579 | poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO; |
| 580 | poolInfo.queueFamilyIndex = queueFamilyIndices.graphicsFamily; |
| 581 | |
| 582 | if (vkCreateCommandPool(device, &poolInfo, nullptr, &commandPool) != VK_SUCCESS) { |
| 583 | throw std::runtime_error("failed to create graphics command pool!"); |
| 584 | } |
| 585 | } |
| 586 | |
| 587 | void vkRenderer::createVertexBuffers() { |
| 588 | for (int model_Idx = 0; model_Idx < model_vertices.size(); ++model_Idx) { |
nothing calls this directly
no outgoing calls
no test coverage detected