Options
All
  • Public
  • Public/Protected
  • All
Menu

A batch renderer with a customizable data transfer function to packed geometries.

Hierarchy

  • any
    • BatchRenderer

Index

Constructors

  • Returns BatchRenderer

Accessors

  • get uniforms(): any
  • Get the uniforms bound to this abstract batch renderer.

    Returns any

  • get reservedTextureUnits(): number
  • set reservedTextureUnits(val: number): void
  • Number of reserved texture units reserved by the batch shader that cannot be used by the batch renderer.

    Returns number

  • The number of reserved texture units that the shader generator should not use (maximum 4).

    Parameters

    • val: number

    Returns void

Methods

  • contextChange(): void
  • This override allows to allocate a given number of texture units reserved for a custom batched shader. These reserved texture units won't be used to batch textures for PIXI.Sprite or SpriteMesh.

    override

    Returns void

  • start(): void
  • override

    Returns void

  • packInterleavedGeometry(element: any, attributeBuffer: any, indexBuffer: any, aIndex: any, iIndex: any): void
  • override

    Parameters

    • element: any
    • attributeBuffer: any
    • indexBuffer: any
    • aIndex: any
    • iIndex: any

    Returns void

  • hasPlugin(name: string): boolean
  • Verify if a PIXI plugin exists. Check by name.

    Parameters

    • name: string

      The name of the pixi plugin to check.

    Returns boolean

    True if the plugin exists, false otherwise.

Properties

MAX_TEXTURES: any
_shader: any
_packInterleavedGeometry: Function

The PackInterleavedGeometry function provided by the sampler.

_preRenderBatch: Function

The preRender function provided by the sampler and that is called just before a flush.

#reservedTextureUnits: number = 0