pub enum DescriptorSetUpdateError {
Show 13 variants RequirementNotMet { binding: u32, index: u32, required_for: &'static str, requires_one_of: RequiresOneOf, }, ArrayIndexOutOfBounds { binding: u32, available_count: u32, written_count: u32, }, ImageView2dFrom3d { binding: u32, index: u32, }, ImageViewDepthAndStencil { binding: u32, index: u32, }, ImageViewHasSamplerYcbcrConversion { binding: u32, index: u32, }, ImageViewIsArrayed { binding: u32, index: u32, }, ImageViewIncompatibleSampler { binding: u32, index: u32, error: SamplerImageViewIncompatibleError, }, ImageViewNotIdentitySwizzled { binding: u32, index: u32, }, IncompatibleDescriptorType { binding: u32, }, InvalidBinding { binding: u32, }, MissingUsage { binding: u32, index: u32, usage: &'static str, }, SamplerHasSamplerYcbcrConversion { binding: u32, index: u32, }, SamplerIsImmutable { binding: u32, },
}

Variants

RequirementNotMet

Fields

binding: u32
index: u32
required_for: &'static str
requires_one_of: RequiresOneOf

ArrayIndexOutOfBounds

Fields

binding: u32

Binding that is affected.

available_count: u32

Number of available descriptors in the binding.

written_count: u32

The number of descriptors that were in the update.

Tried to write more elements than were available in a binding.

ImageView2dFrom3d

Fields

binding: u32
index: u32

Tried to write an image view with a 2D type and a 3D underlying image.

ImageViewDepthAndStencil

Fields

binding: u32
index: u32

Tried to write an image view that has both the depth and stencil aspects.

ImageViewHasSamplerYcbcrConversion

Fields

binding: u32
index: u32

Tried to write an image view with an attached sampler YCbCr conversion to a binding that does not support it.

ImageViewIsArrayed

Fields

binding: u32
index: u32

Tried to write an image view of an arrayed type to a descriptor type that does not support it.

ImageViewIncompatibleSampler

Fields

binding: u32
index: u32

Tried to write an image view that was not compatible with the sampler that was provided as part of the update or immutably in the layout.

ImageViewNotIdentitySwizzled

Fields

binding: u32
index: u32

Tried to write an image view to a descriptor type that requires it to be identity swizzled, but it was not.

IncompatibleDescriptorType

Fields

binding: u32

Tried to write an element type that was not compatible with the descriptor type in the layout.

InvalidBinding

Fields

binding: u32

Tried to write to a nonexistent binding.

MissingUsage

Fields

binding: u32
index: u32
usage: &'static str

A resource was missing a usage flag that was required.

SamplerHasSamplerYcbcrConversion

Fields

binding: u32
index: u32

Tried to write a sampler that has an attached sampler YCbCr conversion.

SamplerIsImmutable

Fields

binding: u32

Tried to write a sampler to a binding with immutable samplers.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.