VKDESTROYDEVICE(3)

NAME
vkDestroyDevice - Destroy a logical device.

C SPECIFICATION

    void vkDestroyDevice(
        VkDevice                                    device,
        const VkAllocationCallbacks*                pAllocator);

PARAMETERS

device
    A handle to the logical device to destroy.

DESCRIPTION

vkDestroyDevice destroys a logical device. It does not destroy any resources created by or associated with the device. If those resources are not destroyed, they may be leaked. Therefore, applications should ensure that all objects created through the logical device have been destroyed before destroying the device itself. Attempts to destroy VK_NULL_HANDLE are silently ignored.

VALID USAGE

    • If device is not NULL, device must be a valid VkDevice handle

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

    • All child objects created on device must have been destroyed prior to destroying device

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

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

HOST SYNCHRONIZATION

    • Host access to device must be externally synchronized

SEE ALSO

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.