pub struct UniformInputs<'a> {
pub mvp: &'a [f32; 16],
pub frame_count: u32,
pub rotation: u32,
pub total_subframes: u32,
pub current_subframe: u32,
pub frame_direction: i32,
pub aspect_ratio: f32,
pub frames_per_second: f32,
pub frametime_delta: u32,
pub framebuffer_size: Size<u32>,
pub viewport_size: Size<u32>,
}
Expand description
Inputs to binding semantics
Fields§
§mvp: &'a [f32; 16]
MVP
frame_count: u32
FrameCount
rotation: u32
Rotation
total_subframes: u32
TotalSubFrames
current_subframe: u32
CurrentSubFrame
frame_direction: i32
FrameDirection
aspect_ratio: f32
OriginalAspectRatio (need to normalize)
frames_per_second: f32
OriginalFPS
frametime_delta: u32
FrameTimeDelta
framebuffer_size: Size<u32>
OutputSize
viewport_size: Size<u32>
FinalViewportSize
Auto Trait Implementations§
impl<'a> Freeze for UniformInputs<'a>
impl<'a> RefUnwindSafe for UniformInputs<'a>
impl<'a> Send for UniformInputs<'a>
impl<'a> Sync for UniformInputs<'a>
impl<'a> Unpin for UniformInputs<'a>
impl<'a> UnwindSafe for UniformInputs<'a>
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> 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