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

Function AllocateRegister

shadercompiler/ParserUtils.cpp:669–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667}
668
669int AllocateRegister( std::set<int>& set )
670{
671 for( int i = 0;; ++i )
672 {
673 auto inserted = set.insert( i );
674 if( inserted.second )
675 {
676 return i;
677 }
678 }
679}
680
681char GetRegisterType( const Type& type )
682{

Callers 2

AssignRegistersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected