pub enum CheckIndexBufferError {
BufferNotBound,
TooManyIndices {
index_count: u32,
max_index_count: u32,
},
BufferMissingUsage,
WrongAlignment,
UnsupportIndexType,
}
Expand description
Error that can happen when checking whether binding an index buffer is valid.
Variants
BufferNotBound
No index buffer was bound.
TooManyIndices
Fields
index_count: u32
The used amount of indices.
max_index_count: u32
The allowed amount of indices.
A draw command requested too many indices.
BufferMissingUsage
The “index buffer” usage must be enabled on the index buffer.
WrongAlignment
The data or size must be 4-bytes aligned.
UnsupportIndexType
The type of the indices is not supported by the device.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CheckIndexBufferError
impl Send for CheckIndexBufferError
impl Sync for CheckIndexBufferError
impl Unpin for CheckIndexBufferError
impl UnwindSafe for CheckIndexBufferError
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.