| 698 | } |
| 699 | |
| 700 | void createCommandPool() { |
| 701 | QueueFamilyIndices queueFamilyIndices = findQueueFamilies(physicalDevice); |
| 702 | |
| 703 | VkCommandPoolCreateInfo poolInfo{}; |
| 704 | poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO; |
| 705 | poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; |
| 706 | poolInfo.queueFamilyIndex = queueFamilyIndices.graphicsFamily.value(); |
| 707 | |
| 708 | if (vkCreateCommandPool(device, &poolInfo, nullptr, &commandPool) != VK_SUCCESS) { |
| 709 | throw std::runtime_error("failed to create graphics command pool!"); |
| 710 | } |
| 711 | } |
| 712 | |
| 713 | void createTextureImage() { |
| 714 | int texWidth, texHeight, texChannels; |
nothing calls this directly
no outgoing calls
no test coverage detected