MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / createCommandPool

Method createCommandPool

src/Renderer/vkRenderer.cpp:575–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575void 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
587void vkRenderer::createVertexBuffers() {
588 for (int model_Idx = 0; model_Idx < model_vertices.size(); ++model_Idx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected