Enum vulkano::sampler::SamplerCreationError
source · [−]pub enum SamplerCreationError {
Show 18 variants
OomError(OomError),
TooManyObjects,
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
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.
RequirementNotMet
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
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl 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)>
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()