Enum wgpu::core::command::ComputeCommand
source · pub enum ComputeCommand {
SetBindGroup {
index: u32,
num_dynamic_offsets: usize,
bind_group_id: Id<BindGroup>,
},
SetPipeline(Id<ComputePipeline>),
SetPushConstant {
offset: u32,
size_bytes: u32,
values_offset: u32,
},
Dispatch([u32; 3]),
DispatchIndirect {
buffer_id: Id<Buffer>,
offset: u64,
},
PushDebugGroup {
color: u32,
len: usize,
},
PopDebugGroup,
InsertDebugMarker {
color: u32,
len: usize,
},
WriteTimestamp {
query_set_id: Id<QuerySet>,
query_index: u32,
},
BeginPipelineStatisticsQuery {
query_set_id: Id<QuerySet>,
query_index: u32,
},
EndPipelineStatisticsQuery,
}
Available on
wgpu_core
only.Variants§
SetBindGroup
SetPipeline(Id<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
Implementations§
source§impl ComputeCommand
impl ComputeCommand
sourcepub fn resolve_compute_command_ids<A>(
hub: &Hub<A>,
commands: &[ComputeCommand]
) -> Result<Vec<ArcComputeCommand<A>>, ComputePassError>where
A: HalApi,
pub fn resolve_compute_command_ids<A>(
hub: &Hub<A>,
commands: &[ComputeCommand]
) -> Result<Vec<ArcComputeCommand<A>>, ComputePassError>where
A: HalApi,
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<ComputeCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ComputeCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<A> From<&ArcComputeCommand<A>> for ComputeCommandwhere
A: HalApi,
Available on crate feature trace
only.
impl<A> From<&ArcComputeCommand<A>> for ComputeCommandwhere
A: HalApi,
Available on crate feature
trace
only.source§fn from(value: &ArcComputeCommand<A>) -> ComputeCommand
fn from(value: &ArcComputeCommand<A>) -> ComputeCommand
Converts to this type from the input type.
source§impl Serialize for ComputeCommand
impl Serialize for ComputeCommand
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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