VKDESTROYSEMAPHORE(3)

NAME
vkDestroySemaphore - Destroy a semaphore object

C SPECIFICATION

    void vkDestroySemaphore(
        VkDevice                                    device,
        VkSemaphore                                 semaphore,
        const VkAllocationCallbacks*                pAllocator);

PARAMETERS

device
    Logical device which owns the object.

semaphore
    The handle of the object to destroy.

DESCRIPTION

vkDestroySemaphore destroys the semaphore whose handle is specified in semaphore, which must be a valid handle to a semaphore that was created by device device. Attempts to destroy VK_NULL_HANDLE are silently ignored. Once a semaphore has been destroyed, its handle becomes invalid and must not be reused.

VALID USAGE

    • device must be a valid VkDevice handle

    • If semaphore is not VK_NULL_HANDLE, semaphore must be a valid VkSemaphore handle

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

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

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

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

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

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

HOST SYNCHRONIZATION

    • Host access to semaphore must be externally synchronized

SEE ALSO

vkCreateSemaphore

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.