[][src]Enum mallumo_gls::draw::DrawCommandType

pub enum DrawCommandType<'a> {
    DrawArrays {
        first: usize,
        count: usize,
    },
    DrawArraysIndirect {
        indirect: &'a dyn Buffer,
        offset: usize,
    },
    DrawArraysInstanced {
        first: usize,
        count: usize,
        primitive_count: usize,
    },
    DrawArraysInstancedBaseInstance {
        first: usize,
        count: usize,
        primitive_count: usize,
        base_instance: usize,
    },
    MultiDrawArrays {
        first: &'a [u32],
        count: &'a [u32],
        draw_count: usize,
    },
    MultiDrawArraysIndirect {
        indirect: &'a dyn Buffer,
        draw_count: usize,
        stride: usize,
    },
    MultiDrawElementsIndirect {
        indices: &'a dyn Buffer,
        indirect: &'a dyn Buffer,
        draw_count: usize,
        stride: usize,
    },
    Compute {
        num_groups_x: usize,
        num_groups_y: usize,
        num_groups_z: usize,
    },
}

Variants

DrawArrays

Fields of DrawArrays

first: usizecount: usize
DrawArraysIndirect

Fields of DrawArraysIndirect

indirect: &'a dyn Bufferoffset: usize
DrawArraysInstanced

Fields of DrawArraysInstanced

first: usizecount: usizeprimitive_count: usize
DrawArraysInstancedBaseInstance

Fields of DrawArraysInstancedBaseInstance

first: usizecount: usizeprimitive_count: usizebase_instance: usize
MultiDrawArrays

Fields of MultiDrawArrays

first: &'a [u32]count: &'a [u32]draw_count: usize
MultiDrawArraysIndirect

Fields of MultiDrawArraysIndirect

indirect: &'a dyn Bufferdraw_count: usizestride: usize
MultiDrawElementsIndirect

Fields of MultiDrawElementsIndirect

indices: &'a dyn Bufferindirect: &'a dyn Bufferdraw_count: usizestride: usize
Compute

Fields of Compute

num_groups_x: usizenum_groups_y: usizenum_groups_z: usize

Trait Implementations

impl<'a> Copy for DrawCommandType<'a>[src]

impl<'a> Clone for DrawCommandType<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> !Send for DrawCommandType<'a>

impl<'a> !Sync for DrawCommandType<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.