@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
61 lines (60 loc) • 1.87 kB
TypeScript
import { ShaderLanguage } from "../Materials/shaderLanguage.js";
/**
* Defines the shader related stores and directory
*/
export declare class ShaderStore {
/**
* Gets or sets the relative url used to load shaders if using the engine in non-minified mode
*/
static ShadersRepository: string;
/**
* Store of each shader (The can be looked up using effect.key)
*/
static ShadersStore: {
[ ]: string;
};
/**
* Store of each included file for a shader (The can be looked up using effect.key)
*/
static IncludesShadersStore: {
[ ]: string;
};
/**
* Gets or sets the relative url used to load shaders (WGSL) if using the engine in non-minified mode
*/
static ShadersRepositoryWGSL: string;
/**
* Store of each shader (WGSL)
*/
static ShadersStoreWGSL: {
[ ]: string;
};
/**
* Store of each included file for a shader (WGSL)
*/
static IncludesShadersStoreWGSL: {
[ ]: string;
};
/**
* Gets the shaders repository path for a given shader language
* @param shaderLanguage the shader language
* @returns the path to the shaders repository
*/
static GetShadersRepository(shaderLanguage?: ShaderLanguage): string;
/**
* Gets the shaders store of a given shader language
* @param shaderLanguage the shader language
* @returns the shaders store
*/
static GetShadersStore(shaderLanguage?: ShaderLanguage): {
[ ]: string;
};
/**
* Gets the include shaders store of a given shader language
* @param shaderLanguage the shader language
* @returns the include shaders store
*/
static GetIncludesShadersStore(shaderLanguage?: ShaderLanguage): {
[ ]: string;
};
}