mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Account for immutable samplers with push descriptors
This commit is contained in:
@@ -893,6 +893,9 @@ void VulkanRenderState::BindDescriptorSet(WrappedVulkan *vk, const DescSetLayout
|
||||
dst[a].imageLayout = convert(slots[a].imageLayout);
|
||||
dst[a].sampler = Unwrap(rm->GetCurrentHandle<VkSampler>(slots[a].sampler));
|
||||
dst[a].imageView = Unwrap(rm->GetCurrentHandle<VkImageView>(slots[a].resource));
|
||||
|
||||
if(layoutBind.immutableSampler && push.descriptorType != VK_DESCRIPTOR_TYPE_SAMPLER)
|
||||
dst[a].sampler = Unwrap(rm->GetCurrentHandle<VkSampler>(layoutBind.immutableSampler[a]));
|
||||
}
|
||||
|
||||
push.pImageInfo = dst;
|
||||
|
||||
Reference in New Issue
Block a user