API

Interface TextRenderer

Standalone rendering context that draws sorted 2D text layers directly to the swapchain.

interface TextRenderer {
    clearColor: GPUColorDict;
    layers: readonly TextLayer[];
}

Hierarchy (View Summary)

Index
clearColor: GPUColorDict

Clear color used when this context is the first active one in a frame.

layers: readonly TextLayer[]