MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ destroy_sampler()

void MayaFlux::Core::BackendResourceManager::destroy_sampler ( vk::Sampler  sampler)

Destroy sampler.

Definition at line 1064 of file BackendResoureManager.cpp.

1065{
1066 if (!sampler) {
1067 return;
1068 }
1069
1070 for (auto it = m_sampler_cache.begin(); it != m_sampler_cache.end(); ++it) {
1071 if (it->second == sampler) {
1072 m_sampler_cache.erase(it);
1073 break;
1074 }
1075 }
1076
1077 m_context.get_device().destroySampler(sampler);
1078
1080 "Destroyed sampler");
1081}
#define MF_DEBUG(comp, ctx,...)
std::unordered_map< size_t, vk::Sampler > m_sampler_cache
vk::Device get_device() const
Get logical device.
Definition VKContext.hpp:49
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Core::VKContext::get_device(), MayaFlux::Journal::GraphicsBackend, m_context, m_sampler_cache, and MF_DEBUG.

+ Here is the call graph for this function: