pub enum SamplerYcbcrConversionCreationError {
OomError(OomError),
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
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.
RequirementNotMet
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 moresourceimpl 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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: 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
Converts to this type from the input type.
sourceimpl From<VulkanError> for SamplerYcbcrConversionCreationError
impl From<VulkanError> for SamplerYcbcrConversionCreationError
sourcefn from(err: VulkanError) -> SamplerYcbcrConversionCreationError
fn from(err: VulkanError) -> SamplerYcbcrConversionCreationError
Converts to this type from the input type.
sourceimpl PartialEq<SamplerYcbcrConversionCreationError> for SamplerYcbcrConversionCreationError
impl PartialEq<SamplerYcbcrConversionCreationError> for SamplerYcbcrConversionCreationError
sourcefn eq(&self, other: &SamplerYcbcrConversionCreationError) -> bool
fn eq(&self, other: &SamplerYcbcrConversionCreationError) -> bool
impl Eq for SamplerYcbcrConversionCreationError
impl StructuralEq for SamplerYcbcrConversionCreationError
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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