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