#[repr(C, packed(1))]pub struct TexturePrimitive {
pub transform: [f32; 6],
pub mask_head: i32,
pub opacity: f32,
pub is_premultiplied: u32,
pub _padding: [u32; 3],
}Fields§
§transform: [f32; 6]A 2x3 column-major matrix, transform a vertex position to the texture position
mask_head: i32The index of the head mask layer.
opacity: f32opacity
is_premultiplied: u32The index of the texture. 1 for premultiplied alpha, 0 for non-premultiplied alpha
_padding: [u32; 3]dummy for align
Trait Implementations§
Source§impl AsBytes for TexturePrimitive
impl AsBytes for TexturePrimitive
Source§impl Clone for TexturePrimitive
impl Clone for TexturePrimitive
Source§fn clone(&self) -> TexturePrimitive
fn clone(&self) -> TexturePrimitive
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 PartialEq for TexturePrimitive
impl PartialEq for TexturePrimitive
impl Copy for TexturePrimitive
impl StructuralPartialEq for TexturePrimitive
Auto Trait Implementations§
impl Freeze for TexturePrimitive
impl RefUnwindSafe for TexturePrimitive
impl Send for TexturePrimitive
impl Sync for TexturePrimitive
impl Unpin for TexturePrimitive
impl UnwindSafe for TexturePrimitive
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more