#[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: u32
Whether 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 duplicate 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
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,
Source§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
.