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

Function HasRegisterBinding

shadercompiler/ParserUtils.cpp:509–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509bool HasRegisterBinding( const Symbol* symbol, const char* shaderProfile, char registerType, int registerNumber )
510{
511 auto found = symbol->registerSpecifier.find( MakeInlineString( shaderProfile ) );
512 if( found == symbol->registerSpecifier.end() )
513 {
514 found = symbol->registerSpecifier.find( MakeInlineString( "" ) );
515 }
516 if( found != symbol->registerSpecifier.end() )
517 {
518 return found->second.registerType == registerType && found->second.registerNumber == registerNumber;
519 }
520 return false;
521}
522
523int GetCBufferIndex( const InlineString& name )
524{

Callers 1

GetCBufferIndexFunction · 0.85

Calls 2

MakeInlineStringFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected