#[repr(C)]pub struct FrameOptionsWgpu {
pub clear_history: bool,
pub frame_direction: i32,
pub rotation: u32,
pub total_subframes: u32,
pub current_subframe: u32,
pub aspect_ratio: f32,
pub frames_per_second: f32,
pub frametime_delta: u32,
}
Expand description
Options for each frame.
Fields§
§clear_history: bool
Whether or not to clear the history buffers.
frame_direction: i32
The direction of rendering. -1 indicates that the frames are played in reverse order.
rotation: u32
The rotation of the output. 0 = 0deg, 1 = 90deg, 2 = 180deg, 3 = 270deg.
total_subframes: u32
The total number of subframes ran. Default is 1.
current_subframe: u32
The current sub frame. Default is 1.
aspect_ratio: f32
The expected aspect ratio of the source image.
This can differ from the actual aspect ratio of the source image.
The default is 0 which will automatically infer the ratio from the source image.
frames_per_second: f32
The original frames per second of the source. Default is 1.
frametime_delta: u32
Time in milliseconds between the current and previous frame. Default is 0.
Trait Implementations§
Source§impl Clone for FrameOptionsWgpu
impl Clone for FrameOptionsWgpu
Source§fn clone(&self) -> FrameOptionsWgpu
fn clone(&self) -> FrameOptionsWgpu
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 FrameOptionsWgpu
impl Debug for FrameOptionsWgpu
Auto Trait Implementations§
impl Freeze for FrameOptionsWgpu
impl RefUnwindSafe for FrameOptionsWgpu
impl Send for FrameOptionsWgpu
impl Sync for FrameOptionsWgpu
impl Unpin for FrameOptionsWgpu
impl UnwindSafe for FrameOptionsWgpu
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