Struct glium::index::DrawCommandIndices
[−]
[src]
#[repr(C)]pub struct DrawCommandIndices { pub count: c_uint, pub instance_count: c_uint, pub first_index: c_uint, pub base_vertex: c_uint, pub base_instance: c_uint, }
Represents an element in a list of draw commands.
Fields
count: c_uint
Number of indices to use in the index buffer.
instance_count: c_uint
Number of instances to draw. If it's 0, nothing will be drawn.
first_index: c_uint
First index to draw in the index buffer.
base_vertex: c_uint
Value to add to each index.
base_instance: c_uint
Numero of the first instance to draw.
Trait Implementations
impl Debug for DrawCommandIndices[src]
impl Copy for DrawCommandIndices[src]
impl Clone for DrawCommandIndices[src]
fn clone(&self) -> DrawCommandIndices[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl UniformBlock for DrawCommandIndices[src]
fn matches(
layout: &BlockLayout,
base_offset: usize
) -> Result<(), LayoutMismatchError>[src]
layout: &BlockLayout,
base_offset: usize
) -> Result<(), LayoutMismatchError>
Checks whether the uniforms' layout matches the given block if Self starts at the given offset. Read more
fn build_layout(base_offset: usize) -> BlockLayout[src]
Builds the BlockLayout corresponding to the current object.