pub enum CapturedNode {
Dispatch {
pipeline: ComputePipelineState,
bindings: Vec<(u64, RecordedBinding)>,
threads_per_grid: MTLSize,
threads_per_threadgroup: MTLSize,
threadgroup_memory: Vec<(u64, u64)>,
dispatch_kind: DispatchKind,
op_kind: CapturedOpKind,
reads: Vec<(usize, usize)>,
writes: Vec<(usize, usize)>,
},
Barrier,
}Expand description
A single captured compute dispatch or barrier sentinel.
Created when the encoder is in capture mode. Replayed later by
ComputeGraph::encode_sequential().
Variants§
Dispatch
A compute dispatch to replay.
Fields
§
pipeline: ComputePipelineStatePipeline state object to bind.
§
bindings: Vec<(u64, RecordedBinding)>Kernel argument bindings: (slot_index, binding).
§
dispatch_kind: DispatchKindWhether this is a dispatch_threads or dispatch_thread_groups call.
§
op_kind: CapturedOpKindOperation kind tag for the fusion pass (4e.2).
Defaults to Other if not explicitly set via set_op_kind().
Barrier
A memory barrier sentinel — forces a barrier at replay time.
Trait Implementations§
Source§impl Clone for CapturedNode
impl Clone for CapturedNode
Source§fn clone(&self) -> CapturedNode
fn clone(&self) -> CapturedNode
Returns a duplicate 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 CapturedNode
impl RefUnwindSafe for CapturedNode
impl Send for CapturedNode
impl Sync for CapturedNode
impl Unpin for CapturedNode
impl UnsafeUnpin for CapturedNode
impl UnwindSafe for CapturedNode
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