Function Prototype
vkGetDeviceBufferMemoryRequirements
Returns the memory requirements for specified Vulkan object
To determine the memory requirements for a buffer resource without creating an object, call:
void vkGetDeviceBufferMemoryRequirementsKHR(
VkDevice device,
const VkDeviceBufferMemoryRequirements* pInfo,
VkMemoryRequirements2* pMemoryRequirements);
deviceis the logical device intended to own the buffer.pInfois a pointer to a VkDeviceBufferMemoryRequirements structure containing parameters required for the memory requirements query.pMemoryRequirementsis a pointer to a VkMemoryRequirements2 structure in which the memory requirements of the buffer object are returned.
Valid Usage (Implicit)
VUID-vkGetDeviceBufferMemoryRequirements-device-parameter
device must be a valid VkDevice handle
VUID-vkGetDeviceBufferMemoryRequirements-pInfo-parameter
pInfo must be a valid pointer to a valid VkDeviceBufferMemoryRequirements structure
VUID-vkGetDeviceBufferMemoryRequirements-pMemoryRequirements-parameter
pMemoryRequirements must be a valid pointer to a VkMemoryRequirements2 structure