pub struct CommandListRecorder { /* private fields */ }Expand description
Implementations§
Source§impl CommandListRecorder
impl CommandListRecorder
Sourcepub fn state(&self) -> CommandListState
pub fn state(&self) -> CommandListState
Current state of the list.
Sourcepub fn commands(&self) -> &[RecordedCommand]
pub fn commands(&self) -> &[RecordedCommand]
The recorded command sequence.
Sourcepub fn append_memory_copy(
&mut self,
dst: u64,
src: u64,
bytes: u64,
) -> LevelZeroResult<()>
pub fn append_memory_copy( &mut self, dst: u64, src: u64, bytes: u64, ) -> LevelZeroResult<()>
Append a host→device or device→device memory copy.
Sourcepub fn append_memory_fill(
&mut self,
dst: u64,
bytes: u64,
pattern_len: u32,
) -> LevelZeroResult<()>
pub fn append_memory_fill( &mut self, dst: u64, bytes: u64, pattern_len: u32, ) -> LevelZeroResult<()>
Append a memory fill writing a repeating pattern.
Sourcepub fn append_launch_kernel(
&mut self,
kernel: impl Into<String>,
groups: GroupCount,
signal_event: Option<u32>,
) -> LevelZeroResult<()>
pub fn append_launch_kernel( &mut self, kernel: impl Into<String>, groups: GroupCount, signal_event: Option<u32>, ) -> LevelZeroResult<()>
Append a kernel launch with the given grid and optional signal event.
Sourcepub fn append_barrier(&mut self, barrier: Barrier) -> LevelZeroResult<()>
pub fn append_barrier(&mut self, barrier: Barrier) -> LevelZeroResult<()>
Append an execution/event barrier.
Sourcepub fn close(&mut self) -> LevelZeroResult<()>
pub fn close(&mut self) -> LevelZeroResult<()>
Close the list, sealing it for submission.
Sourcepub fn launch_count(&self) -> usize
pub fn launch_count(&self) -> usize
Number of kernel-launch commands recorded.
Trait Implementations§
Source§impl Clone for CommandListRecorder
impl Clone for CommandListRecorder
Source§fn clone(&self) -> CommandListRecorder
fn clone(&self) -> CommandListRecorder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandListRecorder
impl RefUnwindSafe for CommandListRecorder
impl Send for CommandListRecorder
impl Sync for CommandListRecorder
impl Unpin for CommandListRecorder
impl UnsafeUnpin for CommandListRecorder
impl UnwindSafe for CommandListRecorder
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