#[repr(C)]pub struct FrameOptionsVulkan {
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: boolWhether or not to clear the history buffers.
frame_direction: i32The direction of rendering. -1 indicates that the frames are played in reverse order.
rotation: u32The rotation of the output. 0 = 0deg, 1 = 90deg, 2 = 180deg, 3 = 270deg.
total_subframes: u32The total number of subframes ran. Default is 1.
current_subframe: u32The current sub frame. Default is 1.
aspect_ratio: f32The 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: f32The original frames per second of the source. Default is 1.
frametime_delta: u32Time in milliseconds between the current and previous frame. Default is 0.
Trait Implementations§
Source§impl Clone for FrameOptionsVulkan
impl Clone for FrameOptionsVulkan
Source§fn clone(&self) -> FrameOptionsVulkan
fn clone(&self) -> FrameOptionsVulkan
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 FrameOptionsVulkan
impl Debug for FrameOptionsVulkan
Auto Trait Implementations§
impl Freeze for FrameOptionsVulkan
impl RefUnwindSafe for FrameOptionsVulkan
impl Send for FrameOptionsVulkan
impl Sync for FrameOptionsVulkan
impl Unpin for FrameOptionsVulkan
impl UnwindSafe for FrameOptionsVulkan
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