pixi.js
    Preparing search index...

    Class ShaderOverridesAdvanced

    A specialized class that handles the caching and identification of shader overrides. Shader overrides are used to inject constants into a shader pipeline, allowing for powerful customization without the need for recompiling the shader source.

    This class ensures that override configurations are unique and immutable, allowing the renderer to efficiently cache pipelines based on these configurations.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • data: Record<string, number>

        A dictionary of constants to set on the shader. Keys should match the constant names in the WGSL shader.

      Returns ShaderOverrides

    Properties

    data: Record<string, number>

    The dictionary of constants to override.

    id: number

    The unique ID of the override configuration. Used for efficient caching.

    Methods