---------------------------------------------------------------------
| 273 | } |
| 274 | //--------------------------------------------------------------------- |
| 275 | void GpuProgramManager::addMicrocodeToCache( const String &source, |
| 276 | const GpuProgramManager::Microcode µcode ) |
| 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 | { |
no test coverage detected