VKGETDEVICEMEMORYCOM(3)

NAME
vkGetDeviceMemoryCommitment - Query the current commitment for a VkDeviceMemory

C SPECIFICATION

    void vkGetDeviceMemoryCommitment(
        VkDevice                                    device,
        VkDeviceMemory                              memory,
        VkDeviceSize*                               pCommittedMemoryInBytes);

PARAMETERS

device
    The device object from which memory was allocated.

memory
    The device memory object to query.

pCommittedMemoryInBytes
    Pointer to a variable which will receive the current memory commitment, in bytes.

DESCRIPTION

vkGetDeviceMemoryCommitment queries the commitment status of a VkDeviceMemory that was created with the VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT set.

The number of bytes committed for the given memory object is returned in the pCommittedMemoryInBytes pointer.

VALID USAGE

    • device must be a valid VkDevice handle

    • memory must be a valid VkDeviceMemory handle

    • pCommittedMemoryInBytes must be a pointer to a VkDeviceSize value

    • memory must have been created, allocated or retrieved from device

    • Each of device and memory must have been created, allocated or retrieved from the same VkPhysicalDevice

    • memory must have been created with a memory type that reports VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT

SEE ALSO

vkGetPhysicalDeviceMemoryProperties, vkAllocateMemory, vkFreeMemory

COPYRIGHT

Copyright © 2014-2016 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

AUTHOR

Khronos Group
    Author.