Struct gfx::render::mesh::Link [] [src]

pub struct Link {
    // some fields omitted
}

Holds a remapping table from shader inputs to mesh attributes.

Methods

impl Link
[src]

fn new<R: Resources>(mesh: &Mesh<R>, pinfo: &ProgramInfo) -> Result<LinkError>

Match mesh attributes against shader inputs, produce a mesh link. Exposed to public to allow external Batch implementations to use it.

fn from_iter<I: Iterator<Item=AttributeIndex>>(iter: I) -> Result<LinkError>

Construct a new link from an iterator over attribute indices.

fn to_iter(&self) -> AttributeIter

Convert to an iterator returning attribute indices

Trait Implementations

impl Copy for Link
[src]

impl Clone for Link
[src]

fn clone(&self) -> Link

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more