Создание раскладки конвейера

This commit is contained in:
2022-02-28 21:10:57 +03:00
parent 7dfc77b5dc
commit 9997f2d1d3
2 changed files with 8 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ void Vulkan::init(GLFWwindow* window)
// завершение работы
void Vulkan::destroy()
{
vkDestroyPipelineLayout(logicalDevice, pipelineLayout, nullptr);
vkDestroyRenderPass(logicalDevice, renderPass, nullptr);
// Уничтожение информации о изображениях списка показа
@@ -663,4 +664,10 @@ void Vulkan::createGraphicPipeline()
pipelineLayoutInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO;
pipelineLayoutInfo.setLayoutCount = 0;
pipelineLayoutInfo.pushConstantRangeCount = 0;
if (vkCreatePipelineLayout(logicalDevice, &pipelineLayoutInfo, nullptr, &pipelineLayout) != VK_SUCCESS)
{
throw std::runtime_error("Unable to create pipeline layout");
}
}