Trait glin::attributes::Bindings[][src]

pub trait Bindings {
    fn attribute_location(&self, name: &str) -> Option<u32>;
fn attribute_bindings(&self) -> Iter<'_, String, u32>; }

Attribute bindings in a program

Usually used to retrieve locations in a preexisting glsl program, to bind some atributes before linking a program or to cache the bindings of a program to then pass them to a VAO in order to bind the data from a buffer to the respective attributes

Required methods

fn attribute_location(&self, name: &str) -> Option<u32>[src]

Location of the specified attribute in a program

fn attribute_bindings(&self) -> Iter<'_, String, u32>[src]

Index of the locations for all the attributes in a program

Loading content...

Implementors

impl Bindings for Program[src]

impl<H: BuildHasher + Clone> Bindings for IndexMap<String, u32, H>[src]

Loading content...