Enum wgpu_core::command::compute_command::ComputeCommand
source · pub enum ComputeCommand {
SetBindGroup {
index: u32,
num_dynamic_offsets: usize,
bind_group_id: Option<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(
hub: &Hub,
commands: &[ComputeCommand],
) -> Result<Vec<ArcComputeCommand>, ComputePassError>
pub fn resolve_compute_command_ids( hub: &Hub, commands: &[ComputeCommand], ) -> Result<Vec<ArcComputeCommand>, 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
source§impl<'de> Deserialize<'de> for ComputeCommand
impl<'de> Deserialize<'de> for ComputeCommand
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
source§impl Serialize for ComputeCommand
impl Serialize 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
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
)