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
Fields
divisor: usize
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.
Auto Trait Implementations
impl RefUnwindSafe for InputRate
impl Send for InputRate
impl Sync for InputRate
impl Unpin for InputRate
impl UnwindSafe for InputRate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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