vkGetBufferMemoryRequirements(3)

# vkGetBufferMemoryRequirements(3) Manual Page

## Name

vkGetBufferMemoryRequirements - Returns the memory requirements for specified Vulkan object

## C Specification

To determine the memory requirements for a buffer resource, call:

    void vkGetBufferMemoryRequirements(
        VkDevice                                    device,
        VkBuffer                                    buffer,
        VkMemoryRequirements*                       pMemoryRequirements);

## Parameters

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

## Description

Valid Usage (Implicit)

- `device` must be a valid VkDevice handle

- `buffer` must be a valid VkBuffer handle

- `pMemoryRequirements` must be a valid pointer to a VkMemoryRequirements structure

- `buffer` must have been created, allocated, or retrieved from `device`

## See Also

VkBuffer, VkDevice, VkMemoryRequirements

## Document Notes

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.

## Copyright

Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.