We can already set the buffer offset for vertex buffer bindings using OFFSET argument in VERTEX_DATA command.
Same should be possible for uniform buffers. This could be implemented by adding DESCRIPTOR_OFFSET and DESCRIPTOR_RANGE argument to the BIND {BUFFER | BUFFER_ARRAY} command. Note that the OFFSET keyword is already used to set dynamic offset(s) for dynamic buffers, so we need to use DESCRIPTOR_ prefix.
These new arguments are used to set the members offset and range of Vulkan struct VkDescriptorBufferInfo.
The current implementation doesn't allow binding the same buffer into different array elements within one BIND BUFFER_ARRAY command. This should be allowed too.
We can already set the buffer offset for vertex buffer bindings using
OFFSET
argument inVERTEX_DATA
command.Same should be possible for uniform buffers. This could be implemented by adding
DESCRIPTOR_OFFSET
andDESCRIPTOR_RANGE
argument to theBIND {BUFFER | BUFFER_ARRAY}
command. Note that theOFFSET
keyword is already used to set dynamic offset(s) for dynamic buffers, so we need to useDESCRIPTOR_
prefix.These new arguments are used to set the members
offset
andrange
of Vulkan structVkDescriptorBufferInfo
.The current implementation doesn't allow binding the same buffer into different array elements within one
BIND BUFFER_ARRAY
command. This should be allowed too.