mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-03 21:30:59 +00:00
Don't send empty opaque image binds
This commit is contained in:
@@ -922,8 +922,16 @@ SparseBinding::SparseBinding(WrappedVulkan *vk, VkImage unwrappedImage,
|
||||
imgBind.bindCount = (uint32_t)imgBinds.size();
|
||||
imgBind.pBinds = imgBinds.data();
|
||||
|
||||
imageOpaqueBindCount = 1;
|
||||
pImageOpaqueBinds = &imgOpaqueBind;
|
||||
if(imgOpaqueBind.bindCount > 0)
|
||||
{
|
||||
imageOpaqueBindCount = 1;
|
||||
pImageOpaqueBinds = &imgOpaqueBind;
|
||||
}
|
||||
else
|
||||
{
|
||||
imageOpaqueBindCount = 0;
|
||||
pImageOpaqueBinds = NULL;
|
||||
}
|
||||
imageBindCount = 1;
|
||||
pImageBinds = &imgBind;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user