VKDESTROYINSTANCE(3)

NAME
vkDestroyInstance - Destroy an instance of Vulkan.

C SPECIFICATION

    void vkDestroyInstance(
        VkInstance                                  instance,
        const VkAllocationCallbacks*                pAllocator);

PARAMETERS

instance
    Vulkan instance to release.

DESCRIPTION

vkDestroyInstance destroys an instance of Vulkan. After destruction of the instance, all devices (logical and physical) and any objects created by those devices become in valid and should not be accessed. However, objects allocated directly or indirectly through the instance are not destroyed automatically and so may be leaked. Applications should destroy all objects created through instance before destroying the instance itself.

VALID USAGE

    • If instance is not NULL, instance must be a valid VkInstance handle

    • If pAllocator is not NULL, pAllocator must be a pointer to a valid VkAllocationCallbacks structure

    • All child objects created using instance must have been destroyed prior to destroying instance

    • If VkAllocationCallbacks were provided when instance was created, a compatible set of callbacks must be provided here

    • If no VkAllocationCallbacks were provided when instance was created, pAllocator must be NULL

HOST SYNCHRONIZATION

    • Host access to instance must be externally synchronized

SEE ALSO

vkCreateInstance, vkCreateDevice, vkDestroyDevice

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.