Function Prototype
vkGetBufferMemoryRequirements
Returns the memory requirements for specified Vulkan object
To determine the memory requirements for a buffer resource, call:
void vkGetBufferMemoryRequirements(
VkDevice device,
VkBuffer buffer,
VkMemoryRequirements* pMemoryRequirements);
device
is the logical device that owns the buffer.buffer
is the buffer to query.pMemoryRequirements
is a pointer to a VkMemoryRequirements structure in which the memory requirements of the buffer object are returned.
Valid Usage (Implicit)
VUID-vkGetBufferMemoryRequirements-device-parameter
device
must be a valid VkDevice handle
VUID-vkGetBufferMemoryRequirements-buffer-parameter
buffer
must be a valid VkBuffer handle
VUID-vkGetBufferMemoryRequirements-pMemoryRequirements-parameter
pMemoryRequirements
must be a valid pointer to a VkMemoryRequirements structure
VUID-vkGetBufferMemoryRequirements-buffer-parent
buffer
must have been created, allocated, or retrieved from device