pub struct GpuParams {
pub workgroup_size: usize,
pub workgroup_count: usize,
pub shared_memory_size: usize,
pub use_unified_memory: bool,
pub transfer_strategy: GpuTransferStrategy,
}Expand description
GPU optimization parameters
Fields§
§workgroup_size: usizeOptimal workgroup/block size
workgroup_count: usizeNumber of workgroups to launch
Shared memory usage per workgroup
use_unified_memory: boolEnable unified memory
transfer_strategy: GpuTransferStrategyOptimal data transfer strategy
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GpuParams
impl RefUnwindSafe for GpuParams
impl Send for GpuParams
impl Sync for GpuParams
impl Unpin for GpuParams
impl UnwindSafe for GpuParams
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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