API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classWebGpuTextRenderer
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.
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.
new(): WebGpuTextRenderer 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 backendType: WebGpu