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

◆ is_full()

bool MayaFlux::Kakshya::TextureCollection::is_full ( ) const

True when a linear collection cannot take another layer.

Definition at line 41 of file TextureCollection.cpp.

42{
43 if (m_spec.ring_layers > 0 || m_spec.max_bytes == 0)
44 return false;
45
46 return (static_cast<uint64_t>(get_layer_count()) + 1) * byte_size() > m_spec.max_bytes;
47}
size_t byte_size() const
Total byte count of the pixel buffer.

References MayaFlux::Kakshya::TextureContainer::byte_size(), MayaFlux::Kakshya::TextureContainer::get_layer_count(), m_spec, MayaFlux::Kakshya::TextureCollectionSpec::max_bytes, and MayaFlux::Kakshya::TextureCollectionSpec::ring_layers.

Referenced by append().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: