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

Function DoesProfileMatchStage

shadercompiler/ParserUtils.cpp:644–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644bool DoesProfileMatchStage( const InlineString& profile, InputStageType stage )
645{
646 if( profile == MakeInlineString( "" ) )
647 {
648 return true;
649 }
650 switch( stage )
651 {
652 case VERTEX_STAGE:
653 return profile == MakeInlineString( "vs" );
654 case PIXEL_STAGE:
655 return profile == MakeInlineString( "ps" );
656 case COMPUTE_STAGE:
657 return profile == MakeInlineString( "cs" );
658 case GEOMETRY_STAGE:
659 return profile == MakeInlineString( "gs" );
660 case HULL_STAGE:
661 return profile == MakeInlineString( "hs" );
662 case DOMAIN_STAGE:
663 return profile == MakeInlineString( "ds" );
664 default:
665 return false;
666 }
667}
668
669int AllocateRegister( std::set<int>& set )
670{

Callers 1

AssignRegistersFunction · 0.85

Calls 1

MakeInlineStringFunction · 0.85

Tested by

no test coverage detected