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

◆ push_layer()

template<typename Source >
bool MayaFlux::Buffers::TextureArrayBuffer::push_layer ( const Source &  source)
inline

Write a frame at the write head and advance it, wrapping at the last layer.

The head does not move if the frame was not stored.

Template Parameters
SourceAnything submit_layer accepts.
Returns
True if the frame was stored.

Definition at line 186 of file TextureArrayBuffer.hpp.

187 {
188 if (!submit_layer(m_write_head, source)) {
189 return false;
190 }
192 return true;
193 }
bool submit_layer(uint32_t layer, std::span< const uint8_t > pixels)
Replace the frame of one layer with raw pixels.