render

abstract fun render(target: NativeCanvasTarget, logicalSize: IntSize, frameTime: FrameTime): DrawImage?(source)

Captures into a borrowed Strata-owned target without reading GPU pixels back to the CPU.

Return

an optional immutable straight-ARGB snapshot of exactly this target generation, physical extent, and top-left orientation.

Parameters

target

exclusively borrowed color/depth target, valid only during this call.

logicalSize

the final positive logical destination extent.

frameTime

the timestamp shared by this actual native presentation.

Throws

when validation or GPU work fails; the device retains the target and lease until completion is established.