LogoPixi’VN
pixi-jsClasses

Class: Batch

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:23

A batch pool is used to store batches when they are not currently in use.

Advanced

Implements

Constructors

Constructor

> new Batch(): Batch

Returns

Batch

Properties

action

> action: BatchAction

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:25

the name of the instruction

Implementation of

Instruction.action


batcher

> batcher: Batcher

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:44


bindGroup

> bindGroup: BindGroup

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:43

breaking rules slightly here in the name of performance.. storing references to these bindgroups here is just faster for access! keeps a reference to the bind group to set when rendering this batch for WebGPU. Will be null if using WebGl.


blendMode

> blendMode: BLEND_MODES

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:29


canBundle

> canBundle: boolean

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:31

true if this instruction can be compiled into a WebGPU bundle

Implementation of

Instruction.canBundle


elements

> elements: BatchableElement[]

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:46

Elements contained in this batch. Used by the Canvas renderer.


gpuBindGroup

> gpuBindGroup: GPUBindGroup

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:37

breaking rules slightly here in the name of performance.. storing references to these bindgroups here is just faster for access! keeps a reference to the GPU bind group to set when rendering this batch for WebGPU. Will be null is using WebGL.


renderPipeId

> renderPipeId: string

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:24

a the id of the render pipe that can run this instruction

Implementation of

Instruction.renderPipeId


size

> size: number

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:27


start

> start: number

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:26


textures

> textures: BatchTextureArray

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:28


topology

> topology: Topology

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:30

Methods

destroy()

> destroy(): void

Defined in: node_modules/pixi.js/lib/rendering/batcher/shared/Batcher.d.ts:47

Returns

void