Enum wgpu_core::command::ComputeCommand
source · pub enum ComputeCommand {
SetBindGroup {
index: u32,
num_dynamic_offsets: usize,
bind_group_id: BindGroupId,
},
SetPipeline(ComputePipelineId),
SetPushConstant {
offset: u32,
size_bytes: u32,
values_offset: u32,
},
Dispatch([u32; 3]),
DispatchIndirect {
buffer_id: BufferId,
offset: BufferAddress,
},
PushDebugGroup {
color: u32,
len: usize,
},
PopDebugGroup,
InsertDebugMarker {
color: u32,
len: usize,
},
WriteTimestamp {
query_set_id: QuerySetId,
query_index: u32,
},
BeginPipelineStatisticsQuery {
query_set_id: QuerySetId,
query_index: u32,
},
EndPipelineStatisticsQuery,
}
Variants§
SetBindGroup
SetPipeline(ComputePipelineId)
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
Implementations§
source§impl ComputeCommand
impl ComputeCommand
sourcepub fn resolve_compute_command_ids<A: HalApi>(
hub: &Hub<A>,
commands: &[ComputeCommand]
) -> Result<Vec<ArcComputeCommand<A>>, ComputePassError>
pub fn resolve_compute_command_ids<A: HalApi>( hub: &Hub<A>, commands: &[ComputeCommand] ) -> Result<Vec<ArcComputeCommand<A>>, ComputePassError>
Resolves all ids in a list of commands into the corresponding resource Arc.
Trait Implementations§
source§impl Clone for ComputeCommand
impl Clone for ComputeCommand
source§fn clone(&self) -> ComputeCommand
fn clone(&self) -> ComputeCommand
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 moresource§impl Debug for ComputeCommand
impl Debug for ComputeCommand
impl Copy for ComputeCommand
Auto Trait Implementations§
impl Freeze for ComputeCommand
impl RefUnwindSafe for ComputeCommand
impl Send for ComputeCommand
impl Sync for ComputeCommand
impl Unpin for ComputeCommand
impl UnwindSafe for ComputeCommand
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