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

Method CompileEffect

shadercompiler/EffectCompilerDX12.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19bool EffectCompilerDX12::CompileEffect( const char* source, size_t sourceLength, const std::vector<Macro>& defines, EffectData& result, IWorkQueue* workQueue )
20{
21 std::vector<Macro> newDefines = defines;
22 if( auto define = FindMacro( newDefines, "PLATFORM" ) )
23 {
24 define->value = GetPlatformIdString( PLATFORM_DX12 );
25 }
26 else
27 {
28 newDefines.push_back( { "PLATFORM", GetPlatformIdString( PLATFORM_DX12 ) } );
29 }
30 return m_compiler.CompileEffect( source, sourceLength, defines, result, { "5_1", true, true }, workQueue );
31}
32#endif

Callers

nothing calls this directly

Calls 2

FindMacroFunction · 0.85
GetPlatformIdStringFunction · 0.85

Tested by

no test coverage detected