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-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