Is there any way to receive the alignment, in bytes, of the offset within the allocation required for a buffer with usage VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT
on a given VkDevice
?
If I already got such a VkBuffer
, then this value can be retrieved from the size
field of the VkMemoryRequirements
structure received from a call to vkGetBufferMemoryRequirements
.
But if I want to obtain this value with a given buffer, do I need to create a "dummy" buffer with size 1
(specifying size 0
yields a validation error, when the validation layer is enabled)?