pub enum InputRate {
Vertex,
Instance {
divisor: usize,
},
}
Expand description
Vertex attribute addresssing.
Specifies if the vertex attribute address depends on vertex index or instance index.
Variants§
Vertex
Vertex index addressing.
Attribute data is fetched from the bound vertex buffers depending on the current vertex index.
Instance
Instance index addressing.
Attribute data is fetched from the bound vertex buffers depending on the current instance index.
The divisor
further defines how many consecutive instances will use the same vertex attribute data.
The instance index will be divided by the divisor to donate the addressing index.
Trait Implementations§
impl Copy for InputRate
impl Eq for InputRate
impl StructuralPartialEq for InputRate
Auto Trait Implementations§
impl Freeze for InputRate
impl RefUnwindSafe for InputRate
impl Send for InputRate
impl Sync for InputRate
impl Unpin for InputRate
impl UnwindSafe for InputRate
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