pub struct GPUArrayBuilder { /* private fields */ }
Expand description
A builder for GPU arrays
Implementations§
Source§impl GPUArrayBuilder
impl GPUArrayBuilder
Sourcepub const fn backend(self, backend: GPUBackend) -> Self
pub const fn backend(self, backend: GPUBackend) -> Self
Set the GPU backend to use.
Sourcepub const fn async_ops(self, async_ops: bool) -> Self
pub const fn async_ops(self, async_ops: bool) -> Self
Set whether to use asynchronous operations.
Sourcepub const fn mixed_precision(self, mixed_precision: bool) -> Self
pub const fn mixed_precision(self, mixed_precision: bool) -> Self
Set whether to use mixed precision.
Sourcepub const fn memory_fraction(self, memory_fraction: f32) -> Self
pub const fn memory_fraction(self, memory_fraction: f32) -> Self
Set the fraction of GPU memory to use.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GPUArrayBuilder
impl RefUnwindSafe for GPUArrayBuilder
impl Send for GPUArrayBuilder
impl Sync for GPUArrayBuilder
impl Unpin for GPUArrayBuilder
impl UnwindSafe for GPUArrayBuilder
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