pub enum CommandBufferError {
Show 14 variants
StateLockPoisoned,
InvalidState {
operation: &'static str,
state: &'static str,
},
ActiveEncoder,
EncoderEnded,
EncoderCreationFailed {
encoder: &'static str,
},
RangeOutOfBounds {
resource: &'static str,
offset: usize,
length: usize,
resource_length: usize,
},
InvalidRange,
InvalidBindingIndex {
binding: &'static str,
index: usize,
limit: usize,
},
IntegerOutOfRange {
field: &'static str,
value: usize,
},
EmptyDispatch {
field: &'static str,
},
ManagedStorageRequired {
storage_mode: usize,
},
FenceWaitAfterUpdate,
NativeRejected {
operation: &'static str,
},
ExecutionFailed(String),
}Expand description
Re-exports the Metal framework surface for this item.
Errors returned for invalid command-buffer or encoder operations.
Variants§
StateLockPoisoned
The shared lifecycle lock was poisoned.
InvalidState
The operation is not valid in the command buffer’s current state.
ActiveEncoder
A command encoder is still active on this command buffer.
EncoderEnded
The encoder has already ended.
EncoderCreationFailed
The native command encoder could not be created.
RangeOutOfBounds
A resource byte range is invalid.
InvalidRange
A range end precedes its start.
InvalidBindingIndex
A binding index exceeds the supported table.
IntegerOutOfRange
A dimension or offset cannot be represented by the native API.
EmptyDispatch
A dispatch dimension must be non-zero.
ManagedStorageRequired
A synchronization operation requires managed storage.
FenceWaitAfterUpdate
Waiting after updating the same fence in one encoder is illegal.
NativeRejected
The native bridge rejected a validated operation.
ExecutionFailed(String)
GPU execution completed with an error.
Trait Implementations§
Source§impl Clone for CommandBufferError
impl Clone for CommandBufferError
Source§fn clone(&self) -> CommandBufferError
fn clone(&self) -> CommandBufferError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommandBufferError
impl Debug for CommandBufferError
Source§impl Display for CommandBufferError
impl Display for CommandBufferError
impl Eq for CommandBufferError
Source§impl Error for CommandBufferError
impl Error for CommandBufferError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()