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
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
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
required_flags: QueryPipelineStatisticFlags
inherited_flags: QueryPipelineStatisticFlags
The inherited pipeline statistics query flags of a command buffer are not a superset of the currently active flags.
RenderPassColorAttachmentCountMismatch
The inherited color attachment count of a command buffer does not match the current attachment count.
RenderPassColorAttachmentFormatMismatch
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
The inherited format of the depth attachment of a command buffer does not match the current attachment format.
RenderPassDepthAttachmentSamplesMismatch
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
The inherited format of the stencil attachment of a command buffer does not match the current attachment format.
RenderPassStencilAttachmentSamplesMismatch
The inherited sample count of the stencil attachment of a command buffer does not match the current attachment sample count.
RenderPassSubpassMismatch
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
The inherited view mask of a command buffer does not match the current view mask.
Trait Implementations
sourceimpl Clone for ExecuteCommandsError
impl Clone for ExecuteCommandsError
sourcefn clone(&self) -> ExecuteCommandsError
fn clone(&self) -> ExecuteCommandsError
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for ExecuteCommandsError
impl Debug for ExecuteCommandsError
sourceimpl Display for ExecuteCommandsError
impl Display for ExecuteCommandsError
sourceimpl Error for ExecuteCommandsError
impl Error for ExecuteCommandsError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()