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

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

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<Link, Error>

Construct a new link from an iterator over attribute indices.

fn to_iter(&self) -> AttributeIter

Convert to an iterator returning attribute indices

Trait Implementations

Derived Implementations

impl Copy for Link

impl Clone for Link

fn clone(&self) -> Link

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