[][src]Enum nannou::vk::sampler::SamplerCreationError

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 Display for SamplerCreationError[src]

impl PartialEq<SamplerCreationError> for SamplerCreationError[src]

impl From<OomError> for SamplerCreationError[src]

impl From<Error> for SamplerCreationError[src]

impl Error for SamplerCreationError[src]

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

impl Debug for SamplerCreationError[src]

impl Clone for SamplerCreationError[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Style for T where
    T: Any + Debug + PartialEq<T>, 
[src]

impl<T> Content for T[src]

impl<T> SafeBorrow<T> for T[src]

impl<T> Erased for T

impl<S> FromSample<S> for S[src]

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.