PageArraySource
import { PageArraySource } from 'pixi-silk/i18n/pixi';
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.
Extends#
TextureSource<PageLayer[]>
Constructors#
Constructor#
new PageArraySource(layers: PageLayer[], label?: string): PageArraySource;
Parameters#
| Parameter | Type | Default value |
|---|---|---|
layers | PageLayer[] | undefined |
label | string | 'silk-page-array' |
Returns#
PageArraySource
Overrides#
TextureSource<PageLayer[]>.constructor