Skip to main content

ChunkNode

Trait ChunkNode 

Source
pub trait ChunkNode {
    // Required methods
    fn name(&self) -> &'static str;
    fn record(&mut self, ctx: &mut ChunkCtx<'_>);

    // Provided method
    fn params_hash(&self) -> u64 { ... }
}
Expand description

A schedulable chunk operation. Knows its static name and how to record itself; resource reads/writes are owned by the registry, not the node.

Required Methods§

Source

fn name(&self) -> &'static str

Static node name (used for GPU timestamps and logs).

Source

fn record(&mut self, ctx: &mut ChunkCtx<'_>)

Record this node’s GPU work. Only called when the node is dirty.

Provided Methods§

Source

fn params_hash(&self) -> u64

Hash of the node’s own parameters; a change marks the node dirty even if no upstream resource changed.

Trait Implementations§

Source§

impl<'a> GraphNode<ChunkCtx<'a>> for Box<dyn ChunkNode>

Bridge the trait objects to the celestial-graph executor.

Source§

fn params_hash(&self) -> u64

Hash of the node’s own parameters; a change marks the node dirty even if no upstream resource changed.
Source§

fn record(&mut self, ctx: &mut ChunkCtx<'a>)

Record this node’s GPU work. Only called when the node is dirty.

Implementors§