VKDESTROYFENCE(3)

NAME
vkDestroyFence - Destroy a fence object

C SPECIFICATION

    void vkDestroyFence(
        VkDevice                                    device,
        VkFence                                     fence,
        const VkAllocationCallbacks*                pAllocator);

PARAMETERS

device
    Logical device which owns the object.

fence
    The handle of the object to destroy.

DESCRIPTION

vkDestroyFence destroys the fence object whose handle is specified in fence. fence must be a valid handle to fence object created through a successful call to vkCreateFence on device. Attempts to destroy VK_NULL_HANDLE are silently ignored. After a fence object has been destroyed, its handle becomes invalid and must not be accessed again. Results are undefined if another thread is waiting on a fence when the fence is destroyed.

VALID USAGE

    • device must be a valid VkDevice handle

    • If fence is not VK_NULL_HANDLE, fence must be a valid VkFence handle

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

    • If fence is a valid handle, it must have been created, allocated or retrieved from device

    • Each of device and fence that are valid handles must have been created, allocated or retrieved from the same VkPhysicalDevice

    • fence must not be associated with any queue command that has not yet completed execution on that queue

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

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

HOST SYNCHRONIZATION

    • Host access to fence must be externally synchronized

SEE ALSO

vkCreateFence

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.