pub enum IndexBuffer {
None,
U8(ElementBuffer<u8>),
U16(ElementBuffer<u16>),
U32(ElementBuffer<u32>),
}
Expand description
The index buffer used to determine the three vertices for each triangle in a mesh. A triangle is defined by three consequitive indices in the index buffer. Each index points to a position in the vertex buffers.
Variants§
None
No index buffer is used, ie. every triangle consist of three consequitive vertices.
U8(ElementBuffer<u8>)
Use an index buffer with indices defined in u8
format.
U16(ElementBuffer<u16>)
Use an index buffer with indices defined in u16
format.
U32(ElementBuffer<u32>)
Use an index buffer with indices defined in u32
format.
Auto Trait Implementations§
impl Freeze for IndexBuffer
impl RefUnwindSafe for IndexBuffer
impl Send for IndexBuffer
impl Sync for IndexBuffer
impl Unpin for IndexBuffer
impl UnwindSafe for IndexBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more