pub struct ResidentComponentGeometry {
pub component_index: usize,
pub width: u32,
pub height: u32,
pub sampling: ResidentSampling,
}Expand description
Per-component geometry shared by resident handoff descriptors.
Fields§
§component_index: usizeComponent index in source/component order.
width: u32Native component width in samples.
height: u32Native component height in samples.
sampling: ResidentSamplingComponent sampling factors.
Implementations§
Source§impl ResidentComponentGeometry
impl ResidentComponentGeometry
Sourcepub const fn new(
component_index: usize,
width: u32,
height: u32,
sampling: ResidentSampling,
) -> Result<Self, ResidentHandoffError>
pub const fn new( component_index: usize, width: u32, height: u32, sampling: ResidentSampling, ) -> Result<Self, ResidentHandoffError>
Build component geometry with nonzero dimensions and sampling.
Trait Implementations§
Source§impl Clone for ResidentComponentGeometry
impl Clone for ResidentComponentGeometry
Source§fn clone(&self) -> ResidentComponentGeometry
fn clone(&self) -> ResidentComponentGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResidentComponentGeometry
Source§impl Debug for ResidentComponentGeometry
impl Debug for ResidentComponentGeometry
impl Eq for ResidentComponentGeometry
Source§impl PartialEq for ResidentComponentGeometry
impl PartialEq for ResidentComponentGeometry
Source§fn eq(&self, other: &ResidentComponentGeometry) -> bool
fn eq(&self, other: &ResidentComponentGeometry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResidentComponentGeometry
Auto Trait Implementations§
impl Freeze for ResidentComponentGeometry
impl RefUnwindSafe for ResidentComponentGeometry
impl Send for ResidentComponentGeometry
impl Sync for ResidentComponentGeometry
impl Unpin for ResidentComponentGeometry
impl UnsafeUnpin for ResidentComponentGeometry
impl UnwindSafe for ResidentComponentGeometry
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