#[repr(C)]pub struct TextureInstance {
pub position: [f32; 2],
pub scale: [f32; 2],
pub rotation: f32,
pub layer: u32,
pub texture_position: [f32; 2],
pub texture_scale: [f32; 2],
}Fields§
§position: [f32; 2]§scale: [f32; 2]§rotation: f32§layer: u32§texture_position: [f32; 2]§texture_scale: [f32; 2]Trait Implementations§
Source§impl Clone for TextureInstance
impl Clone for TextureInstance
impl Copy for TextureInstance
Source§impl Debug for TextureInstance
impl Debug for TextureInstance
impl Pod for TextureInstance
Source§impl Vertex<6> for TextureInstance
impl Vertex<6> for TextureInstance
const STEP_MODE: VertexStepMode = VertexStepMode::Instance
const ATTRIBS: [VertexAttribute; 6]
fn descriptor<'a>() -> VertexBufferLayout<'a>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for TextureInstance
impl RefUnwindSafe for TextureInstance
impl Send for TextureInstance
impl Sync for TextureInstance
impl Unpin for TextureInstance
impl UnsafeUnpin for TextureInstance
impl UnwindSafe for TextureInstance
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Interleave for Twhere
T: Pod,
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