MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / clearAutoConstant

Method clearAutoConstant

OgreMain/src/OgreGpuProgramParams.cpp:2319–2337  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2317 }
2318 //-----------------------------------------------------------------------------
2319 void GpuProgramParameters::clearAutoConstant( size_t index )
2320 {
2321 GpuLogicalIndexUse *indexUse = _getFloatConstantLogicalIndexUse( index, 0, GPV_GLOBAL );
2322
2323 if( indexUse )
2324 {
2325 indexUse->variability = GPV_GLOBAL;
2326 size_t physicalIndex = indexUse->physicalIndex;
2327 // update existing index if it exists
2328 for( AutoConstantList::iterator i = mAutoConstants.begin(); i != mAutoConstants.end(); ++i )
2329 {
2330 if( i->physicalIndex == physicalIndex )
2331 {
2332 mAutoConstants.erase( i );
2333 break;
2334 }
2335 }
2336 }
2337 }
2338 //-----------------------------------------------------------------------------
2339 void GpuProgramParameters::clearNamedAutoConstant( const String &name )
2340 {

Callers 1

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected