pub enum DescriptorSetUpdateError {
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
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
Tried to write an image view with a 2D type and a 3D underlying image.
ImageViewDepthAndStencil
Tried to write an image view that has both the depth
and stencil
aspects.
ImageViewHasSamplerYcbcrConversion
Tried to write an image view with an attached sampler YCbCr conversion to a binding that does not support it.
ImageViewIsArrayed
Tried to write an image view of an arrayed type to a descriptor type that does not support it.
ImageViewIncompatibleSampler
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
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
A resource was missing a usage flag that was required.
SamplerHasSamplerYcbcrConversion
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
sourceimpl Clone for DescriptorSetUpdateError
impl Clone for DescriptorSetUpdateError
sourcefn clone(&self) -> DescriptorSetUpdateError
fn clone(&self) -> DescriptorSetUpdateError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DescriptorSetUpdateError
impl Debug for DescriptorSetUpdateError
sourceimpl Display for DescriptorSetUpdateError
impl Display for DescriptorSetUpdateError
sourceimpl Error for DescriptorSetUpdateError
impl Error for DescriptorSetUpdateError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DescriptorSetUpdateError> for DescriptorSetCreationError
impl From<DescriptorSetUpdateError> for DescriptorSetCreationError
sourcefn from(err: DescriptorSetUpdateError) -> Self
fn from(err: DescriptorSetUpdateError) -> Self
Performs the conversion.
impl Copy for DescriptorSetUpdateError
Auto Trait Implementations
impl RefUnwindSafe for DescriptorSetUpdateError
impl Send for DescriptorSetUpdateError
impl Sync for DescriptorSetUpdateError
impl Unpin for DescriptorSetUpdateError
impl UnwindSafe for DescriptorSetUpdateError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more