Don't continue with vulkan postvs fetch if PSO fails to compile

* MoltenVK sometimes has problems with shader translation so we want to handle
  this gracefully if possible.
This commit is contained in:
baldurk
2019-06-26 11:29:18 +01:00
parent 88a5b4e0cf
commit 2b7bcccbc6
+6 -1
View File
@@ -2263,7 +2263,12 @@ void VulkanReplay::FetchVSOut(uint32_t eventId)
// create new pipeline
VkPipeline pipe;
vkr = m_pDriver->vkCreateComputePipelines(m_Device, VK_NULL_HANDLE, 1, &compPipeInfo, NULL, &pipe);
RDCASSERTEQUAL(vkr, VK_SUCCESS);
if(vkr != VK_SUCCESS)
{
RDCERR("Failed to create patched compute pipeline: %s", ToStr(vkr).c_str());
return;
}
// make copy of state to draw from
VulkanRenderState modifiedstate = state;