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

Thread-safe view of a producer's submission completion, read by consumers on their own threads. More...

#include "donner/gpu/TextureExport.h"

Public Member Functions

virtual uint64_t completedSerial () const =0
 Highest producer submission serial known to have completed. Callable from any thread.
virtual uint64_t committedSerial () const =0
 Highest producer submission serial whose work the producer's backend has handed to its native queue, completed or not. A consumer ordered on the device waits only for work that far along: a device-side wait on work the producer has not handed over could wait for a host thread that is itself waiting for the consumer. Callable from any thread.
virtual bool failed () const =0
 Whether the producer's backend has reported a terminal execution failure, after which no serial it reports as complete can be trusted. Callable from any thread.
virtual std::optional< std::chrono::steady_clock::time_point > lastProgress () const
 When the producer last made progress on its own queue, which a consumer waiting for its work judges a stall by, or nothing when the producer's backend does not track progress. The default reports nothing. Callable from any thread.

Detailed Description

Thread-safe view of a producer's submission completion, read by consumers on their own threads.


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