DVSceneRecordingRenderer class final

A headless renderer that records what it was asked to do.

The reference implementation of DVSceneRenderer, and what scene logic is tested against without a GPU. Stricter than a real driver on purpose: a double release, a draw using a released resource, or any call after dispose throws, so a lifetime bug fails a test rather than corrupting a frame on somebody's device.

Implemented types

Constructors

DVSceneRecordingRenderer({DV3DDegradation initialization = DV3DDegradation.none, Object? initializationError})

Properties

disposed ↔ bool
getter/setter pair
frames → List<DVSceneFrame>
final
hashCode → int
The hash code for this object.
no setterinherited
initialization → DV3DDegradation
final
initializationError → Object?
final
initialized ↔ bool
getter/setter pair
live → List<DVSceneResource>
final
name → String
For reports, e.g. flutter_gpu.
no setteroverride
releases → List<DVSceneResource>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uploads → List<DVSceneResource>
final

Methods

dispose() → void
Called once, after every resource has been released.
override
initialize() → DV3DDegradation
Starts the renderer. DV3DDegradation.none when it can draw; a renderer that throws is treated as DV3DDegradation.gpuInitFailed.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release(DVSceneResource resource) → void
Frees resource. Called exactly once per upload.
override
render(DVSceneFrame frame) → void
override
toString() → String
A string representation of this object.
inherited
upload(String assetKey, DVSceneAsset asset, DVSceneAssetState loaded) → DVSceneResource
Makes a resource from a loaded asset.
override

Operators

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