[−][src]Function vulkano::command_buffer::validity::check_index_buffer
pub fn check_index_buffer<B: ?Sized, I>(
device: &Device,
buffer: &B
) -> Result<CheckIndexBuffer, CheckIndexBufferError> where
B: BufferAccess + TypedBufferAccess<Content = [I]>,
I: Index,
Checks whether an index buffer can be bound.
Panic
- Panics if the buffer was not created with
device
.