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_u: SamplerAddressMode,
address_mode_v: SamplerAddressMode,
address_mode_w: SamplerAddressMode,
},
SamplerYcbcrConversionInvalidReductionMode {
reduction_mode: SamplerReductionMode,
},
SamplerYcbcrConversionUnnormalizedCoordinatesEnabled,
UnnormalizedCoordinatesAnisotropyEnabled,
UnnormalizedCoordinatesCompareEnabled,
UnnormalizedCoordinatesFiltersNotEqual {
mag_filter: Filter,
min_filter: Filter,
},
UnnormalizedCoordinatesInvalidAddressMode {
address_mode_u: SamplerAddressMode,
address_mode_v: SamplerAddressMode,
},
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_u: SamplerAddressMode
address_mode_v: SamplerAddressMode
address_mode_w: SamplerAddressMode
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
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.