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
Fields
attachment_index: u32
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
sourceimpl Clone for CommandBufferBeginError
impl Clone for CommandBufferBeginError
sourcefn clone(&self) -> CommandBufferBeginError
fn clone(&self) -> CommandBufferBeginError
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 moresourceimpl Debug for CommandBufferBeginError
impl Debug for CommandBufferBeginError
sourceimpl Display for CommandBufferBeginError
impl Display for CommandBufferBeginError
sourceimpl Error for CommandBufferBeginError
impl Error for CommandBufferBeginError
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<CommandBufferBeginError> for DeviceLocalBufferCreationError
impl From<CommandBufferBeginError> for DeviceLocalBufferCreationError
sourcefn from(e: CommandBufferBeginError) -> Self
fn from(e: CommandBufferBeginError) -> Self
Converts to this type from the input type.
sourceimpl From<CommandBufferBeginError> for ImmutableImageCreationError
impl From<CommandBufferBeginError> for ImmutableImageCreationError
sourcefn from(err: CommandBufferBeginError) -> Self
fn from(err: CommandBufferBeginError) -> Self
Converts to this type from the input type.
sourceimpl From<OomError> for CommandBufferBeginError
impl From<OomError> for CommandBufferBeginError
impl Copy for CommandBufferBeginError
Auto Trait Implementations
impl RefUnwindSafe for CommandBufferBeginError
impl Send for CommandBufferBeginError
impl Sync for CommandBufferBeginError
impl Unpin for CommandBufferBeginError
impl UnwindSafe for CommandBufferBeginError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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