pub enum PipelineLayoutCreationError {
Show 20 variants
OomError(OomError),
MaxBoundDescriptorSetsExceeded {
provided: u32,
max_supported: u32,
},
MaxDescriptorSetSamplersExceeded {
provided: u32,
max_supported: u32,
},
MaxDescriptorSetUniformBuffersExceeded {
provided: u32,
max_supported: u32,
},
MaxDescriptorSetUniformBuffersDynamicExceeded {
provided: u32,
max_supported: u32,
},
MaxDescriptorSetStorageBuffersExceeded {
provided: u32,
max_supported: u32,
},
MaxDescriptorSetStorageBuffersDynamicExceeded {
provided: u32,
max_supported: u32,
},
MaxDescriptorSetSampledImagesExceeded {
provided: u32,
max_supported: u32,
},
MaxDescriptorSetStorageImagesExceeded {
provided: u32,
max_supported: u32,
},
MaxDescriptorSetInputAttachmentsExceeded {
provided: u32,
max_supported: u32,
},
MaxPerStageResourcesExceeded {
provided: u32,
max_supported: u32,
},
MaxPerStageDescriptorSamplersExceeded {
provided: u32,
max_supported: u32,
},
MaxPerStageDescriptorUniformBuffersExceeded {
provided: u32,
max_supported: u32,
},
MaxPerStageDescriptorStorageBuffersExceeded {
provided: u32,
max_supported: u32,
},
MaxPerStageDescriptorSampledImagesExceeded {
provided: u32,
max_supported: u32,
},
MaxPerStageDescriptorStorageImagesExceeded {
provided: u32,
max_supported: u32,
},
MaxPerStageDescriptorInputAttachmentsExceeded {
provided: u32,
max_supported: u32,
},
MaxPushConstantsSizeExceeded {
provided: u32,
max_supported: u32,
},
PushConstantRangesStageMultiple,
SetLayoutsPushDescriptorMultiple,
}
Expand description
Error that can happen when creating a pipeline layout.
Variants
OomError(OomError)
Not enough memory.
MaxBoundDescriptorSetsExceeded
The number of elements in set_layouts
is greater than the
max_bound_descriptor_sets
limit.
MaxDescriptorSetSamplersExceeded
The set_layouts
contain more DescriptorType::Sampler
,
DescriptorType::CombinedImageSampler
and DescriptorType::UniformTexelBuffer
descriptors than the
max_descriptor_set_samplers
limit.
MaxDescriptorSetUniformBuffersExceeded
The set_layouts
contain more DescriptorType::UniformBuffer
descriptors than the
max_descriptor_set_uniform_buffers
limit.
MaxDescriptorSetUniformBuffersDynamicExceeded
The set_layouts
contain more DescriptorType::UniformBufferDynamic
descriptors than the
max_descriptor_set_uniform_buffers_dynamic
limit.
MaxDescriptorSetStorageBuffersExceeded
The set_layouts
contain more DescriptorType::StorageBuffer
descriptors than the
max_descriptor_set_storage_buffers
limit.
MaxDescriptorSetStorageBuffersDynamicExceeded
The set_layouts
contain more DescriptorType::StorageBufferDynamic
descriptors than the
max_descriptor_set_storage_buffers_dynamic
limit.
MaxDescriptorSetSampledImagesExceeded
The set_layouts
contain more DescriptorType::SampledImage
and
DescriptorType::CombinedImageSampler
descriptors than the
max_descriptor_set_sampled_images
limit.
MaxDescriptorSetStorageImagesExceeded
The set_layouts
contain more DescriptorType::StorageImage
and
DescriptorType::StorageTexelBuffer
descriptors than the
max_descriptor_set_storage_images
limit.
MaxDescriptorSetInputAttachmentsExceeded
The set_layouts
contain more DescriptorType::InputAttachment
descriptors than the
max_descriptor_set_input_attachments
limit.
MaxPerStageResourcesExceeded
The set_layouts
contain more bound resources in a single stage than the
max_per_stage_resources
limit.
MaxPerStageDescriptorSamplersExceeded
The set_layouts
contain more DescriptorType::Sampler
and
DescriptorType::CombinedImageSampler
descriptors in a single stage than the
max_per_stage_descriptor_samplers
limit.
MaxPerStageDescriptorUniformBuffersExceeded
The set_layouts
contain more DescriptorType::UniformBuffer
and
DescriptorType::UniformBufferDynamic
descriptors in a single stage than the
max_per_stage_descriptor_uniform_buffers
limit.
MaxPerStageDescriptorStorageBuffersExceeded
The set_layouts
contain more DescriptorType::StorageBuffer
and
DescriptorType::StorageBufferDynamic
descriptors in a single stage than the
max_per_stage_descriptor_storage_buffers
limit.
MaxPerStageDescriptorSampledImagesExceeded
The set_layouts
contain more DescriptorType::SampledImage
,
DescriptorType::CombinedImageSampler
and DescriptorType::UniformTexelBuffer
descriptors in a single stage than the
max_per_stage_descriptor_sampled_images
limit.
MaxPerStageDescriptorStorageImagesExceeded
The set_layouts
contain more DescriptorType::StorageImage
and
DescriptorType::StorageTexelBuffer
descriptors in a single stage than the
max_per_stage_descriptor_storage_images
limit.
MaxPerStageDescriptorInputAttachmentsExceeded
The set_layouts
contain more DescriptorType::InputAttachment
descriptors in a single
stage than the
max_per_stage_descriptor_input_attachments
limit.
MaxPushConstantsSizeExceeded
An element in push_constant_ranges
has an offset + size
greater than the
max_push_constants_size
limit.
PushConstantRangesStageMultiple
A shader stage appears in multiple elements of push_constant_ranges
.
SetLayoutsPushDescriptorMultiple
Multiple elements of set_layouts
have push_descriptor
enabled.
Trait Implementations
sourceimpl Clone for PipelineLayoutCreationError
impl Clone for PipelineLayoutCreationError
sourcefn clone(&self) -> PipelineLayoutCreationError
fn clone(&self) -> PipelineLayoutCreationError
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 PipelineLayoutCreationError
impl Debug for PipelineLayoutCreationError
sourceimpl Display for PipelineLayoutCreationError
impl Display for PipelineLayoutCreationError
sourceimpl Error for PipelineLayoutCreationError
impl Error for PipelineLayoutCreationError
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<OomError> for PipelineLayoutCreationError
impl From<OomError> for PipelineLayoutCreationError
sourcefn from(err: OomError) -> PipelineLayoutCreationError
fn from(err: OomError) -> PipelineLayoutCreationError
Performs the conversion.
sourceimpl From<PipelineLayoutCreationError> for ComputePipelineCreationError
impl From<PipelineLayoutCreationError> for ComputePipelineCreationError
sourcefn from(err: PipelineLayoutCreationError) -> Self
fn from(err: PipelineLayoutCreationError) -> Self
Performs the conversion.
sourceimpl From<PipelineLayoutCreationError> for GraphicsPipelineCreationError
impl From<PipelineLayoutCreationError> for GraphicsPipelineCreationError
sourcefn from(err: PipelineLayoutCreationError) -> Self
fn from(err: PipelineLayoutCreationError) -> Self
Performs the conversion.
sourceimpl PartialEq<PipelineLayoutCreationError> for PipelineLayoutCreationError
impl PartialEq<PipelineLayoutCreationError> for PipelineLayoutCreationError
sourcefn eq(&self, other: &PipelineLayoutCreationError) -> bool
fn eq(&self, other: &PipelineLayoutCreationError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PipelineLayoutCreationError) -> bool
fn ne(&self, other: &PipelineLayoutCreationError) -> bool
This method tests for !=
.
impl Eq for PipelineLayoutCreationError
impl StructuralEq for PipelineLayoutCreationError
impl StructuralPartialEq for PipelineLayoutCreationError
Auto Trait Implementations
impl RefUnwindSafe for PipelineLayoutCreationError
impl Send for PipelineLayoutCreationError
impl Sync for PipelineLayoutCreationError
impl Unpin for PipelineLayoutCreationError
impl UnwindSafe for PipelineLayoutCreationError
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