VKDESTROYSURFACEKHR(3)

NAME
vkDestroySurfaceKHR - destroy a VkSurfaceKHR object.

C SPECIFICATION

    void vkDestroySurfaceKHR(
        VkInstance                                  instance,
        VkSurfaceKHR                                surface,
        const VkAllocationCallbacks*                pAllocator);

PARAMETERS

instance
    The instance used to create the surface.

pSurface
    The handle of the surface to destroy.

pAllocator
    The allocator used for host memory allocated for the surface object.

DESCRIPTION

vkDestroySurfaceKHR destroys the VkSurface object.

VALID USAGE

    • instance must be a valid VkInstance handle

    • If surface is not VK_NULL_HANDLE, surface must be a valid VkSurfaceKHR handle

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

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

    • All VkSwapchainKHR objects created for surface must have been destroyed prior to destroying surface

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

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

HOST SYNCHRONIZATION

    • Host access to surface must be externally synchronized

SEE ALSO

vkCreateAndroidSurfaceKHR, vkCreateDisplayPlaneSurfaceKHR, vkCreateMirSurfaceKHR, vkCreateWaylandSurfaceKHR, vkCreateWin32SurfaceKHR, vkCreateXcbSurfaceKHR, vkCreateXlibSurfaceKHR

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.