MCPcopy Create free account
hub / github.com/Overv/VulkanTutorial / createCommandPool

Method createCommandPool

code/25_sampler.cpp:700–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected