pub trait RenderNodeCpu: Send {
// Required method
fn process_cpu(&self, rgba: &mut [u8], w: u32, h: u32);
}Expand description
CPU fallback processing for a render node.
Implemented by all built-in nodes. Nodes that do not change frame
dimensions modify rgba in-place. Multi-input nodes (e.g. CrossfadeNode)
store their secondary inputs as fields and access them during process_cpu.
Required Methods§
Sourcefn process_cpu(&self, rgba: &mut [u8], w: u32, h: u32)
fn process_cpu(&self, rgba: &mut [u8], w: u32, h: u32)
Process rgba in-place.
rgba is a row-major RGBA buffer of size w × h × 4 bytes.
Nodes that cannot implement a CPU path leave rgba unchanged.