logo
pub enum ExecuteCommandsError {
Show 21 variants SyncCommandBufferBuilderError(SyncCommandBufferBuilderError), RequirementNotMet { required_for: &'static str, requires_one_of: RequiresOneOf, }, ForbiddenWithSubpassContents { contents: SubpassContents, }, NotSupportedByQueueFamily, OcclusionQueryInheritanceRequired { command_buffer_index: u32, }, OcclusionQueryFlagsNotSuperset { command_buffer_index: u32, required_flags: QueryControlFlags, inherited_flags: QueryControlFlags, }, PipelineStatisticsQueryFlagsNotSuperset { command_buffer_index: u32, required_flags: QueryPipelineStatisticFlags, inherited_flags: QueryPipelineStatisticFlags, }, RenderPassColorAttachmentCountMismatch { command_buffer_index: u32, required_count: u32, inherited_count: u32, }, RenderPassColorAttachmentFormatMismatch { command_buffer_index: u32, color_attachment_index: u32, required_format: Format, inherited_format: Option<Format>, }, RenderPassColorAttachmentSamplesMismatch { command_buffer_index: u32, color_attachment_index: u32, required_samples: SampleCount, inherited_samples: SampleCount, }, RenderPassDepthAttachmentFormatMismatch { command_buffer_index: u32, required_format: Format, inherited_format: Option<Format>, }, RenderPassDepthAttachmentSamplesMismatch { command_buffer_index: u32, required_samples: SampleCount, inherited_samples: SampleCount, }, RenderPassFramebufferMismatch { command_buffer_index: u32, }, RenderPassInheritanceRequired { command_buffer_index: u32, }, RenderPassInheritanceForbidden { command_buffer_index: u32, }, RenderPassNotCompatible { command_buffer_index: u32, }, RenderPassStencilAttachmentFormatMismatch { command_buffer_index: u32, required_format: Format, inherited_format: Option<Format>, }, RenderPassStencilAttachmentSamplesMismatch { command_buffer_index: u32, required_samples: SampleCount, inherited_samples: SampleCount, }, RenderPassSubpassMismatch { command_buffer_index: u32, required_subpass: u32, inherited_subpass: u32, }, RenderPassTypeMismatch { command_buffer_index: u32, }, RenderPassViewMaskMismatch { command_buffer_index: u32, required_view_mask: u32, inherited_view_mask: u32, },
}
Expand description

Error that can happen when executing a secondary command buffer.

Variants

SyncCommandBufferBuilderError(SyncCommandBufferBuilderError)

RequirementNotMet

Fields

required_for: &'static str
requires_one_of: RequiresOneOf

ForbiddenWithSubpassContents

Fields

contents: SubpassContents

Operation forbidden inside a render subpass with the specified contents.

NotSupportedByQueueFamily

The queue family doesn’t allow this operation.

OcclusionQueryInheritanceRequired

Fields

command_buffer_index: u32

A render pass is active, but a command buffer does not contain occlusion query inheritance info.

OcclusionQueryFlagsNotSuperset

Fields

command_buffer_index: u32
required_flags: QueryControlFlags
inherited_flags: QueryControlFlags

The inherited occlusion query control flags of a command buffer are not a superset of the currently active flags.

PipelineStatisticsQueryFlagsNotSuperset

Fields

command_buffer_index: u32
inherited_flags: QueryPipelineStatisticFlags

The inherited pipeline statistics query flags of a command buffer are not a superset of the currently active flags.

RenderPassColorAttachmentCountMismatch

Fields

command_buffer_index: u32
required_count: u32
inherited_count: u32

The inherited color attachment count of a command buffer does not match the current attachment count.

RenderPassColorAttachmentFormatMismatch

Fields

command_buffer_index: u32
color_attachment_index: u32
required_format: Format
inherited_format: Option<Format>

The inherited format of a color attachment of a command buffer does not match the current attachment format.

RenderPassColorAttachmentSamplesMismatch

Fields

command_buffer_index: u32
color_attachment_index: u32
required_samples: SampleCount
inherited_samples: SampleCount

The inherited sample count of a color attachment of a command buffer does not match the current attachment sample count.

RenderPassDepthAttachmentFormatMismatch

Fields

command_buffer_index: u32
required_format: Format
inherited_format: Option<Format>

The inherited format of the depth attachment of a command buffer does not match the current attachment format.

RenderPassDepthAttachmentSamplesMismatch

Fields

command_buffer_index: u32
required_samples: SampleCount
inherited_samples: SampleCount

The inherited sample count of the depth attachment of a command buffer does not match the current attachment sample count.

RenderPassFramebufferMismatch

Fields

command_buffer_index: u32

The inherited framebuffer of a command buffer does not match the current framebuffer.

RenderPassInheritanceRequired

Fields

command_buffer_index: u32

A render pass is active, but a command buffer does not contain render pass inheritance info.

RenderPassInheritanceForbidden

Fields

command_buffer_index: u32

A render pass is not active, but a command buffer contains render pass inheritance info.

RenderPassNotCompatible

Fields

command_buffer_index: u32

The inherited render pass of a command buffer is not compatible with the current render pass.

RenderPassStencilAttachmentFormatMismatch

Fields

command_buffer_index: u32
required_format: Format
inherited_format: Option<Format>

The inherited format of the stencil attachment of a command buffer does not match the current attachment format.

RenderPassStencilAttachmentSamplesMismatch

Fields

command_buffer_index: u32
required_samples: SampleCount
inherited_samples: SampleCount

The inherited sample count of the stencil attachment of a command buffer does not match the current attachment sample count.

RenderPassSubpassMismatch

Fields

command_buffer_index: u32
required_subpass: u32
inherited_subpass: u32

The inherited subpass index of a command buffer does not match the current subpass index.

RenderPassTypeMismatch

Fields

command_buffer_index: u32

The inherited render pass of a command buffer is of the wrong type.

RenderPassViewMaskMismatch

Fields

command_buffer_index: u32
required_view_mask: u32
inherited_view_mask: u32

The inherited view mask of a command buffer does not match the current view mask.

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
👎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

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.

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.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.