Function Prototype
vkMapMemory2
Map a memory object into application address space
To retrieve a host virtual address pointer to a region of a mappable memory object, call:
VkResult vkMapMemory2(
VkDevice device,
const VkMemoryMapInfo* pMemoryMapInfo,
void** ppData);
pub fn map_memory2(
device: vk::Device,
p_memory_map_info: *const vk::MemoryMapInfo,
pp_data: *mut *mut c_void,
) -> vk::Result;
VkResult vkMapMemory2KHR(
VkDevice device,
const VkMemoryMapInfo* pMemoryMapInfo,
void** ppData);
pub fn map_memory2_khr(
device: vk::Device,
p_memory_map_info: *const vk::MemoryMapInfo,
pp_data: *mut *mut c_void,
) -> vk::Result;
deviceis the logical device that owns the memory.pMemoryMapInfois a pointer to a VkMemoryMapInfo structure describing parameters of the map.ppDatais a pointer to avoid *variable in which is returned a host-accessible pointer to the beginning of the mapped range. This pointer minus VkMemoryMapInfo::offsetmust be aligned to at least VkPhysicalDeviceLimits::minMemoryMapAlignment.
This function behaves identically to vkMapMemory except that it gets its parameters via an extensible structure pointer rather than directly as function arguments.
Valid Usage (Implicit)
VUID-vkMapMemory2-device-parameter
device must be a valid VkDevice handle
VUID-vkMapMemory2-pMemoryMapInfo-parameter
pMemoryMapInfo must be a valid pointer to a valid VkMemoryMapInfo structure
VUID-vkMapMemory2-ppData-parameter
ppData must be a valid pointer to a pointer value
Parent
VK_VERSION_1_4Type
Function Prototype