For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface IRenderToTexture

Interface for render-to-texture implementations. The painter uses this interface — concrete implementations live in backend folders (webgl/, webgpu/).

interface IRenderToTexture {
    needsFollowUpFrame: boolean;
    getTexture(tile: Tile): any;
    prepareForRender(style: StyleMLGL, zoom: number): void;
    renderLayer(layer: StyleLayer, renderContext: RenderContext): boolean;
}
Index

Properties

needsFollowUpFrame: boolean

Whether the render loop needs a follow-up frame to refresh cached textures that were kept this frame: textures rendered at another zoom, and stale textures beyond the per-frame budget.

Methods

  • Parameters

    Returns any

  • Parameters

    Returns void

Was this helpful?