MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / ClearCache

Method ClearCache

Source/SubPic/DX11SubPic.cpp:317–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void CDX11SubPicAllocator::ClearCache()
318{
319 // Clear the allocator of any remaining subpics
320 CAutoLock Lock(&ms_SurfaceQueueLock);
321 for (auto& pSubPic : m_AllocatedSurfaces) {
322 pSubPic->m_pAllocator = nullptr;
323 }
324 m_AllocatedSurfaces.clear();
325 m_FreeSurfaces.clear();
326
327 m_pOutputShaderResource.Release();
328 m_pOutputTexture.Release();
329}
330
331// ISubPicAllocator
332

Callers

nothing calls this directly

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected