| MessageGeometry | The geometry of a SilkMessage’s text buffer: one unit quad, and one instance (INSTANCE_FLOATS floats) per glyph or line. PixiBackend owns it. You rarely need it directly. |
| PageArraySource | Every atlas page of a bundle in one 2D array texture, layer = page slot, so a bundle can draw from any number of pages in one draw call. Layers are as large as the largest page. Smaller pages sit at the top left of theirs, which the shader allows for (it samples in atlas pixels). Needs WebGL2 or WebGPU, and the uploaders installPageArrays adds to the renderer. |
| PixiBackend | The PixiJS SilkBackend (brief sec. 2.3): atlas pages as textures, style rows as a data texture, text buffers as instanced geometries, run sprites as one-glyph meshes drawn by the message shader. Silk drives it. The core never touches Pixi. |
| PixiStyleRows | Style rows on the GPU: an RGBA32F texture, 8 texels per row and 64 rows per texture row, as packStyle packs them. The writeStyleRows part of SilkBackend, one per theme. |
| PreparedSet | A set of prepared messages. |
| Silk | Baked localized text for Pixi (brief sec. 6.1). Holds the bundles in use, their atlas pages and glyph metrics on the GPU, the inline objects and the dev update events. Create it once. |
| SilkMessage | A prepared message on screen (brief sec. 6.1). Glyphs are instances of one mesh, drawn in one draw call. Updates take the cheapest tier that can serve them (sec. 6.3). set with a number of the same length rewrites only that slot’s glyphs (value-fast). Other values lay out again. A plural change swaps the baked variant. maxWidth, align, size and lineHeight lay out again without shaping. Tag taps on interactive styles arrive as tagtap. accessibleText holds the plain text with values filled in, for Pixi’s accessibility system. |
| SilkMessageLayer | A container that draws the glyphs of its SilkMessage children together: one draw call per bundle and theme, however many messages (brief sec. 7, M6). The merged instances carry each message’s index, and a data texture carries each message’s transform and alpha, so moving a message costs no instance write. Messages stay normal children: position, rotate, scale, hide and tap them as usual. Inline objects and text slots still draw on their own. |
| SilkTheme | A theme bound to its style-row texture. set changes a style at runtime: paint properties (colours, outline, glow, shadow, lines, weight bias) rewrite a few style rows and move no glyph. Shape-relevant properties (weight, size, family, letter spacing, features) cannot change baked text: a dev warning says to run silk compile again. |