XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALShaderManager Class Reference

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <ShaderManager.h>

Static Public Member Functions

static void Configure (xiiStringView sActivePlatform, bool bEnableRuntimeCompilation, xiiStringView sShaderCacheDirectory=":shadercache/ShaderCache"_xiisv, xiiStringView sPermutationVariableSubDirectory="Shaders/PermutationVariables"_xiisv)
static const xiiString & GetPermutationVarSubDirectory ()
static const xiiString & GetActivePlatform ()
static const xiiString & GetCacheDirectory ()
static bool IsRuntimeCompilationEnabled ()
static bool IsInitialized ()
static void ReloadPermutationVarConfig (xiiStringView sName, const xiiTempHashedString &sHashedName)
static bool IsPermutationValueAllowed (xiiStringView sName, const xiiTempHashedString &sHashedName, const xiiTempHashedString &sValue, xiiHashedString &out_sName, xiiHashedString &out_sValue)
static bool IsPermutationValueAllowed (const xiiHashedString &sName, const xiiHashedString &sValue)
static xiiArrayPtr< const xiiGALShaderParser::EnumValue > GetPermutationEnumValues (const xiiHashedString &sName)
static void GetPermutationValues (const xiiHashedString &sName, xiiDynamicArray< xiiHashedString > &out_values)
static xiiUInt32 FilterPermutationVariables (xiiArrayPtr< const xiiHashedString > usedVariables, const xiiHashTable< xiiHashedString, xiiHashedString > &permutationVariables, xiiDynamicArray< xiiGALPermutationVariable > &out_FilteredPermutationVariables)

Detailed Description

Copyright (c) Theophilus Eriata. All Rights Reserved.

Member Function Documentation

◆ GetPermutationEnumValues()

xiiArrayPtr< const xiiGALShaderParser::EnumValue > xiiGALShaderManager::GetPermutationEnumValues ( const xiiHashedString & sName)
static

If the given permutation variable is an enum variable, this returns the possible values. Returns an empty array for other types of permutation variables.

◆ GetPermutationValues()

void xiiGALShaderManager::GetPermutationValues ( const xiiHashedString & sName,
xiiDynamicArray< xiiHashedString > & out_values )
static

Same as GetPermutationEnumValues() but also returns values for other types of variables. E.g. returns TRUE and FALSE for boolean variables.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/GraphicsFoundation/ShaderCompiler/ShaderManager.h
  • /home/runner/work/XII/XII/Source/Engine/GraphicsFoundation/ShaderCompiler/Implementation/ShaderManager.cpp
  • /home/runner/work/XII/XII/Source/Engine/GraphicsFoundation/Startup.cpp