[][src]Enum vulkano::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 From<OomError> for SamplerCreationError[src]

impl Clone for SamplerCreationError[src]

impl PartialEq<SamplerCreationError> for SamplerCreationError[src]

impl Display for SamplerCreationError[src]

impl Debug for SamplerCreationError[src]

impl StructuralPartialEq for SamplerCreationError[src]

impl Error for SamplerCreationError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Content for T[src]

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

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> 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]