pub enum Command {
Show 13 variants
CopyBufferToBuffer {
src: BufferId,
src_offset: BufferAddress,
dst: BufferId,
dst_offset: BufferAddress,
size: BufferAddress,
},
CopyBufferToTexture {
src: ImageCopyBuffer,
dst: ImageCopyTexture,
size: Extent3d,
},
CopyTextureToBuffer {
src: ImageCopyTexture,
dst: ImageCopyBuffer,
size: Extent3d,
},
CopyTextureToTexture {
src: ImageCopyTexture,
dst: ImageCopyTexture,
size: Extent3d,
},
ClearBuffer {
dst: BufferId,
offset: BufferAddress,
size: Option<BufferAddress>,
},
ClearTexture {
dst: TextureId,
subresource_range: ImageSubresourceRange,
},
WriteTimestamp {
query_set_id: QuerySetId,
query_index: u32,
},
ResolveQuerySet {
query_set_id: QuerySetId,
start_query: u32,
query_count: u32,
destination: BufferId,
destination_offset: BufferAddress,
},
PushDebugGroup(String),
PopDebugGroup,
InsertDebugMarker(String),
RunComputePass {
base: BasePass<ComputeCommand>,
timestamp_writes: Option<PassTimestampWrites>,
},
RunRenderPass {
base: BasePass<RenderCommand>,
target_colors: Vec<Option<RenderPassColorAttachment>>,
target_depth_stencil: Option<RenderPassDepthStencilAttachment>,
timestamp_writes: Option<PassTimestampWrites>,
occlusion_query_set_id: Option<QuerySetId>,
},
}
Available on crate features
trace
or replay
only.Variants§
CopyBufferToBuffer
CopyBufferToTexture
CopyTextureToBuffer
CopyTextureToTexture
ClearBuffer
ClearTexture
WriteTimestamp
ResolveQuerySet
PushDebugGroup(String)
PopDebugGroup
InsertDebugMarker(String)
RunComputePass
RunRenderPass
Fields
§
base: BasePass<RenderCommand>
§
target_colors: Vec<Option<RenderPassColorAttachment>>
§
target_depth_stencil: Option<RenderPassDepthStencilAttachment>
§
timestamp_writes: Option<PassTimestampWrites>
§
occlusion_query_set_id: Option<QuerySetId>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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 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