Struct kiss3d::resource::ShaderAttribute
[−]
[src]
pub struct ShaderAttribute<T> { /* fields omitted */ }
Structure encapsulating an attribute.
Methods
impl<T: GLPrimitive> ShaderAttribute<T>
[src]
fn disable(&mut self)
Disable this attribute.
fn enable(&mut self)
Enable this attribute.
fn bind(&mut self, vector: &mut GPUVec<T>)
Binds this attribute to a gpu vector.
fn bind_sub_buffer(&mut self,
vector: &mut GPUVec<T>,
strides: usize,
start_index: usize)
vector: &mut GPUVec<T>,
strides: usize,
start_index: usize)
Binds this attribute to non contiguous parts of a gpu vector.