Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BatchShaderGenerator

Helper that generates batching multi-texture shader. Use it with your new BatchRenderer

memberof

PIXI

Hierarchy

  • BatchShaderGenerator

Index

Constructors

constructor

  • Parameters

    • vertexSrc: string

      Vertex shader

    • fragTemplate: string

      Fragment shader template

    Returns BatchShaderGenerator

Properties

defaultGroupCache

defaultGroupCache: {}

Type declaration

fragTemplate

fragTemplate: string

programCache

programCache: {}

Type declaration

vertexSrc

vertexSrc: string

Methods

generateSampleSrc

  • generateSampleSrc(maxTextures: number): string
  • Parameters

    • maxTextures: number

    Returns string

generateShader

  • generateShader(maxTextures: number): Shader
  • Parameters

    • maxTextures: number

    Returns Shader

Generated using TypeDoc