FrameCompletion class Rendering

What Scene.renderViewsToTargets reports about the frame it was asked to render.

Constructors

FrameCompletion.rendered(Future<void> whenGpuDone)
A frame whose GPU work was submitted; whenGpuDone completes when it has executed.
FrameCompletion.skipped()
A frame the scene did not draw (its resources were still loading, or there was nothing to draw). whenGpuDone is already complete, so a runtime loop can await it unconditionally.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skipped → bool
Whether the scene drew nothing this frame. The targets hold whatever they held before.
final
whenGpuDone → Future<void>
Completes once the GPU has finished every command the frame submitted, so a runtime may release the targets (an OpenXR swapchain image) or read them back.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

afterSubmissions({Iterable<ExternalRenderTarget> present = const []}) → FrameCompletion
Signals completion once a trailing empty submission finishes, which on an in-order queue is after everything submitted before it.