Struct shadergraph::graph::ComputeNode [−][src]
pub struct ComputeNode<T: AsUniformValue> {
pub func: ComputeNodeFn<T>,
pub input: NodeId,
pub output: T,
}
Expand description
Represents a compute node, i.e. a node that runs on the GPU. Still operates on uniforms, takes a single input.
Fields
func: ComputeNodeFn<T>
input: NodeId
output: T
Trait Implementations
Denotes whether the node produces an output texture.
This function should be consistent,
e.g. if it returns Some
it should always return
Some
. Read more