| 4839 | }; |
| 4840 | |
| 4841 | bool EffectCompilerMetal::Create() |
| 4842 | { |
| 4843 | auto compilerOutput = RunProcess( ( MetalTool( "metal" ) + " --version" ).c_str() ); |
| 4844 | if( compilerOutput.first != 0 ) |
| 4845 | { |
| 4846 | g_messages.AddMessage( "ShaderCompiler: error X0000: Could not invoke external Metal compiler %s. Make sure it is intalled.\n", MetalTool( "metal" ).c_str() ); |
| 4847 | return false; |
| 4848 | } |
| 4849 | return true; |
| 4850 | } |
| 4851 | |
| 4852 | bool EffectCompilerMetal::CompileEffect( const char* source, size_t sourceLength, const std::vector<Macro>& defines, EffectData& result, IWorkQueue* workQueue ) |
| 4853 | { |
nothing calls this directly
no test coverage detected