| 17 | } |
| 18 | |
| 19 | bool 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 |
nothing calls this directly
no test coverage detected