Ignore dstArrayElement as descriptor index for inline UBOs. Closes #2401

* dstArrayElement is already accounted for as a byte offset, but shouldn't be
  used to index the descriptor as there's only ever one descriptor.
This commit is contained in:
baldurk
2021-11-02 11:00:57 +00:00
parent 20b1257411
commit 33db9be271
@@ -1305,7 +1305,7 @@ void WrappedVulkan::vkUpdateDescriptorSets(VkDevice device, uint32_t writeCount,
VkWriteDescriptorSetInlineUniformBlockEXT *inlineWrite =
(VkWriteDescriptorSetInlineUniformBlockEXT *)FindNextStruct(
&descWrite, VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK_EXT);
memcpy(inlineData.data() + bind.inlineOffset + descWrite.dstArrayElement,
memcpy(inlineData.data() + (*binding)->inlineOffset + descWrite.dstArrayElement,
inlineWrite->pData, inlineWrite->dataSize);
// break now because the descriptorCount is not the number of descriptors