mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-06-05 22:24:58 -06:00
Vulkan: Reuse pipeline layout for DRC to fix layout object leak
This commit is contained in:
parent
422b5b3a1d
commit
7330cdf3a9
@ -2655,9 +2655,13 @@ VkPipeline VulkanRenderer::backbufferBlit_createGraphicsPipeline(VkDescriptorSet
|
|||||||
pipelineLayoutInfo.pushConstantRangeCount = 1;
|
pipelineLayoutInfo.pushConstantRangeCount = 1;
|
||||||
pipelineLayoutInfo.pPushConstantRanges = &pushConstantRange;
|
pipelineLayoutInfo.pPushConstantRanges = &pushConstantRange;
|
||||||
|
|
||||||
VkResult result = vkCreatePipelineLayout(m_logicalDevice, &pipelineLayoutInfo, nullptr, &m_pipelineLayout);
|
VkResult result;
|
||||||
if (result != VK_SUCCESS)
|
if (m_pipelineLayout == VK_NULL_HANDLE)
|
||||||
throw std::runtime_error(fmt::format("Failed to create pipeline layout: {}", result));
|
{
|
||||||
|
result = vkCreatePipelineLayout(m_logicalDevice, &pipelineLayoutInfo, nullptr, &m_pipelineLayout);
|
||||||
|
if (result != VK_SUCCESS)
|
||||||
|
throw std::runtime_error(fmt::format("Failed to create pipeline layout: {}", result));
|
||||||
|
}
|
||||||
|
|
||||||
VkGraphicsPipelineCreateInfo pipelineInfo = {};
|
VkGraphicsPipelineCreateInfo pipelineInfo = {};
|
||||||
pipelineInfo.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
|
pipelineInfo.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user