vkUnmapMemory(3)

# vkUnmapMemory(3) Manual Page

## Name

vkUnmapMemory - Unmap a previously mapped memory object

## C Specification

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

    void vkUnmapMemory(
        VkDevice                                    device,
        VkDeviceMemory                              memory);

## Parameters

- `device` is the logical device that owns the memory.

- `memory` is the memory object to be unmapped.

## Description

Valid Usage

- `memory` must be currently host mapped

Valid Usage (Implicit)

- `device` must be a valid VkDevice handle

- `memory` must be a valid VkDeviceMemory handle

- `memory` must have been created, allocated, or retrieved from `device`

Host Synchronization

- Host access to `memory` must be externally synchronized

## See Also

VkDevice, VkDeviceMemory

## Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

## Copyright

Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.