pub struct ShaderState {
pub mvp: [Vec4; 4],
pub uniforms: Vec<Vec4>,
pub color_enabled: bool,
pub texcoord_enabled: bool,
}Expand description
Shader state (uniforms + enabled attributes)
Fields§
§mvp: [Vec4; 4]Model-view-projection matrix rows (4 x Vec4, each component 16.16 FP)
uniforms: Vec<Vec4>Uniform vec4 values
color_enabled: boolVertex color attribute enabled
texcoord_enabled: boolTexture coordinate attribute enabled
Trait Implementations§
Source§impl Clone for ShaderState
impl Clone for ShaderState
Source§fn clone(&self) -> ShaderState
fn clone(&self) -> ShaderState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShaderState
impl Debug for ShaderState
Auto Trait Implementations§
impl Freeze for ShaderState
impl RefUnwindSafe for ShaderState
impl Send for ShaderState
impl Sync for ShaderState
impl Unpin for ShaderState
impl UnwindSafe for ShaderState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)