pub struct GpuBatchSettings {
pub adaptive: bool,
pub batch_size: u32,
pub target_ms: f64,
}Expand description
Initial adaptive-batching settings, so a freshly spawned thread starts in whatever mode the UI is already showing rather than snapping back to the default.
Fields§
§adaptive: boolWhether the batch size is under adaptive control.
batch_size: u32Fixed batch size, used while adaptive is off.
target_ms: f64Wall-clock budget of one adaptive batch in milliseconds.
Trait Implementations§
Source§impl Clone for GpuBatchSettings
impl Clone for GpuBatchSettings
impl Copy for GpuBatchSettings
Source§impl Debug for GpuBatchSettings
impl Debug for GpuBatchSettings
Auto Trait Implementations§
impl Freeze for GpuBatchSettings
impl RefUnwindSafe for GpuBatchSettings
impl Send for GpuBatchSettings
impl Sync for GpuBatchSettings
impl Unpin for GpuBatchSettings
impl UnsafeUnpin for GpuBatchSettings
impl UnwindSafe for GpuBatchSettings
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