pub enum DescriptorSetLayoutCreationError {
OomError(OomError),
ExtensionNotEnabled {
extension: &'static str,
reason: &'static str,
},
FeatureNotEnabled {
feature: &'static str,
reason: &'static str,
},
ImmutableSamplersCountMismatch {
binding_num: u32,
sampler_count: u32,
descriptor_count: u32,
},
ImmutableSamplersDescriptorTypeIncompatible {
binding_num: u32,
},
MaxPushDescriptorsExceeded {
provided: u32,
max_supported: u32,
},
PushDescriptorDescriptorTypeIncompatible {
binding_num: u32,
},
PushDescriptorVariableDescriptorCount {
binding_num: u32,
},
VariableDescriptorCountBindingNotHighest {
binding_num: u32,
highest_binding_num: u32,
},
VariableDescriptorCountDescriptorTypeIncompatible {
binding_num: u32,
},
}
Expand description
Error related to descriptor set layout.
Variants
OomError(OomError)
Out of Memory.
ExtensionNotEnabled
FeatureNotEnabled
ImmutableSamplersCountMismatch
A binding includes immutable samplers but their number differs from descriptor_count
.
ImmutableSamplersDescriptorTypeIncompatible
Fields
binding_num: u32
A binding includes immutable samplers but it has an incompatible descriptor_type
.
MaxPushDescriptorsExceeded
More descriptors were provided in all bindings than the
max_push_descriptors
limit.
PushDescriptorDescriptorTypeIncompatible
Fields
binding_num: u32
push_descriptor
is enabled, but a binding has an incompatible descriptor_type
.
PushDescriptorVariableDescriptorCount
Fields
binding_num: u32
push_descriptor
is enabled, but a binding has variable_descriptor_count
enabled.
VariableDescriptorCountBindingNotHighest
A binding has variable_descriptor_count
enabled, but it is not the highest-numbered
binding.
VariableDescriptorCountDescriptorTypeIncompatible
Fields
binding_num: u32
A binding has variable_descriptor_count
enabled, but it has an incompatible
descriptor_type
.
Trait Implementations
sourceimpl Clone for DescriptorSetLayoutCreationError
impl Clone for DescriptorSetLayoutCreationError
sourcefn clone(&self) -> DescriptorSetLayoutCreationError
fn clone(&self) -> DescriptorSetLayoutCreationError
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 Error for DescriptorSetLayoutCreationError
impl Error for DescriptorSetLayoutCreationError
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
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<DescriptorSetLayoutCreationError> for ComputePipelineCreationError
impl From<DescriptorSetLayoutCreationError> for ComputePipelineCreationError
sourcefn from(err: DescriptorSetLayoutCreationError) -> Self
fn from(err: DescriptorSetLayoutCreationError) -> Self
Performs the conversion.
sourceimpl From<DescriptorSetLayoutCreationError> for GraphicsPipelineCreationError
impl From<DescriptorSetLayoutCreationError> for GraphicsPipelineCreationError
sourcefn from(err: DescriptorSetLayoutCreationError) -> Self
fn from(err: DescriptorSetLayoutCreationError) -> Self
Performs the conversion.
sourceimpl PartialEq<DescriptorSetLayoutCreationError> for DescriptorSetLayoutCreationError
impl PartialEq<DescriptorSetLayoutCreationError> for DescriptorSetLayoutCreationError
sourcefn eq(&self, other: &DescriptorSetLayoutCreationError) -> bool
fn eq(&self, other: &DescriptorSetLayoutCreationError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DescriptorSetLayoutCreationError) -> bool
fn ne(&self, other: &DescriptorSetLayoutCreationError) -> bool
This method tests for !=
.
impl Eq for DescriptorSetLayoutCreationError
impl StructuralEq for DescriptorSetLayoutCreationError
impl StructuralPartialEq for DescriptorSetLayoutCreationError
Auto Trait Implementations
impl RefUnwindSafe for DescriptorSetLayoutCreationError
impl Send for DescriptorSetLayoutCreationError
impl Sync for DescriptorSetLayoutCreationError
impl Unpin for DescriptorSetLayoutCreationError
impl UnwindSafe for DescriptorSetLayoutCreationError
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