pub enum CheckVertexBufferError {
BufferNotBound {
binding_num: u32,
},
BufferMissingUsage {
binding_num: u32,
},
TooManyVertices {
vertex_count: u32,
max_vertex_count: u32,
},
TooManyInstances {
instance_count: u32,
max_instance_count: u32,
},
}
Expand description
Error that can happen when checking whether the vertex buffers are valid.
Variants
BufferNotBound
Fields
binding_num: u32
No buffer was bound to a binding slot needed by the pipeline.
BufferMissingUsage
Fields
binding_num: u32
Index of the buffer that is missing usage.
The “vertex buffer” usage must be enabled on the buffer.
TooManyVertices
Fields
vertex_count: u32
The used amount of vertices.
max_vertex_count: u32
The allowed amount of vertices.
A draw command requested too many vertices.
TooManyInstances
Fields
instance_count: u32
The used amount of instances.
max_instance_count: u32
The allowed amount of instances.
A draw command requested too many instances.
When the multiview
feature is used the maximum amount of instances may be reduced
because the implementation may use instancing internally to implement multiview
.
Trait Implementations
sourceimpl Clone for CheckVertexBufferError
impl Clone for CheckVertexBufferError
sourcefn clone(&self) -> CheckVertexBufferError
fn clone(&self) -> CheckVertexBufferError
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 more
sourceimpl Debug for CheckVertexBufferError
impl Debug for CheckVertexBufferError
sourceimpl Display for CheckVertexBufferError
impl Display for CheckVertexBufferError
sourceimpl Error for CheckVertexBufferError
impl Error for CheckVertexBufferError
1.30.0 · 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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<CheckVertexBufferError> for DrawError
impl From<CheckVertexBufferError> for DrawError
sourcefn from(err: CheckVertexBufferError) -> DrawError
fn from(err: CheckVertexBufferError) -> DrawError
Performs the conversion.
sourceimpl From<CheckVertexBufferError> for DrawIndexedError
impl From<CheckVertexBufferError> for DrawIndexedError
sourcefn from(err: CheckVertexBufferError) -> DrawIndexedError
fn from(err: CheckVertexBufferError) -> DrawIndexedError
Performs the conversion.
sourceimpl From<CheckVertexBufferError> for DrawIndirectError
impl From<CheckVertexBufferError> for DrawIndirectError
sourcefn from(err: CheckVertexBufferError) -> DrawIndirectError
fn from(err: CheckVertexBufferError) -> DrawIndirectError
Performs the conversion.
sourceimpl From<CheckVertexBufferError> for DrawIndexedIndirectError
impl From<CheckVertexBufferError> for DrawIndexedIndirectError
sourcefn from(err: CheckVertexBufferError) -> DrawIndexedIndirectError
fn from(err: CheckVertexBufferError) -> DrawIndexedIndirectError
Performs the conversion.
impl Copy for CheckVertexBufferError
Auto Trait Implementations
impl RefUnwindSafe for CheckVertexBufferError
impl Send for CheckVertexBufferError
impl Sync for CheckVertexBufferError
impl Unpin for CheckVertexBufferError
impl UnwindSafe for CheckVertexBufferError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more