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 greater than 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]
impl Clone for SamplerCreationError
fn clone(&self) -> SamplerCreationError
[src]
fn clone(&self) -> SamplerCreationError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for SamplerCreationError
[src]
impl Debug for SamplerCreationError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for SamplerCreationError
[src]
impl PartialEq for SamplerCreationError
fn eq(&self, other: &SamplerCreationError) -> bool
[src]
fn eq(&self, other: &SamplerCreationError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SamplerCreationError) -> bool
[src]
fn ne(&self, other: &SamplerCreationError) -> bool
This method tests for !=
.
impl Error for SamplerCreationError
[src]
impl Error for SamplerCreationError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for SamplerCreationError
[src]
impl Display for SamplerCreationError
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<OomError> for SamplerCreationError
[src]
impl From<OomError> for SamplerCreationError
fn from(err: OomError) -> SamplerCreationError
[src]
fn from(err: OomError) -> SamplerCreationError
Performs the conversion.
Auto Trait Implementations
impl Send for SamplerCreationError
impl Send for SamplerCreationError
impl Sync for SamplerCreationError
impl Sync for SamplerCreationError