MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Snapshot

Method Snapshot

Source/HLEGraphics/TextureCache.cpp:238–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236
237#ifdef DAEDALUS_DEBUG_DISPLAYLIST
238void CTextureCache::Snapshot(const MutexLock & lock, std::vector< STextureInfoSnapshot > & snapshot) const
239{
240 DAEDALUS_ASSERT(lock.HasLock(mDebugMutex), "No debug lock");
241
242 snapshot.erase( snapshot.begin(), snapshot.end() );
243
244 for( TextureVec::const_iterator it = mTextures.begin(); it != mTextures.end(); ++it )
245 {
246 STextureInfoSnapshot info( (*it)->GetTextureInfo(), (*it)->GetTexture() );
247 snapshot.push_back( info );
248 }
249}
250#endif // DAEDALUS_DEBUG_DISPLAYLIST

Callers 4

RunMethod · 0.80
TextureHandlerFunction · 0.80
TextureCacheHandlerFunction · 0.80

Calls 1

HasLockMethod · 0.80

Tested by

no test coverage detected