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

◆ remove_feed()

void MayaFlux::Buffers::ShaderProcessor::remove_feed ( const std::string &  name)

Remove a feed.

Any buffer it created is released.

Definition at line 279 of file ShaderProcessor.cpp.

280{
281 auto it = m_feeds.find(name);
282 if (it == m_feeds.end()) {
283 return;
284 }
285
286 if (it->second.is_storage) {
287 unbind_buffer(it->second.descriptor_name);
288 }
289
290 m_feeds.erase(it);
291}
void unbind_buffer(const std::string &descriptor_name)
Unbind a buffer from a descriptor.
std::unordered_map< std::string, Feed > m_feeds

References m_feeds, and unbind_buffer().

+ Here is the call graph for this function: