RenderSessionAttachOptions class final

Options for attaching a render session to a map.

See mln_render_session_attach_options in the C API reference.

Constructors

RenderSessionAttachOptions({required RenderDriverKind driver, GpuSyncKindFlag producerSyncKinds = GpuSyncKindFlag.none, Wake frameWake = const Wake(), Wake redrawWake = const Wake(), Wake driverWorkWake = const Wake(), QueueLock? queueLock})
const

Properties

driver → RenderDriverKind
The thread that runs the session's graphics work, which depends on the target:
final
driverWorkWake → Wake
Called when a session driven by RenderDriverKind.callerGraphicsThread has work for mln_render_session_service_driver_work(). It isn't called again until a service runs.
final
frameWake → Wake
Called when frame results are waiting for RenderSessionHandle.drainFrameResults(). It isn't called again until a drain takes them.
final
hashCode → int
The hash code for this object.
no setterinherited
producerSyncKinds → GpuSyncKindFlag
The kinds of GpuSync that you can wait on before you read an acquired frame. The session uses one of them that its target supports. Zero lets the session pick a kind that names no object to wait on.
final
queueLock → QueueLock?
Your lock on the Vulkan queue, when you submit to it yourself.
final
redrawWake → Wake
Called when the session has something new to draw. Demand a frame at your next display refresh. It isn't called again until you demand a frame, or while the session has no target.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({RenderDriverKind? driver, GpuSyncKindFlag? producerSyncKinds, Wake? frameWake, Wake? redrawWake, Wake? driverWorkWake, QueueLock? queueLock}) → RenderSessionAttachOptions
A copy of this value with the given members replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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