Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::vulkan::VulkanPresentationProbe Class Referencefinal

Presentation instance held while an embedder creates its platform surface. More...

#include "donner/gpu/vulkan/VulkanDevice.h"

Public Member Functions

 ~VulkanPresentationProbe ()
 Destroys the provisional Vulkan instance when no root accepted it.
void * nativeInstance () const
 Instance borrowed by the embedder to create its native surface.
void destroyExternalSurface (uint64_t surfaceHandle)
 Releases an embedder surface before root completion fails and this instance goes away.

Friends

class VulkanDevice

Detailed Description

Presentation instance held while an embedder creates its platform surface.

Complete the shared root against that exact surface before opening a logical runtime device. The embedder must destroy its surface before releasing this probe on failure.

Member Function Documentation

◆ destroyExternalSurface()

void donner::gpu::vulkan::VulkanPresentationProbe::destroyExternalSurface ( uint64_t surfaceHandle)

Releases an embedder surface before root completion fails and this instance goes away.

Parameters
surfaceHandleVkSurfaceKHR bits created against nativeInstance().

The documentation for this class was generated from the following file: