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

Not enough memory.

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.

Using an anisotropy greater than 1.0 requires enabling the sampler_anisotropy feature when creating the device.

The requested anisotropy level exceeds the device's limits.

Fields of AnisotropyLimitExceeded

The value that was requested.

The maximum supported value.

The requested mip lod bias exceeds the device's limits.

Fields of MipLodBiasLimitExceeded

The value that was requested.

The maximum supported value.

Using MirrorClampToEdge requires enabling the VK_KHR_sampler_mirror_clamp_to_edge extension when creating the device.

Trait Implementations

impl Clone for SamplerCreationError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SamplerCreationError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for SamplerCreationError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Error for SamplerCreationError
[src]

This method is soft-deprecated. Read more

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

impl Display for SamplerCreationError
[src]

Formats the value using the given formatter. Read more

impl From<OomError> for SamplerCreationError
[src]

Performs the conversion.

Auto Trait Implementations