To attach memory to a buffer object, call:
// Provided by VK_VERSION_1_0 VkResult vkBindBufferMemory( VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset);
deviceis the logical device that owns the buffer and memory.
bufferis the buffer to be attached to memory.
memoryis a VkDeviceMemory object describing the device memory to attach.
memoryOffsetis the start offset of the region of
memorywhich is to be bound to the buffer. The number of bytes returned in the
memory, starting from
memoryOffsetbytes, will be bound to the specified buffer.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.