logo
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

Fields

provided: u32
max_supported: u32

The number of elements in set_layouts is greater than the max_bound_descriptor_sets limit.

MaxDescriptorSetSamplersExceeded

Fields

provided: u32
max_supported: u32

MaxDescriptorSetUniformBuffersExceeded

Fields

provided: u32
max_supported: u32

The set_layouts contain more DescriptorType::UniformBuffer descriptors than the max_descriptor_set_uniform_buffers limit.

MaxDescriptorSetUniformBuffersDynamicExceeded

Fields

provided: u32
max_supported: u32

The set_layouts contain more DescriptorType::UniformBufferDynamic descriptors than the max_descriptor_set_uniform_buffers_dynamic limit.

MaxDescriptorSetStorageBuffersExceeded

Fields

provided: u32
max_supported: u32

The set_layouts contain more DescriptorType::StorageBuffer descriptors than the max_descriptor_set_storage_buffers limit.

MaxDescriptorSetStorageBuffersDynamicExceeded

Fields

provided: u32
max_supported: u32

The set_layouts contain more DescriptorType::StorageBufferDynamic descriptors than the max_descriptor_set_storage_buffers_dynamic limit.

MaxDescriptorSetSampledImagesExceeded

Fields

provided: u32
max_supported: u32

MaxDescriptorSetStorageImagesExceeded

Fields

provided: u32
max_supported: u32

The set_layouts contain more DescriptorType::StorageImage and DescriptorType::StorageTexelBuffer descriptors than the max_descriptor_set_storage_images limit.

MaxDescriptorSetInputAttachmentsExceeded

Fields

provided: u32
max_supported: u32

The set_layouts contain more DescriptorType::InputAttachment descriptors than the max_descriptor_set_input_attachments limit.

MaxPerStageResourcesExceeded

Fields

provided: u32
max_supported: u32

The set_layouts contain more bound resources in a single stage than the max_per_stage_resources limit.

MaxPerStageDescriptorSamplersExceeded

Fields

provided: u32
max_supported: u32

The set_layouts contain more DescriptorType::Sampler and DescriptorType::CombinedImageSampler descriptors in a single stage than the max_per_stage_descriptor_samplers limit.

MaxPerStageDescriptorUniformBuffersExceeded

Fields

provided: u32
max_supported: u32

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

Fields

provided: u32
max_supported: u32

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

Fields

provided: u32
max_supported: u32

MaxPerStageDescriptorStorageImagesExceeded

Fields

provided: u32
max_supported: u32

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

Fields

provided: u32
max_supported: u32

The set_layouts contain more DescriptorType::InputAttachment descriptors in a single stage than the max_per_stage_descriptor_input_attachments limit.

MaxPushConstantsSizeExceeded

Fields

provided: u32
max_supported: u32

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.