pub enum SamplerYcbcrConversionCreationError {
OomError(OomError),
FeatureNotEnabled {
feature: &'static str,
reason: &'static str,
},
CubicFilterNotSupported,
FormatMissing,
FormatNotUnorm,
FormatNotSupported,
FormatChromaOffsetNotSupported,
FormatInvalidComponentMapping,
FormatForceExplicitReconstructionNotSupported,
FormatLinearFilterNotSupported,
YcbcrModelInvalidComponentMapping,
YcbcrRangeFormatNotEnoughBits,
}
Expand description
Error that can happen when creating a SamplerYcbcrConversion
.
Variants
OomError(OomError)
Not enough memory.
FeatureNotEnabled
CubicFilterNotSupported
The Cubic
filter was specified.
FormatMissing
No format was specified when one was required.
FormatNotUnorm
The format has a color type other than UNORM
.
FormatNotSupported
The format does not support sampler YCbCr conversion.
FormatChromaOffsetNotSupported
The format does not support the chosen chroma offsets.
FormatInvalidComponentMapping
The component mapping was not valid for use with the chosen format.
FormatForceExplicitReconstructionNotSupported
The format does not support force_explicit_reconstruction
.
FormatLinearFilterNotSupported
The format does not support the Linear
filter.
YcbcrModelInvalidComponentMapping
The component mapping was not valid for use with the chosen YCbCr model.
YcbcrRangeFormatNotEnoughBits
For the chosen ycbcr_range
, the R, G or B components being read from the format
do not
have the minimum number of required bits.
Trait Implementations
sourceimpl Clone for SamplerYcbcrConversionCreationError
impl Clone for SamplerYcbcrConversionCreationError
sourcefn clone(&self) -> SamplerYcbcrConversionCreationError
fn clone(&self) -> SamplerYcbcrConversionCreationError
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 Error for SamplerYcbcrConversionCreationError
impl Error for SamplerYcbcrConversionCreationError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<OomError> for SamplerYcbcrConversionCreationError
impl From<OomError> for SamplerYcbcrConversionCreationError
sourcefn from(err: OomError) -> SamplerYcbcrConversionCreationError
fn from(err: OomError) -> SamplerYcbcrConversionCreationError
Performs the conversion.
sourceimpl PartialEq<SamplerYcbcrConversionCreationError> for SamplerYcbcrConversionCreationError
impl PartialEq<SamplerYcbcrConversionCreationError> for SamplerYcbcrConversionCreationError
sourcefn eq(&self, other: &SamplerYcbcrConversionCreationError) -> bool
fn eq(&self, other: &SamplerYcbcrConversionCreationError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SamplerYcbcrConversionCreationError) -> bool
fn ne(&self, other: &SamplerYcbcrConversionCreationError) -> bool
This method tests for !=
.
impl StructuralPartialEq for SamplerYcbcrConversionCreationError
Auto Trait Implementations
impl RefUnwindSafe for SamplerYcbcrConversionCreationError
impl Send for SamplerYcbcrConversionCreationError
impl Sync for SamplerYcbcrConversionCreationError
impl Unpin for SamplerYcbcrConversionCreationError
impl UnwindSafe for SamplerYcbcrConversionCreationError
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more