pub enum ArcComputeCommand {
SetBindGroup {
index: u32,
num_dynamic_offsets: usize,
bind_group: Option<Arc<BindGroup>>,
},
SetPipeline(Arc<ComputePipeline>),
SetPushConstant {
offset: u32,
size_bytes: u32,
values_offset: u32,
},
Dispatch([u32; 3]),
DispatchIndirect {
buffer: Arc<Buffer>,
offset: BufferAddress,
},
PushDebugGroup {
color: u32,
len: usize,
},
PopDebugGroup,
InsertDebugMarker {
color: u32,
len: usize,
},
WriteTimestamp {
query_set: Arc<QuerySet>,
query_index: u32,
},
BeginPipelineStatisticsQuery {
query_set: Arc<QuerySet>,
query_index: u32,
},
EndPipelineStatisticsQuery,
}
Expand description
Equivalent to ComputeCommand
but the Ids resolved into resource Arcs.
Variants§
SetBindGroup
SetPipeline(Arc<ComputePipeline>)
SetPushConstant
Set a range of push constants to values stored in push_constant_data
.
Fields
Dispatch([u32; 3])
DispatchIndirect
PushDebugGroup
PopDebugGroup
InsertDebugMarker
WriteTimestamp
BeginPipelineStatisticsQuery
EndPipelineStatisticsQuery
Trait Implementations§
source§impl Clone for ArcComputeCommand
impl Clone for ArcComputeCommand
source§fn clone(&self) -> ArcComputeCommand
fn clone(&self) -> ArcComputeCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ArcComputeCommand
impl !RefUnwindSafe for ArcComputeCommand
impl Send for ArcComputeCommand
impl Sync for ArcComputeCommand
impl Unpin for ArcComputeCommand
impl !UnwindSafe for ArcComputeCommand
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)