Struct shadergraph::graph::ShaderNode[][src]

pub struct ShaderNode {
    pub shader: Program,
    pub inputs: Vec<NodeId>,
    pub buffer: Buffer,
}
Expand description

Represents a single shader, the inputs it expects, and the texture it owns that is updated in each forward pass.

Fields

shader: Programinputs: Vec<NodeId>buffer: Buffer

Trait Implementations

Formats the value using the given formatter. Read more

Not a fan, requires allocation.

Returns (kind, uniforms) tuple.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.