pub struct GpuStream { /* private fields */ }Expand description
GPU execution stream for async operations.
Implementations§
Source§impl GpuStream
impl GpuStream
Sourcepub fn new(
handle: usize,
device_index: usize,
backend_type: BackendType,
) -> Self
pub fn new( handle: usize, device_index: usize, backend_type: BackendType, ) -> Self
Creates a new GPU stream.
Sourcepub fn device_index(&self) -> usize
pub fn device_index(&self) -> usize
Returns the device index.
Sourcepub fn synchronize(&self)
pub fn synchronize(&self)
Synchronizes this stream (waits for all operations to complete).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GpuStream
impl RefUnwindSafe for GpuStream
impl Send for GpuStream
impl Sync for GpuStream
impl Unpin for GpuStream
impl UnwindSafe for GpuStream
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