MinecraftCanvasTextureProvider

Supplies an externally owned native color image for an actual Canvas presentation.

Calls run on the Minecraft render thread after final layout, at most once per attached canvas in a presentation batch. A shared provider may be called once for each independently attached canvas. Returning null preserves that canvas's last committed generation; the first missing image remains transparent. Throwing aborts preparation without publishing partially captured pixels.

Functions

Link copied to clipboard

Acquires stable RGBA8 straight-alpha contents without transferring ownership of the provider.