Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::browser::BrowserDeferredOrigin Struct Reference

What the calls one logical device deferred report back, and whether they may still run. More...

#include "donner/gpu/browser/BrowserBridge.h"

Public Attributes

std::atomic< bool > live {true}
 False once the bridge has begun releasing its logical device; its held calls then do not run.
std::atomic< uint32_t > refusal {0}
 Status, as a BridgeStatus value, of the first held write or bind group construction the browser refused; Success while none has been. Permanent: the device treats it as a loss.
std::atomic< uint32_t > destroyRefusals {0}
 Held destructions the browser refused. Diagnostic only: releases were never checked, and a refused release cannot leave the device unusable.

Detailed Description

What the calls one logical device deferred report back, and whether they may still run.

Shared by the bridge and every call it deferred, so a held call can outlive the bridge: a call held on one thread while its device is torn down on another still finds this state, sees the device released, and does not run against a logical device the browser side no longer holds. Logical device handles are never reused, so a released device's calls cannot reach another's objects either way.

Member Data Documentation

◆ destroyRefusals

std::atomic<uint32_t> donner::gpu::browser::BrowserDeferredOrigin::destroyRefusals {0}

Held destructions the browser refused. Diagnostic only: releases were never checked, and a refused release cannot leave the device unusable.

◆ live

std::atomic<bool> donner::gpu::browser::BrowserDeferredOrigin::live {true}

False once the bridge has begun releasing its logical device; its held calls then do not run.

◆ refusal

std::atomic<uint32_t> donner::gpu::browser::BrowserDeferredOrigin::refusal {0}

Status, as a BridgeStatus value, of the first held write or bind group construction the browser refused; Success while none has been. Permanent: the device treats it as a loss.


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