Struct glium::index::DrawCommandNoIndices
source · #[repr(C)]pub struct DrawCommandNoIndices {
pub count: c_uint,
pub instance_count: c_uint,
pub first_index: c_uint,
pub base_instance: c_uint,
}
Expand description
Represents an element in a list of draw commands.
Fields§
§count: c_uint
Number of vertices to draw.
instance_count: c_uint
Number of instances to draw. If it’s 0
, nothing will be drawn.
first_index: c_uint
First vertex to draw in the vertices source.
base_instance: c_uint
Numero of the first instance to draw.
Trait Implementations§
source§impl Clone for DrawCommandNoIndices
impl Clone for DrawCommandNoIndices
source§fn clone(&self) -> DrawCommandNoIndices
fn clone(&self) -> DrawCommandNoIndices
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DrawCommandNoIndices
impl Debug for DrawCommandNoIndices
source§impl UniformBlock for DrawCommandNoIndices
impl UniformBlock for DrawCommandNoIndices
source§fn matches(
layout: &BlockLayout,
base_offset: usize,
) -> Result<(), LayoutMismatchError>
fn matches( layout: &BlockLayout, base_offset: usize, ) -> Result<(), LayoutMismatchError>
Checks whether the uniforms’ layout matches the given block if
Self
starts at
the given offset.source§fn build_layout(base_offset: usize) -> BlockLayout
fn build_layout(base_offset: usize) -> BlockLayout
Builds the
BlockLayout
corresponding to the current object.impl Copy for DrawCommandNoIndices
Auto Trait Implementations§
impl Freeze for DrawCommandNoIndices
impl RefUnwindSafe for DrawCommandNoIndices
impl Send for DrawCommandNoIndices
impl Sync for DrawCommandNoIndices
impl Unpin for DrawCommandNoIndices
impl UnwindSafe for DrawCommandNoIndices
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.