pub struct AsyncGpuOps { /* private fields */ }Expand description
Asynchronous GPU operations
Implementations§
Source§impl AsyncGpuOps
impl AsyncGpuOps
Sourcepub fn launch_kernel_async(
&mut self,
kernel: &GpuKernelInfo,
stream_id: u32,
) -> Result<AsyncOperationHandle, GpuError>
pub fn launch_kernel_async( &mut self, kernel: &GpuKernelInfo, stream_id: u32, ) -> Result<AsyncOperationHandle, GpuError>
Launch asynchronous kernel
Sourcepub fn wait_for_completion(
&mut self,
handle: &AsyncOperationHandle,
) -> Result<GpuKernelExecution, GpuError>
pub fn wait_for_completion( &mut self, handle: &AsyncOperationHandle, ) -> Result<GpuKernelExecution, GpuError>
Wait for operation completion
Sourcepub fn is_complete(&self, handle: &AsyncOperationHandle) -> bool
pub fn is_complete(&self, handle: &AsyncOperationHandle) -> bool
Check if operation is complete
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncGpuOps
impl RefUnwindSafe for AsyncGpuOps
impl Send for AsyncGpuOps
impl Sync for AsyncGpuOps
impl Unpin for AsyncGpuOps
impl UnwindSafe for AsyncGpuOps
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more