pub enum RenderBundleCommand {
SetPipeline(RenderPipelineId),
SetBindGroup {
index: u32,
bind_group_id: BindGroupId,
offsets: Vec<u32>,
},
SetIndexBuffer {
buffer_id: BufferId,
index_format: IndexFormat,
offset: u64,
size: Option<BufferSize>,
},
SetVertexBuffer {
slot: u32,
buffer_id: Option<BufferId>,
offset: u64,
size: Option<BufferSize>,
},
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: u64,
},
DrawIndexedIndirect {
buffer_id: BufferId,
offset: u64,
},
PushDebugGroup(String),
PopDebugGroup,
InsertDebugMarker(String),
}Expand description
Variants§
SetPipeline(RenderPipelineId)
SetBindGroup
SetIndexBuffer
SetVertexBuffer
Draw
DrawIndexed
DrawIndirect
DrawIndexedIndirect
PushDebugGroup(String)
PopDebugGroup
InsertDebugMarker(String)
Trait Implementations§
Source§impl Debug for RenderBundleCommand
impl Debug for RenderBundleCommand
Source§impl<'de> Deserialize<'de> for RenderBundleCommand
impl<'de> Deserialize<'de> for RenderBundleCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RenderBundleCommand
impl RefUnwindSafe for RenderBundleCommand
impl Send for RenderBundleCommand
impl Sync for RenderBundleCommand
impl Unpin for RenderBundleCommand
impl UnsafeUnpin for RenderBundleCommand
impl UnwindSafe for RenderBundleCommand
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert