#[repr(C)]pub struct ModelUniforms {
pub model: [[f32; 4]; 4],
}Expand description
Per-draw-call model matrix pushed at buffer(2) before each draw.
Fields§
§model: [[f32; 4]; 4]Model-to-world matrix (column-major).
Trait Implementations§
Source§impl Clone for ModelUniforms
impl Clone for ModelUniforms
Source§fn clone(&self) -> ModelUniforms
fn clone(&self) -> ModelUniforms
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelUniforms
impl NoUninit for ModelUniforms
Auto Trait Implementations§
impl Freeze for ModelUniforms
impl RefUnwindSafe for ModelUniforms
impl Send for ModelUniforms
impl Sync for ModelUniforms
impl Unpin for ModelUniforms
impl UnsafeUnpin for ModelUniforms
impl UnwindSafe for ModelUniforms
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more