Vulkan-Docs/doc/specs/vulkan/man/vkGetBufferMemoryRequiremen...

52 lines
1.8 KiB
Plaintext

vkGetBufferMemoryRequirements(3)
================================
Name
----
vkGetBufferMemoryRequirements - Returns the memory requirements for specified Vulkan object.
C Specification
---------------
include::../protos/vkGetBufferMemoryRequirements.txt[]
Parameters
----------
pname:device::
Logical device which owns pname:buffer.
pname:buffer::
Object to query.
pname:pMemoryRequirements::
Pointer to a data structure to receive the result of the query.
Description
-----------
fname:vkGetBufferMemoryRequirements retrieves memory requirements for the buffer whose handle is
given in pname:buffer. The pname:pMemoryRequirements parameter should point to an instance
of an slink:VkMemoryRequirements structure which will be filled with the memory requirements of the
buffer object. The definition of slink:VkMemoryRequirements is as follows:
include::../structs/VkMemoryRequirements.txt[]
The pname:size member of slink:VkMemoryRequirements reports the size of the memory allocation, measured
in bytes, required by the buffer. pname:alignment reports the required alignment of the memory allocation,
also measured in bytes. When memory is bound to the buffer object, the offset of the range within
the memory object must be an integer multiple of this value. The pname:memoryTypeBits member is a
bitfield with each set bit representing a valid memory type. Memory types for a device may be
determined by calling flink:vkGetPhysicalDeviceMemoryProperties. The least significant bit
if pname:memoryTypeBits represents the first memory type returned from
flink:vkGetPhysicalDeviceMemoryProperties, the next bit represents the second memory type and so on.
include::../validity/protos/vkGetBufferMemoryRequirements.txt[]
See Also
--------
flink:vkBindImageMemory
include::footer.txt[]