Struct rootvg_mesh::MeshUniforms
source · #[repr(C)]pub struct MeshUniforms {
pub offset: [f32; 2],
pub transform: [f32; 6],
pub has_transform: u32,
}Fields§
§offset: [f32; 2]The offset in logical points.
transform: [f32; 6]A 2d transform represented by a column-major 3 by 3 matrix, compressed down to 3 by 2.
Note that size is not included in the transform.
has_transform: u32Whether or not to apply the transform matrix. This is used to optimize
meshes with no transformations.
Note that size is not included in the transform.
By default this is set to 0 (false).
Implementations§
Trait Implementations§
source§impl Clone for MeshUniforms
impl Clone for MeshUniforms
source§fn clone(&self) -> MeshUniforms
fn clone(&self) -> MeshUniforms
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MeshUniforms
impl Debug for MeshUniforms
source§impl Default for MeshUniforms
impl Default for MeshUniforms
source§impl PartialEq for MeshUniforms
impl PartialEq for MeshUniforms
source§fn eq(&self, other: &MeshUniforms) -> bool
fn eq(&self, other: &MeshUniforms) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for MeshUniforms
impl Pod for MeshUniforms
impl StructuralPartialEq for MeshUniforms
Auto Trait Implementations§
impl Freeze for MeshUniforms
impl RefUnwindSafe for MeshUniforms
impl Send for MeshUniforms
impl Sync for MeshUniforms
impl Unpin for MeshUniforms
impl UnwindSafe for MeshUniforms
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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.