Function Prototype
vkUnmapMemory2
Unmap a previously mapped memory object
To unmap a memory object once host access to it is no longer needed by the application, call:
VkResult vkUnmapMemory2(
VkDevice device,
const VkMemoryUnmapInfo* pMemoryUnmapInfo);
pub fn unmap_memory2(
device: vk::Device,
p_memory_unmap_info: *const vk::MemoryUnmapInfo,
) -> vk::Result;
VkResult vkUnmapMemory2KHR(
VkDevice device,
const VkMemoryUnmapInfo* pMemoryUnmapInfo);
pub fn unmap_memory2_khr(
device: vk::Device,
p_memory_unmap_info: *const vk::MemoryUnmapInfo,
) -> vk::Result;
deviceis the logical device that owns the memory.pMemoryUnmapInfois a pointer to a VkMemoryUnmapInfo structure describing parameters of the unmap.
This function behaves identically to vkUnmapMemory except that it gets its parameters via an extensible structure pointer rather than directly as function arguments.
Valid Usage (Implicit)
VUID-vkUnmapMemory2-device-parameter
device must be a valid VkDevice handle
VUID-vkUnmapMemory2-pMemoryUnmapInfo-parameter
pMemoryUnmapInfo must be a valid pointer to a valid VkMemoryUnmapInfo structure
Parent
VK_VERSION_1_4Type
Function Prototype