iEffectFallbacks.d.ts 723 B

123456789101112131415161718192021
  1. import type { Effect } from "./effect";
  2. /**
  3. * Interface used to define common properties for effect fallbacks
  4. */
  5. export interface IEffectFallbacks {
  6. /**
  7. * Removes the defines that should be removed when falling back.
  8. * @param currentDefines defines the current define statements for the shader.
  9. * @param effect defines the current effect we try to compile
  10. * @returns The resulting defines with defines of the current rank removed.
  11. */
  12. reduce(currentDefines: string, effect: Effect): string;
  13. /**
  14. * Removes the fallback from the bound mesh.
  15. */
  16. unBindMesh(): void;
  17. /**
  18. * Checks to see if more fallbacks are still available.
  19. */
  20. hasMoreFallbacks: boolean;
  21. }