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

◆ needs_removal()

virtual bool MayaFlux::Buffers::Buffer::needs_removal ( ) const
pure virtual

Checks if the buffer should be removed from processing chains.

Returns
True if the buffer should be removed, false otherwise

This method enables dynamic buffer lifecycle management. Different buffer types may have different removal criteria:

  • Audio buffers typically return false unless explicitly marked for removal
  • Video buffers may return true when a stream ends
  • Texture buffers may return true when resources are freed

Implemented in MayaFlux::Buffers::AudioBuffer, and MayaFlux::Buffers::VKBuffer.