Enum vulkano::sampler::SamplerCreationError
source · [−]pub enum SamplerCreationError {
Show 19 variants
OomError(OomError),
TooManyObjects,
ExtensionNotEnabled {
extension: &'static str,
reason: &'static str,
},
FeatureNotEnabled {
feature: &'static str,
reason: &'static str,
},
AnisotropyInvalidFilter {
mag_filter: Filter,
min_filter: Filter,
},
CompareInvalidReductionMode {
reduction_mode: SamplerReductionMode,
},
MaxSamplerAnisotropyExceeded {
requested: f32,
maximum: f32,
},
MaxSamplerLodBiasExceeded {
requested: f32,
maximum: f32,
},
SamplerYcbcrConversionAnisotropyEnabled,
SamplerYcbcrConversionChromaFilterMismatch {
chroma_filter: Filter,
mag_filter: Filter,
min_filter: Filter,
},
SamplerYcbcrConversionInvalidAddressMode {
address_mode: [SamplerAddressMode; 3],
},
SamplerYcbcrConversionInvalidReductionMode {
reduction_mode: SamplerReductionMode,
},
SamplerYcbcrConversionUnnormalizedCoordinatesEnabled,
UnnormalizedCoordinatesAnisotropyEnabled,
UnnormalizedCoordinatesCompareEnabled,
UnnormalizedCoordinatesFiltersNotEqual {
mag_filter: Filter,
min_filter: Filter,
},
UnnormalizedCoordinatesInvalidAddressMode {
address_mode: [SamplerAddressMode; 2],
},
UnnormalizedCoordinatesInvalidMipmapMode {
mipmap_mode: SamplerMipmapMode,
},
UnnormalizedCoordinatesNonzeroLod {
lod: RangeInclusive<f32>,
},
}
Expand description
Error that can happen when creating an instance.
Variants
OomError(OomError)
Not enough memory.
TooManyObjects
Too many sampler objects have been created. You must destroy some before creating new ones. Note the specs guarantee that at least 4000 samplers can exist simultaneously.
ExtensionNotEnabled
FeatureNotEnabled
AnisotropyInvalidFilter
Anisotropy was enabled with an invalid filter.
CompareInvalidReductionMode
Fields
reduction_mode: SamplerReductionMode
Depth comparison was enabled with an invalid reduction mode.
MaxSamplerAnisotropyExceeded
The requested anisotropy level exceeds the device’s limits.
MaxSamplerLodBiasExceeded
The requested mip lod bias exceeds the device’s limits.
SamplerYcbcrConversionAnisotropyEnabled
Sampler YCbCr conversion was enabled together with anisotropy.
SamplerYcbcrConversionChromaFilterMismatch
Sampler YCbCr conversion was enabled, and its format does not support
sampled_image_ycbcr_conversion_separate_reconstruction_filter
, but mag_filter
or
min_filter
did not match the conversion’s chroma_filter
.
SamplerYcbcrConversionInvalidAddressMode
Fields
address_mode: [SamplerAddressMode; 3]
Sampler YCbCr conversion was enabled, but the address mode for u
, v
or w
was
something other than ClampToEdge
.
SamplerYcbcrConversionInvalidReductionMode
Fields
reduction_mode: SamplerReductionMode
Sampler YCbCr conversion was enabled, but the reduction mode was something other than
WeightedAverage
.
SamplerYcbcrConversionUnnormalizedCoordinatesEnabled
Sampler YCbCr conversion was enabled together with unnormalized coordinates.
UnnormalizedCoordinatesAnisotropyEnabled
Unnormalized coordinates were enabled together with anisotropy.
UnnormalizedCoordinatesCompareEnabled
Unnormalized coordinates were enabled together with depth comparison.
UnnormalizedCoordinatesFiltersNotEqual
Unnormalized coordinates were enabled, but the min and mag filters were not equal.
UnnormalizedCoordinatesInvalidAddressMode
Fields
address_mode: [SamplerAddressMode; 2]
Unnormalized coordinates were enabled, but the address mode for u
or v
was something
other than ClampToEdge
or ClampToBorder
.
UnnormalizedCoordinatesInvalidMipmapMode
Fields
mipmap_mode: SamplerMipmapMode
Unnormalized coordinates were enabled, but the mipmap mode was not Nearest
.
UnnormalizedCoordinatesNonzeroLod
Fields
lod: RangeInclusive<f32>
Unnormalized coordinates were enabled, but the LOD range was not zero.
Trait Implementations
sourceimpl Clone for SamplerCreationError
impl Clone for SamplerCreationError
sourcefn clone(&self) -> SamplerCreationError
fn clone(&self) -> SamplerCreationError
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 SamplerCreationError
impl Debug for SamplerCreationError
sourceimpl Display for SamplerCreationError
impl Display for SamplerCreationError
sourceimpl Error for SamplerCreationError
impl Error for SamplerCreationError
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 SamplerCreationError
impl From<OomError> for SamplerCreationError
sourceimpl PartialEq<SamplerCreationError> for SamplerCreationError
impl PartialEq<SamplerCreationError> for SamplerCreationError
sourcefn eq(&self, other: &SamplerCreationError) -> bool
fn eq(&self, other: &SamplerCreationError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SamplerCreationError) -> bool
fn ne(&self, other: &SamplerCreationError) -> bool
This method tests for !=
.
impl StructuralPartialEq for SamplerCreationError
Auto Trait Implementations
impl RefUnwindSafe for SamplerCreationError
impl Send for SamplerCreationError
impl Sync for SamplerCreationError
impl Unpin for SamplerCreationError
impl UnwindSafe for SamplerCreationError
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