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>
Available on crate features serde
or replay
only.
pub fn resolve_compute_command_ids( hub: &Hub, commands: &[ComputeCommand], ) -> Result<Vec<ArcComputeCommand>, ComputePassError>
serde
or replay
only.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
)