pub enum ExecuteCommandsError {
Show 21 variants
SyncCommandBufferBuilderError(SyncCommandBufferBuilderError),
FeatureNotEnabled {
feature: &'static str,
reason: &'static str,
},
ForbiddenWithSubpassContents {
subpass_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)
FeatureNotEnabled
ForbiddenWithSubpassContents
Fields
subpass_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
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 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)>
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<SyncCommandBufferBuilderError> for ExecuteCommandsError
impl From<SyncCommandBufferBuilderError> for ExecuteCommandsError
sourcefn from(err: SyncCommandBufferBuilderError) -> Self
fn from(err: SyncCommandBufferBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ExecuteCommandsError
impl Send for ExecuteCommandsError
impl Sync for ExecuteCommandsError
impl Unpin for ExecuteCommandsError
impl UnwindSafe for ExecuteCommandsError
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