Fix for desc struct

This commit is contained in:
Henrik Rydgård committed 2022-09-08 01:24:04 +02:00
1 parent 347f7c4e5a
commit 68dd329d95
2 files changed
+1 -12

No files matched your search

-11
View File
@@ -27,11 +27,6 @@ using namespace PPSSPP_VK;
// renderPass is an example of the "compatibility class" or RenderPassType type.
bool VKRGraphicsPipeline::Create(VulkanContext *vulkan, VkRenderPass compatibleRenderPass, RenderPassType rpType) {
if (!desc) {
// Already failed to create this one.
return false;
}
// Fill in the last part of the desc since now it's time to block.
VkShaderModule vs = desc->vertexShader->BlockUntilReady();
VkShaderModule fs = desc->fragmentShader->BlockUntilReady();
@@ -103,12 +98,6 @@ bool VKRGraphicsPipeline::Create(VulkanContext *vulkan, VkRenderPass compatibleR
pipeline[rpType]->Post(vkpipeline);
}
// Having the desc stick around can be useful for debugging.
#ifndef _DEBUG
delete desc;
desc = nullptr;
#endif
return success;
}
+1 -1
View File
@@ -166,7 +166,7 @@ struct VKRGraphicsPipeline {
u32 GetVariantsBitmask() const;
VKRGraphicsPipelineDesc *desc = nullptr;
VKRGraphicsPipelineDesc *desc = nullptr; // not owned!
Promise<VkPipeline> *pipeline[RP_TYPE_COUNT]{};
std::string tag;
};