nadult / libfwk

Simple C++/Vulkan framework
Boost Software License 1.0
8 stars 0 forks source link

Problem with UBO alignment in Lucid #32

Open nadult opened 1 week ago

nadult commented 1 week ago

Following error happens in Lucid when rendering Conference in PBRRenderer.

Vulkan debug: Validation Error: [ VUID-VkWriteDescriptorSet-descriptorType-00327 ] | MessageID = 0xfdcfe89e |   
vkUpdateDescriptorSets(): pDescriptorWrites[0].pBufferInfo[0].offset (176) must be a multiple of device limit   
minUniformBufferOffsetAlignment 64 when descriptor type is VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER. The Vulkan spec 
states: If descriptorType is VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER or VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, 
the offset member of each element of pBufferInfo must be a multiple of 
VkPhysicalDeviceLimits::minUniformBufferOffsetAlignment (https://vulkan.lunarg.com/doc/view/1.3.290.0/windows/1.3-
extensions/vkspec.html#VUID-VkWriteDescriptorSet-descriptorType-00327)