render
fun render(artboard: Artboard, stateMachine: StateMachine, fit: Fit = RenderingDefaults.defaultFit(), clearColor: Int = RenderingDefaults.CLEAR_COLOR)
Enqueues rendering into this hardware surface.
The first call waits (bounded) for initial frame publication to keep startup deterministic.
Throws
If artboard or stateMachine are not owned by this buffer's worker, or if stateMachine was not created from artboard.
If this buffer has been closed, its surface has been closed, or the worker has been released.
If first-frame publication times out or hardware image acquisition fails.