Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::vulkan::VulkanSurfaceLifetime Struct Reference

Preallocated owner/child teardown state shared by every surface of one device. More...

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

Public Attributes

std::atomic< bool > unproven
 Whether outstanding surface work lacks a completion proof.
std::atomic< size_t > liveChildren
 Number of live swapchain children retaining this surface lifetime.

Detailed Description

Preallocated owner/child teardown state shared by every surface of one device.

A child whose native completion cannot be proved poisons the state without allocating. The owner observes that poison and retains the complete device graph, including every prerequisite of leaked native handles. The live count catches a child that escaped the owner's containers.

Member Data Documentation

◆ liveChildren

std::atomic<size_t> donner::gpu::vulkan::VulkanSurfaceLifetime::liveChildren
Initial value:
{
0}

Number of live swapchain children retaining this surface lifetime.

◆ unproven

std::atomic<bool> donner::gpu::vulkan::VulkanSurfaceLifetime::unproven
Initial value:
{
false}

Whether outstanding surface work lacks a completion proof.


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