pub enum Command {
Show 15 variants
CopyBufferToBuffer {
src: BufferId,
src_offset: BufferAddress,
dst: BufferId,
dst_offset: BufferAddress,
size: BufferAddress,
},
CopyBufferToTexture {
src: TexelCopyBufferInfo,
dst: TexelCopyTextureInfo,
size: Extent3d,
},
CopyTextureToBuffer {
src: TexelCopyTextureInfo,
dst: TexelCopyBufferInfo,
size: Extent3d,
},
CopyTextureToTexture {
src: TexelCopyTextureInfo,
dst: TexelCopyTextureInfo,
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>,
},
BuildAccelerationStructuresUnsafeTlas {
blas: Vec<TraceBlasBuildEntry>,
tlas: Vec<TlasBuildEntry>,
},
BuildAccelerationStructures {
blas: Vec<TraceBlasBuildEntry>,
tlas: Vec<TraceTlasPackage>,
},
}
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>
BuildAccelerationStructuresUnsafeTlas
BuildAccelerationStructures
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 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