MinecraftCanvasContext

Borrows an offscreen target and command encoder for one render-thread Canvas callback.

The target is exclusively owned by Strata and has been cleared to transparent. Renderers encode all target work through encoder, close every render pass before returning, and never submit or retain this encoder themselves. The adapter records the family-specific completion fence even when the callback fails; submission remains with the version-owned adapter or host boundary. Output is ordinary RGBA8 straight alpha with texture row zero representing the top logical image row. Do not retain this context or its native objects, resize or destroy the target, or draw to the current GUI target. Physical target axes never exceed the adapter's 32,768-pixel arithmetic bound; the active device may impose a lower limit.

Properties

Link copied to clipboard
val encoder: CommandEncoder

The callback encoder whose completion fence is managed by the adapter and whose submission follows the version-owned host contract.

Link copied to clipboard

immutable timestamp shared by this native presentation, independent of extra retained host frames.

Link copied to clipboard

immutable positive logical destination extent from the final layout.

Link copied to clipboard

immutable native target extent after applying the presentation's GUI scale.

Link copied to clipboard
val target: RenderTarget

The exclusively borrowed color target and optional depth attachment.