SdlVulkanDestroySurface
Destroy the Vulkan rendering surface of a window.
This should be called before destroying the window, if SdlVulkanCreateSurface was called after creating the window.
The AInstance
must have been created with extensions returned by SdlVulkanGetInstanceExtensions enabled and ASurface
must have been created successfully by an SdlVulkanCreateSurface call.
If AAllocator
is nil, Vulkan will use the system default allocator. This argument is passed directly to Vulkan and isn't used by SDL itself.
Definition
Unit: Neslib.Sdl3.Video
procedure SdlVulkanDestroySurface(const AInstance: VkInstance;
const ASurface: VkSurfaceKHR; const AAllocator: PVkAllocationCallbacks = nil); inline
Parameters
AInstance
: VkInstance
: The Vulkan instance handle.
ASurface
: VkSurfaceKHR
: The vkSurfaceKHR handle to destroy.
AAllocator
: PVkAllocationCallbacks = nil
: (Optional) VkAllocationCallbacks struct, which lets the app set the allocator that destroys the surface. Can be nil.