mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix unwrap of inline uniform block descriptor writes
* We don't unwrap any of the data but we must still unwrap the descriptor set.
This commit is contained in:
@@ -100,10 +100,6 @@ VkWriteDescriptorSet WrappedVulkan::UnwrapInfo(const VkWriteDescriptorSet *write
|
||||
{
|
||||
VkWriteDescriptorSet ret = *writeDesc;
|
||||
|
||||
// nothing to unwrap for inline uniform block
|
||||
if(ret.descriptorType == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT)
|
||||
return ret;
|
||||
|
||||
byte *memory = GetTempMemory(sizeof(VkDescriptorBufferInfo) * writeDesc->descriptorCount);
|
||||
|
||||
VkDescriptorBufferInfo *bufInfos = (VkDescriptorBufferInfo *)memory;
|
||||
@@ -112,6 +108,10 @@ VkWriteDescriptorSet WrappedVulkan::UnwrapInfo(const VkWriteDescriptorSet *write
|
||||
|
||||
ret.dstSet = Unwrap(ret.dstSet);
|
||||
|
||||
// nothing to unwrap for inline uniform block
|
||||
if(ret.descriptorType == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT)
|
||||
return ret;
|
||||
|
||||
RDCCOMPILE_ASSERT(sizeof(VkDescriptorBufferInfo) >= sizeof(VkDescriptorImageInfo),
|
||||
"Structure sizes mean not enough space is allocated for write data");
|
||||
RDCCOMPILE_ASSERT(sizeof(VkDescriptorBufferInfo) >= sizeof(VkBufferView),
|
||||
|
||||
Reference in New Issue
Block a user