Vulkan-Docs/doc/specs/vulkan/man/VkMemoryPropertyFlags.txt
2016-02-16 01:53:44 -08:00

56 lines
1.8 KiB
Plaintext

VkMemoryPropertyFlags(3)
========================
Name
----
VkMemoryPropertyFlags - Memory pool properties.
C Specification
---------------
include::../enums/VkMemoryPropertyFlagBits.txt[]
include::../flags/VkMemoryPropertyFlags.txt[]
Constants
---------
ename:VK_MEMORY_PROPERTY_DEVICE_ONLY::
Unless any other flag is used to enable other uses this constant
identifies memory that's only accessible by the device.
ename:VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT::
Identifies a memory pool that can be mapped into host memory address
space and thus is accessible by the host.
ename:VK_MEMORY_PROPERTY_HOST_NON_COHERENT_BIT::
Identifies a memory pool where accesses beteen the host and the
coherency domain are not conherent. Memory with this property needs
explicit use of flink:vkFlushMappedMemoryRanges after host writes to
this type of memory, and use of flink:vkInvalidateMappedMemoryRanges
before host reads from that memory.
ename:VK_MEMORY_PROPERTY_HOST_UNCACHED_BIT::
Identifies memory that is not cached by the host.
ename:VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT::
Identifies memory where an object's backing may be provided lazily
(when needed) by the implementation.
Description
-----------
These flags are used in the slink:VkMemoryAllocateInfo structure passed as parameter to flink:vkAllocateMemory
to define the properties of the memory pool the memory object should be allocated from.
Additionally, when querying the memory requirements of objects using
flink:vkGetBufferMemoryRequirements or flink:vkGetImageMemoryRequirements,
the ptext:memoryTypeBits member returned in the slink:VkMemoryRequirements
structure takes its values from these set of flags.
See Also
--------
slink:VkMemoryAllocateInfo, flink:vkAllocateMemory, slink:VkMemoryRequirements
include::footer.txt[]