pub enum DescriptorDescSupersetError {
ArrayTooSmall {
len: u32,
required: u32,
},
TypeMismatch,
MutabilityRequired,
ShaderStagesNotSuperset,
DimensionsMismatch {
provided: DescriptorImageDescDimensions,
expected: DescriptorImageDescDimensions,
},
FormatMismatch {
provided: Option<Format>,
expected: Format,
},
MultisampledMismatch {
provided: bool,
expected: bool,
},
IncompatibleArrayLayers {
provided: DescriptorImageDescArray,
required: DescriptorImageDescArray,
},
}
Expand description
Error when checking whether a descriptor is a superset of another one.
Variants
ArrayTooSmall
The number of array elements of the descriptor is smaller than expected.
TypeMismatch
The descriptor type doesn’t match the type of the other descriptor.
MutabilityRequired
The descriptor is marked as read-only, but the other is not.
ShaderStagesNotSuperset
The shader stages are not a superset of one another.
DimensionsMismatch
FormatMismatch
MultisampledMismatch
IncompatibleArrayLayers
Trait Implementations
sourceimpl Clone for DescriptorDescSupersetError
impl Clone for DescriptorDescSupersetError
sourcefn clone(&self) -> DescriptorDescSupersetError
fn clone(&self) -> DescriptorDescSupersetError
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 moresourceimpl Debug for DescriptorDescSupersetError
impl Debug for DescriptorDescSupersetError
sourceimpl Display for DescriptorDescSupersetError
impl Display for DescriptorDescSupersetError
sourceimpl Error for DescriptorDescSupersetError
impl Error for DescriptorDescSupersetError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · 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
sourceimpl From<ShaderStagesSupersetError> for DescriptorDescSupersetError
impl From<ShaderStagesSupersetError> for DescriptorDescSupersetError
sourcefn from(err: ShaderStagesSupersetError) -> DescriptorDescSupersetError
fn from(err: ShaderStagesSupersetError) -> DescriptorDescSupersetError
Converts to this type from the input type.
sourceimpl PartialEq<DescriptorDescSupersetError> for DescriptorDescSupersetError
impl PartialEq<DescriptorDescSupersetError> for DescriptorDescSupersetError
sourcefn eq(&self, other: &DescriptorDescSupersetError) -> bool
fn eq(&self, other: &DescriptorDescSupersetError) -> bool
impl Eq for DescriptorDescSupersetError
impl StructuralEq for DescriptorDescSupersetError
impl StructuralPartialEq for DescriptorDescSupersetError
Auto Trait Implementations
impl RefUnwindSafe for DescriptorDescSupersetError
impl Send for DescriptorDescSupersetError
impl Sync for DescriptorDescSupersetError
impl Unpin for DescriptorDescSupersetError
impl UnwindSafe for DescriptorDescSupersetError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.