MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetOptimizationLevel

Function GetOptimizationLevel

shadercompiler/EffectCompilerDX11.cpp:943–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943DWORD GetOptimizationLevel()
944{
945 switch( g_optimizationLevel )
946 {
947 case 0:
948 return D3DCOMPILE_OPTIMIZATION_LEVEL0;
949 case 1:
950 return D3DCOMPILE_OPTIMIZATION_LEVEL1;
951 case 2:
952 return D3DCOMPILE_OPTIMIZATION_LEVEL2;
953 default:
954 return D3DCOMPILE_OPTIMIZATION_LEVEL3;
955 }
956}
957
958RegisterInputDescription GetRegisterInputDescription( const Type& type, const RegisterSpecifier& reg )
959{

Callers 1

CompileEffectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected