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

Method addMicrocodeToCache

OgreMain/src/OgreGpuProgramManager.cpp:275–291  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

273 }
274 //---------------------------------------------------------------------
275 void GpuProgramManager::addMicrocodeToCache( const String &source,
276 const GpuProgramManager::Microcode &microcode )
277 {
278 Hash hash = computeHashWithRenderSystemName( source );
279
280 MicrocodeMap::iterator foundIter = mMicrocodeCache.find( hash );
281 if( foundIter == mMicrocodeCache.end() )
282 {
283 mMicrocodeCache.emplace( hash, microcode );
284 // if cache is modified, mark it as dirty.
285 mCacheDirty = true;
286 }
287 else
288 {
289 foundIter->second = microcode;
290 }
291 }
292 //---------------------------------------------------------------------
293 void GpuProgramManager::removeMicrocodeFromCache( const String &source )
294 {

Callers 4

compileMicrocodeMethod · 0.80
compileAndLinkMethod · 0.80
loadIndividualProgramMethod · 0.80
compileAndLinkMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected