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

◆ needs_gpu_update()

bool MayaFlux::Nodes::GpuSync::TextureNode::needs_gpu_update ( ) const
inlineoverridevirtual

Check if pixel data changed since last GPU sync.

Returns
True if m_pixel_buffer has been modified

For textures, this is simple: did compute_frame() modify pixels? The binding processor checks this to decide whether to upload to GPU.

Implements MayaFlux::Nodes::GpuSync::GpuSync.

Definition at line 91 of file TextureNode.hpp.

92 {
93 return m_pixel_data_dirty;
94 }
bool m_pixel_data_dirty
Flag: pixel data changed since last GPU upload.