pub enum Command {
Allocate {
size: u64,
region: MemoryRegion,
mem_type: MemType,
access: MemAccess,
},
Free(MemoryAllocation),
Memcpy {
dst: MemoryAllocation,
src: MemoryAllocation,
size: u64,
dst_offset: u64,
src_offset: u64,
},
Memset {
dst: MemoryAllocation,
value: u8,
size: u64,
offset: u64,
},
LaunchKernel {
kernel: String,
config: KernelConfig,
args: Vec<Vec<u8>>,
},
Barrier,
WaitEvent(EventHandle),
SignalEvent(EventHandle),
}Variants§
Allocate
Free(MemoryAllocation)
Memcpy
Memset
LaunchKernel
Barrier
WaitEvent(EventHandle)
SignalEvent(EventHandle)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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