MinecraftCanvasContext

Borrows an offscreen OpenGL target for one render-thread Canvas callback.

The target is exclusively owned by Strata, is already bound with its physical viewport, and is cleared to transparent. Renderers must produce RGBA8 straight-alpha pixels with native texel row zero representing the top logical image row. Native state changed by the renderer must be restored before return; the adapter restores framebuffer and viewport bindings on failure as well. Do not retain this context or its target, destroy its attachments, resize it, or draw to the current GUI framebuffer. 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

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 borrowed color target with an optional depth attachment.