MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / GetUnit

Method GetUnit

GTE/Graphics/GL46/GL46Engine.cpp:840–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840int32_t GL46Engine::ProgramIndexUnitMap::GetUnit(GLint program, GLint index) const
841{
842 for (int32_t unit = 0; unit < static_cast<int32_t>(mLinkMap.size()); ++unit)
843 {
844 auto& item = mLinkMap[unit];
845 if (program == item.program && index == item.index)
846 {
847 return unit;
848 }
849 }
850 return -1;
851}
852
853void GL46Engine::ProgramIndexUnitMap::ReleaseUnit(uint32_t index)
854{

Callers 5

DisableCBuffersMethod · 0.80
DisableSBuffersMethod · 0.80
DisableTexturesMethod · 0.80
DisableTextureArraysMethod · 0.80
DisableSamplersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected