Enum vulkano::sampler::SamplerCreationError
[−]
[src]
pub enum SamplerCreationError { OomError(OomError), TooManyObjects, SamplerAnisotropyFeatureNotEnabled, AnisotropyLimitExceeded { requested: f32, maximum: f32, }, MipLodBiasLimitExceeded { requested: f32, maximum: f32, }, SamplerMirrorClampToEdgeExtensionNotEnabled, }
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.
SamplerAnisotropyFeatureNotEnabled
Using an anisotropy superior to 1.0 requires enabling the sampler_anisotropy
feature when
creating the device.
AnisotropyLimitExceeded
The requested anisotropy level exceeds the device's limits.
Fields of AnisotropyLimitExceeded
requested: f32 | The value that was requested. |
maximum: f32 | The maximum supported value. |
MipLodBiasLimitExceeded
The requested mip lod bias exceeds the device's limits.
Fields of MipLodBiasLimitExceeded
requested: f32 | The value that was requested. |
maximum: f32 | The maximum supported value. |
SamplerMirrorClampToEdgeExtensionNotEnabled
Using MirrorClampToEdge
requires enabling the VK_KHR_sampler_mirror_clamp_to_edge
extension when creating the device.
Trait Implementations
impl Clone for SamplerCreationError
[src]
fn clone(&self) -> SamplerCreationError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SamplerCreationError
[src]
impl PartialEq for SamplerCreationError
[src]
fn eq(&self, __arg_0: &SamplerCreationError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SamplerCreationError) -> bool
[src]
This method tests for !=
.
impl Error for SamplerCreationError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl Display for SamplerCreationError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl From<OomError> for SamplerCreationError
[src]
fn from(err: OomError) -> SamplerCreationError
[src]
Performs the conversion.
impl From<Error> for SamplerCreationError
[src]
fn from(err: Error) -> SamplerCreationError
[src]
Performs the conversion.