#[repr(i32)]
pub enum SamplerYcbcrModelConversion {
RgbIdentity,
YcbcrIdentity,
Ycbcr709,
Ycbcr601,
Ycbcr2020,
}
Expand description
The conversion between the color model of the source image and the color model of the shader.
Variants
RgbIdentity
The input values are already in the shader’s model, and are passed through unmodified.
YcbcrIdentity
The input values are only range expanded, no other modifications are done.
Ycbcr709
The input values are converted according to the ITU-R BT.709 standard.
Ycbcr601
The input values are converted according to the ITU-R BT.601 standard.
Ycbcr2020
The input values are converted according to the ITU-R BT.2020 standard.
Trait Implementations
sourceimpl Clone for SamplerYcbcrModelConversion
impl Clone for SamplerYcbcrModelConversion
sourcefn clone(&self) -> SamplerYcbcrModelConversion
fn clone(&self) -> SamplerYcbcrModelConversion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SamplerYcbcrModelConversion
impl Debug for SamplerYcbcrModelConversion
sourceimpl From<SamplerYcbcrModelConversion> for SamplerYcbcrModelConversion
impl From<SamplerYcbcrModelConversion> for SamplerYcbcrModelConversion
sourcefn from(val: SamplerYcbcrModelConversion) -> Self
fn from(val: SamplerYcbcrModelConversion) -> Self
Performs the conversion.
sourceimpl Hash for SamplerYcbcrModelConversion
impl Hash for SamplerYcbcrModelConversion
impl Copy for SamplerYcbcrModelConversion
impl Eq for SamplerYcbcrModelConversion
impl StructuralEq for SamplerYcbcrModelConversion
impl StructuralPartialEq for SamplerYcbcrModelConversion
Auto Trait Implementations
impl RefUnwindSafe for SamplerYcbcrModelConversion
impl Send for SamplerYcbcrModelConversion
impl Sync for SamplerYcbcrModelConversion
impl Unpin for SamplerYcbcrModelConversion
impl UnwindSafe for SamplerYcbcrModelConversion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more