Fix check for skipping empty bindings - stageFlags is 0

This commit is contained in:
baldurk
2019-03-08 10:34:50 +00:00
parent 8f163be2dd
commit bb597fcbac
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1431,7 +1431,7 @@ void VulkanReplay::FetchVSOut(uint32_t eventId)
const DescSetLayout::Binding &bind = origLayout.bindings[b];
// skip empty bindings
if(bind.descriptorCount == 0)
if(bind.descriptorCount == 0 || bind.stageFlags == 0)
continue;
// make room in the pool
@@ -1537,7 +1537,7 @@ void VulkanReplay::FetchVSOut(uint32_t eventId)
const DescSetLayout::Binding &bind = origLayout.bindings[b];
// skip empty bindings
if(bind.descriptorCount == 0)
if(bind.descriptorCount == 0 || bind.stageFlags == 0)
continue;
DescriptorSetSlot *slot = setInfo.currentBindings[b];
+1 -1
View File
@@ -446,7 +446,7 @@ void VulkanRenderState::BindDescriptorSet(const DescSetLayout &descLayout, VkCom
VkWriteDescriptorSet push = {};
// skip if this binding isn't used
if(descLayout.bindings[b].descriptorCount == 0)
if(descLayout.bindings[b].descriptorCount == 0 || descLayout.bindings[b].stageFlags == 0)
continue;
push.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET;