mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Fix check for skipping empty bindings - stageFlags is 0
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user