pub struct SequenceConfig {
pub image: ImageConfig,
pub timebase_nanoseconds: u64,
pub max_in_flight: u8,
}Expand description
Fixed output and readback limits for one deterministic frame sequence.
Fields§
§image: ImageConfigDimensions shared by every frame.
timebase_nanoseconds: u64Nanoseconds represented by one timestamp tick.
max_in_flight: u8Bounded number of submitted frames awaiting readback.
Implementations§
Source§impl SequenceConfig
impl SequenceConfig
Sourcepub fn at_fps(
image: ImageConfig,
frames_per_second: u32,
max_in_flight: u8,
) -> Result<Self, RenderError>
pub fn at_fps( image: ImageConfig, frames_per_second: u32, max_in_flight: u8, ) -> Result<Self, RenderError>
Creates a nanosecond timebase for a fixed integer frame rate.
§Errors
Rejects zero frame rates and rates that do not map to a positive integral nanosecond interval.
Trait Implementations§
Source§impl Clone for SequenceConfig
impl Clone for SequenceConfig
impl Copy for SequenceConfig
Source§impl Debug for SequenceConfig
impl Debug for SequenceConfig
impl Eq for SequenceConfig
Source§impl PartialEq for SequenceConfig
impl PartialEq for SequenceConfig
impl StructuralPartialEq for SequenceConfig
Auto Trait Implementations§
impl Freeze for SequenceConfig
impl RefUnwindSafe for SequenceConfig
impl Send for SequenceConfig
impl Sync for SequenceConfig
impl Unpin for SequenceConfig
impl UnsafeUnpin for SequenceConfig
impl UnwindSafe for SequenceConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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