Trait rin::gl::Bindings[][src]

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

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

Location of the specified attribute in a program

pub 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> Bindings for IndexMap<String, u32, H> where
    H: BuildHasher + Clone
[src]

Loading content...