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

Function FindSamplerByName

trinity/Shader/Tr2EffectDescription.cpp:826–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824
825
826const Tr2SamplerSetupMap::value_type* FindSamplerByName( const Tr2SamplerSetupMap& samplerMap, const char* name )
827{
828 auto found = find_if( begin( samplerMap ), end( samplerMap ), [name]( const Tr2SamplerSetupMap::value_type& pair ) { return pair.second.name && strcmp( pair.second.name, name ) == 0; } );
829 return found != end( samplerMap ) ? &*found : nullptr;
830}

Callers 3

ReadMethod · 0.85
MapPassParametersMethod · 0.85

Calls 2

beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected