VkMemoryAllocateFlagBits(3)
C Specification
Bits whichcan be set inVkMemoryAllocateFlagsInfo::flags,controlling device memory allocation, are:
// Provided by VK_VERSION_1_1typedef enum VkMemoryAllocateFlagBits { VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT = 0x00000001, // Provided by VK_VERSION_1_2 VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT = 0x00000002, // Provided by VK_VERSION_1_2 VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT = 0x00000004, // Provided by VK_EXT_zero_initialize_device_memory VK_MEMORY_ALLOCATE_ZERO_INITIALIZE_BIT_EXT = 0x00000008, // Provided by VK_KHR_device_group VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT_KHR = VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT, // Provided by VK_KHR_buffer_device_address VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT_KHR = VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT, // Provided by VK_KHR_buffer_device_address VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT_KHR = VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT,} VkMemoryAllocateFlagBits;// Provided by VK_KHR_device_group// Equivalent to VkMemoryAllocateFlagBitstypedef VkMemoryAllocateFlagBits VkMemoryAllocateFlagBitsKHR;Description
VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT specifies that memory will beallocated for the devices inVkMemoryAllocateFlagsInfo::
deviceMask.VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT specifies that the memorycan be attached to a buffer object created with theVK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT usage flag set.
VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT specifiesthat the memory’s addresscan be saved and reused on a subsequent run(e.g. for trace capture and replay), seeVkBufferOpaqueCaptureAddressCreateInfo for more detail.If this bit is set,VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BITmustalso be set.
VK_MEMORY_ALLOCATE_ZERO_INITIALIZE_BIT_EXT specifies that thememory will be zeroed automatically by the implementation beforeapplication is able to access it.
Document Notes
For more information, see theVulkan Specification.
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.