MCPcopy Create free account
hub / github.com/comaps/comaps / CleanupTextures

Method CleanupTextures

libs/drape_frontend/backend_renderer.cpp:804–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804void BackendRenderer::CleanupTextures()
805{
806 // For Vulkan we initialize deferred cleaning up.
807 if (m_context->GetApiVersion() == dp::ApiVersion::Vulkan)
808 {
809 auto textures = m_texMng->GetTexturesToCleanup();
810 if (!textures.empty())
811 m_commutator->PostMessage(ThreadsCommutator::RenderThread,
812 make_unique_dp<CleanupTexturesMessage>(std::move(textures)), MessagePriority::Normal);
813 }
814}
815
816void BackendRenderer::FlushGeometry(TileKey const & key, dp::RenderState const & state,
817 drape_ptr<dp::RenderBucket> && buffer)

Callers

nothing calls this directly

Calls 4

GetTexturesToCleanupMethod · 0.80
GetApiVersionMethod · 0.45
emptyMethod · 0.45
PostMessageMethod · 0.45

Tested by

no test coverage detected