Skip to content

Commit 1a36875

Browse files
committed
Do not include immutable sampler-only descriptors in initial state
1 parent 45db4fe commit 1a36875

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

renderdoc/driver/vulkan/vk_info.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,10 @@ bool CreateDescriptorWritesForSlotData(WrappedVulkan *vk, rdcarray<VkWriteDescri
685685
if(descType == VK_DESCRIPTOR_TYPE_MAX_ENUM)
686686
continue;
687687

688+
// skip immutable sampler-only descriptors
689+
if(immutableSamplers && descType == VK_DESCRIPTOR_TYPE_SAMPLER)
690+
continue;
691+
688692
// the current write is either empty, in which case we can just set it to what we
689693
// want,
690694
// or it's the same type in which case we're appending to its array

0 commit comments

Comments
 (0)