API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classWebGpuTextRenderer

@codexo/exojs / rendering / stable

WebGPU renderer for Text and BitmapText nodes. Mirrors WebGl2TextRenderer: per-node style data is packed once per flush into a `var<storage, read>` buffer, three specialised WGSL fragment variants handle SDF / MSDF / colour-atlas glyphs, and quads are sorted and batched by (shaderType, atlasPage) to minimise draw calls within a single render pass.

1
props
10
methods
0
events
Import
import { WebGpuTextRenderer } from '@codexo/exojs'

WebGPU renderer for Text and BitmapText nodes.

Mirrors WebGl2TextRenderer: per-node style data is packed once per flush into a `var\<storage, read>` buffer, three specialised WGSL fragment variants handle SDF / MSDF / colour-atlas glyphs, and quads are sorted and batched by (shaderType, atlasPage) to minimise draw calls within a single render pass.

Constructors 1
new(): WebGpuTextRenderer
Methods 10
connect(backend: WebGpuBackend): void
destroy(): void
disconnect(): void
flush(): void
getBackend(): WebGpuBackend
getBackendOrNull(): WebGpuBackend | null
onConnect(backend: WebGpuBackend): void
onDisconnect(): void
prewarmPipelines(formats: readonly GPUTextureFormat[]): Promise<void>
render(node: BitmapText | Text): void
Properties 1
backendType: WebGpu
Source