[][src]Enum wgpu_core::command::RenderCommand

pub enum RenderCommand {
    SetBindGroup {
        index: u8,
        num_dynamic_offsets: u8,
        bind_group_id: BindGroupId,
        phantom_offsets: PhantomSlice<DynamicOffset>,
    },
    SetPipeline(RenderPipelineId),
    SetIndexBuffer {
        buffer_id: BufferId,
        offset: BufferAddress,
        size: BufferSize,
    },
    SetVertexBuffer {
        slot: u32,
        buffer_id: BufferId,
        offset: BufferAddress,
        size: BufferSize,
    },
    SetBlendColor(Color),
    SetStencilReference(u32),
    SetViewport {
        rect: Rect<f32>,
        depth_min: f32,
        depth_max: f32,
    },
    SetScissor(Rect<u32>),
    Draw {
        vertex_count: u32,
        instance_count: u32,
        first_vertex: u32,
        first_instance: u32,
    },
    DrawIndexed {
        index_count: u32,
        instance_count: u32,
        first_index: u32,
        base_vertex: i32,
        first_instance: u32,
    },
    DrawIndirect {
        buffer_id: BufferId,
        offset: BufferAddress,
    },
    DrawIndexedIndirect {
        buffer_id: BufferId,
        offset: BufferAddress,
    },
    PushDebugGroup {
        color: u32,
        len: usize,
        phantom_marker: PhantomSlice<u8>,
    },
    PopDebugGroup,
    InsertDebugMarker {
        color: u32,
        len: usize,
        phantom_marker: PhantomSlice<u8>,
    },
    ExecuteBundle(RenderBundleId),
    End,
}

Variants

SetBindGroup

Fields of SetBindGroup

index: u8num_dynamic_offsets: u8bind_group_id: BindGroupIdphantom_offsets: PhantomSlice<DynamicOffset>
SetPipeline(RenderPipelineId)
SetIndexBuffer

Fields of SetIndexBuffer

buffer_id: BufferIdoffset: BufferAddresssize: BufferSize
SetVertexBuffer

Fields of SetVertexBuffer

slot: u32buffer_id: BufferIdoffset: BufferAddresssize: BufferSize
SetBlendColor(Color)
SetStencilReference(u32)
SetViewport

Fields of SetViewport

rect: Rect<f32>depth_min: f32depth_max: f32
SetScissor(Rect<u32>)
Draw

Fields of Draw

vertex_count: u32instance_count: u32first_vertex: u32first_instance: u32
DrawIndexed

Fields of DrawIndexed

index_count: u32instance_count: u32first_index: u32base_vertex: i32first_instance: u32
DrawIndirect

Fields of DrawIndirect

buffer_id: BufferIdoffset: BufferAddress
DrawIndexedIndirect

Fields of DrawIndexedIndirect

buffer_id: BufferIdoffset: BufferAddress
PushDebugGroup

Fields of PushDebugGroup

color: u32len: usizephantom_marker: PhantomSlice<u8>
PopDebugGroup
InsertDebugMarker

Fields of InsertDebugMarker

color: u32len: usizephantom_marker: PhantomSlice<u8>
ExecuteBundle(RenderBundleId)
End

Trait Implementations

impl Clone for RenderCommand[src]

impl Copy for RenderCommand[src]

impl Debug for RenderCommand[src]

impl Default for RenderCommand[src]

impl Peek for RenderCommand[src]

impl Poke for RenderCommand[src]

impl Serialize for RenderCommand[src]

Auto Trait Implementations

impl !RefUnwindSafe for RenderCommand

impl Send for RenderCommand

impl Sync for RenderCommand

impl Unpin for RenderCommand

impl UnwindSafe for RenderCommand

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.