enum Command {
Show 52 variants
Draw {
topology: u32,
first_vertex: u32,
vertex_count: u32,
first_instance: u32,
instance_count: u32,
first_instance_location: Option<UniformLocation>,
},
DrawIndexed {
topology: u32,
index_type: u32,
index_count: u32,
index_offset: BufferAddress,
base_vertex: i32,
first_instance: u32,
instance_count: u32,
first_instance_location: Option<UniformLocation>,
},
DrawIndirect {
topology: u32,
indirect_buf: Buffer,
indirect_offset: BufferAddress,
first_instance_location: Option<UniformLocation>,
},
DrawIndexedIndirect {
topology: u32,
index_type: u32,
indirect_buf: Buffer,
indirect_offset: BufferAddress,
first_instance_location: Option<UniformLocation>,
},
Dispatch([u32; 3]),
DispatchIndirect {
indirect_buf: Buffer,
indirect_offset: BufferAddress,
},
ClearBuffer {
dst: Buffer,
dst_target: u32,
range: MemoryRange,
},
CopyBufferToBuffer {
src: Buffer,
src_target: u32,
dst: Buffer,
dst_target: u32,
copy: BufferCopy,
},
CopyTextureToTexture {
src: Texture,
src_target: u32,
dst: Texture,
dst_target: u32,
copy: TextureCopy,
},
CopyBufferToTexture {
src: Buffer,
src_target: u32,
dst: Texture,
dst_target: u32,
dst_format: TextureFormat,
copy: BufferTextureCopy,
},
CopyTextureToBuffer {
src: Texture,
src_target: u32,
src_format: TextureFormat,
dst: Buffer,
dst_target: u32,
copy: BufferTextureCopy,
},
SetIndexBuffer(Buffer),
BeginQuery(Query, u32),
EndQuery(u32),
TimestampQuery(Query),
CopyQueryResults {
query_range: Range<u32>,
dst: Buffer,
dst_target: u32,
dst_offset: BufferAddress,
},
ResetFramebuffer {
is_default: bool,
},
BindAttachment {
attachment: u32,
view: TextureView,
},
ResolveAttachment {
attachment: u32,
dst: TextureView,
size: Extent3d,
},
InvalidateAttachments(ArrayVec<u32, { _ }>),
SetDrawColorBuffers(u8),
ClearColorF {
draw_buffer: u32,
color: [f32; 4],
is_srgb: bool,
},
ClearColorU(u32, [u32; 4]),
ClearColorI(u32, [i32; 4]),
ClearDepth(f32),
ClearStencil(u32),
ClearDepthAndStencil(f32, u32),
BufferBarrier(Buffer, BufferUses),
TextureBarrier(TextureUses),
SetViewport {
rect: Rect<i32>,
depth: Range<f32>,
},
SetScissor(Rect<i32>),
SetStencilFunc {
face: u32,
function: u32,
reference: u32,
read_mask: u32,
},
SetStencilOps {
face: u32,
write_mask: u32,
ops: StencilOps,
},
SetDepth(DepthState),
SetDepthBias(DepthBiasState),
ConfigureDepthStencil(FormatAspects),
SetAlphaToCoverage(bool),
SetVertexAttribute {
buffer: Option<Buffer>,
buffer_desc: VertexBufferDesc,
attribute_desc: AttributeDesc,
},
UnsetVertexAttribute(u32),
SetVertexBuffer {
index: u32,
buffer: BufferBinding,
buffer_desc: VertexBufferDesc,
},
SetProgram(Program),
SetPrimitive(PrimitiveState),
SetBlendConstant([f32; 4]),
SetColorTarget {
draw_buffer_index: Option<u32>,
desc: ColorTargetDesc,
},
BindBuffer {
target: u32,
slot: u32,
buffer: Buffer,
offset: i32,
size: i32,
},
BindSampler(u32, Option<Sampler>),
BindTexture {
slot: u32,
texture: Texture,
target: u32,
aspects: FormatAspects,
mip_levels: Range<u32>,
},
BindImage {
slot: u32,
binding: ImageBinding,
},
InsertDebugMarker(Range<u32>),
PushDebugGroup(Range<u32>),
PopDebugGroup,
SetPushConstants {
uniform: PushConstantDesc,
offset: u32,
},
}
Variants§
Draw
Fields
§
first_instance_location: Option<UniformLocation>
DrawIndexed
DrawIndirect
DrawIndexedIndirect
Dispatch([u32; 3])
DispatchIndirect
ClearBuffer
CopyBufferToBuffer
CopyTextureToTexture
CopyBufferToTexture
CopyTextureToBuffer
SetIndexBuffer(Buffer)
BeginQuery(Query, u32)
EndQuery(u32)
TimestampQuery(Query)
CopyQueryResults
ResetFramebuffer
BindAttachment
ResolveAttachment
InvalidateAttachments(ArrayVec<u32, { _ }>)
SetDrawColorBuffers(u8)
ClearColorF
ClearColorU(u32, [u32; 4])
ClearColorI(u32, [i32; 4])
ClearDepth(f32)
ClearStencil(u32)
ClearDepthAndStencil(f32, u32)
BufferBarrier(Buffer, BufferUses)
TextureBarrier(TextureUses)
SetViewport
SetScissor(Rect<i32>)
SetStencilFunc
SetStencilOps
SetDepth(DepthState)
SetDepthBias(DepthBiasState)
ConfigureDepthStencil(FormatAspects)
SetAlphaToCoverage(bool)
SetVertexAttribute
UnsetVertexAttribute(u32)
SetVertexBuffer
SetProgram(Program)
SetPrimitive(PrimitiveState)
SetBlendConstant([f32; 4])
SetColorTarget
BindBuffer
BindSampler(u32, Option<Sampler>)
BindTexture
BindImage
InsertDebugMarker(Range<u32>)
PushDebugGroup(Range<u32>)
PopDebugGroup
SetPushConstants
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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