shaderStore.d.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import { ShaderLanguage } from "../Materials/shaderLanguage";
  2. /**
  3. * Defines the shader related stores and directory
  4. */
  5. export declare class ShaderStore {
  6. /**
  7. * Gets or sets the relative url used to load shaders if using the engine in non-minified mode
  8. */
  9. static ShadersRepository: string;
  10. /**
  11. * Store of each shader (The can be looked up using effect.key)
  12. */
  13. static ShadersStore: {
  14. [key: string]: string;
  15. };
  16. /**
  17. * Store of each included file for a shader (The can be looked up using effect.key)
  18. */
  19. static IncludesShadersStore: {
  20. [key: string]: string;
  21. };
  22. /**
  23. * Gets or sets the relative url used to load shaders (WGSL) if using the engine in non-minified mode
  24. */
  25. static ShadersRepositoryWGSL: string;
  26. /**
  27. * Store of each shader (WGSL)
  28. */
  29. static ShadersStoreWGSL: {
  30. [key: string]: string;
  31. };
  32. /**
  33. * Store of each included file for a shader (WGSL)
  34. */
  35. static IncludesShadersStoreWGSL: {
  36. [key: string]: string;
  37. };
  38. /**
  39. * Gets the shaders repository path for a given shader language
  40. * @param shaderLanguage the shader language
  41. * @returns the path to the shaders repository
  42. */
  43. static GetShadersRepository(shaderLanguage?: ShaderLanguage): string;
  44. /**
  45. * Gets the shaders store of a given shader language
  46. * @param shaderLanguage the shader language
  47. * @returns the shaders store
  48. */
  49. static GetShadersStore(shaderLanguage?: ShaderLanguage): {
  50. [key: string]: string;
  51. };
  52. /**
  53. * Gets the include shaders store of a given shader language
  54. * @param shaderLanguage the shader language
  55. * @returns the include shaders store
  56. */
  57. static GetIncludesShadersStore(shaderLanguage?: ShaderLanguage): {
  58. [key: string]: string;
  59. };
  60. }