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

Function GetEntryPointName

shadercompiler/EffectCompilerMetal.cpp:2639–2652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2637};
2638
2639InlineString GetEntryPointName( PatchShaderType shaderType, ASTNode* callNode )
2640{
2641 switch( shaderType )
2642 {
2643 case PatchShaderType::VERTEX:
2644 return MakeInlineString( "mainVS" );
2645 case PatchShaderType::PIXEL:
2646 return MakeInlineString( "mainPS" );
2647 case PatchShaderType::COMPUTE:
2648 return MakeInlineString( "mainCS" );
2649 default:
2650 return callNode->GetSymbol()->name;
2651 }
2652}
2653
2654InlineString GetShaderAttribute( PatchShaderType shaderType )
2655{

Callers 1

PatchShaderFunction · 0.85

Calls 2

MakeInlineStringFunction · 0.85
GetSymbolMethod · 0.80

Tested by

no test coverage detected