Class: Batch

.brend~Batch

Resources that need to be uploaded to WebGL to render one batch.

Members

geometryOffset number

Offset in the geometry (set by BatchRenderer) where this batch is located.

state PIXI.State

State required to render this batch.

textureBuffer Array.<PIXI.Texture>

Buffer of textures that should be uploaded in-order to GPU texture registers.

uidMap Map.<number, number>

Map of texture-ids into texture-buffer indices.

Methods

Resets all properties to null to free up references to resources.

Uploads the resources required before rendering this batch.