API

Interface IEffectFallbacks

Interface used to define common properties for effect fallbacks

interface IEffectFallbacks {
    hasMoreFallbacks: boolean;
    reduce(currentDefines: string, effect: Effect): string;
    unBindMesh(): void;
}

Implemented by

Index
hasMoreFallbacks: boolean

Checks to see if more fallbacks are still available.

  • Removes the defines that should be removed when falling back.

    Parameters

    • currentDefines: string

      defines the current define statements for the shader.

    • effect: Effect

      defines the current effect we try to compile

    Returns string

    The resulting defines with defines of the current rank removed.