MayaFlux 0.1.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 70 of file TextureNode.hpp.

71 {
72 return m_pixel_data_dirty;
73 }
bool m_pixel_data_dirty
Flag: pixel data changed since last GPU upload.