Function Prototype

vkUnmapMemory2KHR

Unmap a previously mapped memory object

Alternatively, to unmap a memory object once host access to it is no longer needed by the application, call:

VkResult vkUnmapMemory2KHR(
    VkDevice device,
    const VkMemoryUnmapInfoKHR* pMemoryUnmapInfo);
  • device is the logical device that owns the memory.
  • pMemoryUnmapInfo is a pointer to a VkMemoryUnmapInfoKHR 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-vkUnmapMemory2KHR-pMemoryUnmapInfo-parameter

pMemoryUnmapInfo must be a valid pointer to a valid VkMemoryUnmapInfoKHR structure