Skip to content
pixi-silk
GitHub repository
Class

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#

Constructors#

Constructor#

new PageArraySource(layers: PageLayer[], label?: string): PageArraySource;

Parameters#

ParameterTypeDefault value
layersPageLayer[]undefined
labelstring'silk-page-array'

Returns#

PageArraySource

Overrides#

TextureSource<PageLayer[]>.constructor