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

Method Create

shadercompiler/EffectCompilerMetal.cpp:4841–4850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4839};
4840
4841bool 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
4852bool EffectCompilerMetal::CompileEffect( const char* source, size_t sourceLength, const std::vector<Macro>& defines, EffectData& result, IWorkQueue* workQueue )
4853{

Callers

nothing calls this directly

Calls 3

RunProcessFunction · 0.85
AddMessageMethod · 0.80
MetalToolFunction · 0.70

Tested by

no test coverage detected