pub enum ArgumentEncoderError {
Show 20 variants
DescriptorCountOutOfRange,
EmptyDescriptorSet,
UnsupportedDataType {
data_type: usize,
},
InvalidAccess {
access: usize,
},
InvalidTextureType {
texture_type: usize,
},
BufferArrayUnsupported {
array_length: usize,
},
InvalidConstantBlockAlignment {
alignment: usize,
},
BindingRangeOutOfBounds {
index: usize,
array_length: usize,
},
DuplicateBinding {
index: usize,
},
NativeCreationFailed,
MappingLockPoisoned,
LayoutUnavailable,
InvalidBindingIndex {
index: usize,
},
BindingTypeMismatch {
index: usize,
expected: ArgumentBindingType,
actual: ArgumentBindingType,
},
MisalignedArgumentBufferOffset {
offset: usize,
alignment: usize,
},
ArgumentBufferRangeOutOfBounds {
offset: usize,
encoded_length: usize,
buffer_length: usize,
},
CpuInaccessibleArgumentBuffer {
storage_mode: usize,
},
BufferOffsetOutOfBounds {
offset: usize,
buffer_length: usize,
},
IntegerOutOfRange {
field: &'static str,
value: usize,
},
NativeRejected {
operation: &'static str,
},
}Expand description
Re-exports the Metal framework surface for this item.
Errors returned while configuring an ArgumentEncoder.
Variants§
DescriptorCountOutOfRange
The descriptor set is too large for the native ABI.
EmptyDescriptorSet
At least one argument descriptor is required.
UnsupportedDataType
The raw data type is not valid for descriptor-based argument encoding.
InvalidAccess
The raw binding-access value is invalid for this descriptor.
InvalidTextureType
The raw texture-type value is invalid.
BufferArrayUnsupported
Buffer-pointer descriptors cannot declare an array length.
InvalidConstantBlockAlignment
Constant-block alignment is invalid for this descriptor.
BindingRangeOutOfBounds
A descriptor’s binding range exceeds the supported index space.
DuplicateBinding
Two descriptors claim the same binding index.
NativeCreationFailed
Metal could not create an argument encoder.
MappingLockPoisoned
Another CPU mapping panicked while holding the argument buffer lock.
The function-derived encoder does not expose type metadata.
InvalidBindingIndex
The binding index is not present in the encoder layout.
BindingTypeMismatch
The setter does not match the descriptor’s resource type.
MisalignedArgumentBufferOffset
The destination argument-buffer offset is not suitably aligned.
ArgumentBufferRangeOutOfBounds
The encoded argument range exceeds the destination buffer.
CpuInaccessibleArgumentBuffer
The destination argument buffer is not CPU-addressable.
BufferOffsetOutOfBounds
A referenced buffer offset exceeds that buffer’s length.
IntegerOutOfRange
A value cannot be represented by the native API.
NativeRejected
The native bridge rejected a validated setter.
Trait Implementations§
Source§impl Clone for ArgumentEncoderError
impl Clone for ArgumentEncoderError
Source§fn clone(&self) -> ArgumentEncoderError
fn clone(&self) -> ArgumentEncoderError
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 ArgumentEncoderError
impl Debug for ArgumentEncoderError
Source§impl Display for ArgumentEncoderError
impl Display for ArgumentEncoderError
impl Eq for ArgumentEncoderError
Source§impl Error for ArgumentEncoderError
impl Error for ArgumentEncoderError
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()