[][src]Trait glin::Bindings

pub trait Bindings {
    fn attribute_location(&self, name: &str) -> Option<u32>;
fn attribute_bindings(&self) -> IntoIter<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

Location of the specified attribute in a program

Index of the locations for all the attributes in a program

Implementations on Foreign Types

impl<H: BuildHasher + Clone> Bindings for HashMap<String, u32, H>


impl Bindings for Program