pub enum CommandBufferBeginError {
OomError(OomError),
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
ColorAttachmentFormatUsageNotSupported {
attachment_index: u32,
},
DepthAttachmentFormatUsageNotSupported,
DepthStencilAttachmentFormatMismatch,
FramebufferNotCompatible,
MaxMultiviewViewCountExceeded {
view_count: u32,
max: u32,
},
StencilAttachmentFormatUsageNotSupported,
}
Expand description
Error that can happen when beginning recording of a command buffer.
Variants§
OomError(OomError)
Not enough memory.
RequirementNotMet
ColorAttachmentFormatUsageNotSupported
A color attachment has a format that does not support that usage.
DepthAttachmentFormatUsageNotSupported
The depth attachment has a format that does not support that usage.
DepthStencilAttachmentFormatMismatch
The depth and stencil attachments have different formats.
FramebufferNotCompatible
The framebuffer is not compatible with the render pass.
MaxMultiviewViewCountExceeded
The max_multiview_view_count
limit has been exceeded.
StencilAttachmentFormatUsageNotSupported
The stencil attachment has a format that does not support that usage.
Trait Implementations§
source§impl Clone for CommandBufferBeginError
impl Clone for CommandBufferBeginError
source§fn clone(&self) -> CommandBufferBeginError
fn clone(&self) -> CommandBufferBeginError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommandBufferBeginError
impl Debug for CommandBufferBeginError
source§impl Display for CommandBufferBeginError
impl Display for CommandBufferBeginError
source§impl Error for CommandBufferBeginError
impl Error for CommandBufferBeginError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CommandBufferBeginError> for ImmutableImageCreationError
impl From<CommandBufferBeginError> for ImmutableImageCreationError
source§fn from(err: CommandBufferBeginError) -> Self
fn from(err: CommandBufferBeginError) -> Self
Converts to this type from the input type.