pub enum IndexFormat {
Uint16,
Uint32,
}Expand description
The element width of the index buffer handed to setIndexBuffer.
The format must match the element type of the index data and the
PrimitiveState::strip_index_format when a strip topology is used.
Variants§
Uint16
16-bit unsigned indices. Halves the index buffer, but a mesh with more than 65536 vertices would silently wrap.
Uint32
32-bit unsigned indices.
Trait Implementations§
Source§impl Clone for IndexFormat
impl Clone for IndexFormat
impl Copy for IndexFormat
Source§impl Debug for IndexFormat
impl Debug for IndexFormat
Source§impl Default for IndexFormat
impl Default for IndexFormat
impl Eq for IndexFormat
Source§impl Hash for IndexFormat
impl Hash for IndexFormat
Source§impl PartialEq for IndexFormat
impl PartialEq for IndexFormat
impl StructuralPartialEq for IndexFormat
Auto Trait Implementations§
impl Freeze for IndexFormat
impl RefUnwindSafe for IndexFormat
impl Send for IndexFormat
impl Sync for IndexFormat
impl Unpin for IndexFormat
impl UnsafeUnpin for IndexFormat
impl UnwindSafe for IndexFormat
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