Copy over original specialization info when fetching mesh output

This commit is contained in:
baldurk
2018-09-25 10:39:37 +01:00
parent 7a8581ebab
commit 5b4978b0bf
+10
View File
@@ -1828,6 +1828,16 @@ void VulkanReplay::InitPostVSBuffers(uint32_t eventId)
compPipeInfo.stage.pName = PatchedMeshOutputEntryPoint;
compPipeInfo.stage.stage = VK_SHADER_STAGE_COMPUTE_BIT;
// copy over specialization info
for(uint32_t s = 0; s < pipeCreateInfo.stageCount; s++)
{
if(pipeCreateInfo.pStages[s].stage == VK_SHADER_STAGE_VERTEX_BIT)
{
compPipeInfo.stage.pSpecializationInfo = pipeCreateInfo.pStages[s].pSpecializationInfo;
break;
}
}
// create new pipeline
VkPipeline pipe;
vkr = m_pDriver->vkCreateComputePipelines(m_Device, VK_NULL_HANDLE, 1, &compPipeInfo, NULL, &pipe);