Plasma Engine  2.0
Loading...
Searching...
No Matches
plShaderManager Class Reference

Static Public Member Functions

static void Configure (const char *szActivePlatform, bool bEnableRuntimeCompilation, const char *szShaderCacheDirectory=":shadercache/ShaderCache", const char *szPermVarSubDirectory="Shaders/PermutationVars")
 
static const plStringGetPermutationVarSubDirectory ()
 
static const plStringGetActivePlatform ()
 
static const plStringGetCacheDirectory ()
 
static bool IsRuntimeCompilationEnabled ()
 
static void ReloadPermutationVarConfig (const char *szName, const plTempHashedString &sHashedName)
 
static bool IsPermutationValueAllowed (const char *szName, const plTempHashedString &sHashedName, const plTempHashedString &sValue, plHashedString &out_sName, plHashedString &out_sValue)
 
static bool IsPermutationValueAllowed (const plHashedString &sName, const plHashedString &sValue)
 
static plArrayPtr< const plShaderParser::EnumValueGetPermutationEnumValues (const plHashedString &sName)
 If the given permutation variable is an enum variable, this returns the possible values. Returns an empty array for other types of permutation variables.
 
static void GetPermutationValues (const plHashedString &sName, plDynamicArray< plHashedString > &out_values)
 Same as GetPermutationEnumValues() but also returns values for other types of variables. E.g. returns TRUE and FALSE for boolean variables.
 
static void PreloadPermutations (plShaderResourceHandle hShader, const plHashTable< plHashedString, plHashedString > &permVars, plTime shouldBeAvailableIn)
 
static plShaderPermutationResourceHandle PreloadSinglePermutation (plShaderResourceHandle hShader, const plHashTable< plHashedString, plHashedString > &permVars, bool bAllowFallback)
 

The documentation for this class was generated from the following files: