pub enum DescriptorSetLayoutCreationError {
OomError(OomError),
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
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.
RequirementNotMet
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 moresourceimpl 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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: 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
Converts to this type from the input type.
sourceimpl From<DescriptorSetLayoutCreationError> for GraphicsPipelineCreationError
impl From<DescriptorSetLayoutCreationError> for GraphicsPipelineCreationError
sourcefn from(err: DescriptorSetLayoutCreationError) -> Self
fn from(err: DescriptorSetLayoutCreationError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for DescriptorSetLayoutCreationError
impl From<VulkanError> for DescriptorSetLayoutCreationError
sourcefn from(error: VulkanError) -> Self
fn from(error: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<DescriptorSetLayoutCreationError> for DescriptorSetLayoutCreationError
impl PartialEq<DescriptorSetLayoutCreationError> for DescriptorSetLayoutCreationError
sourcefn eq(&self, other: &DescriptorSetLayoutCreationError) -> bool
fn eq(&self, other: &DescriptorSetLayoutCreationError) -> bool
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 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