pub struct GpuCalibration {
pub upload_bytes_per_ms: f64,
pub download_bytes_per_ms: f64,
pub develop_px_per_ms: f64,
pub develop_half_px_per_ms: f64,
pub unpack_px_per_ms: f64,
pub normalize_px_per_ms: f64,
pub overhead_ms: f64,
pub band_overhead_ms: f64,
pub measured: bool,
}Expand description
Measured GPU characteristics.
Fields§
§upload_bytes_per_ms: f64Host → device bandwidth, bytes per ms.
download_bytes_per_ms: f64Device → host bandwidth, bytes per ms.
develop_px_per_ms: f64Fused develop (packed input → RGBA8), pixels per ms.
develop_half_px_per_ms: f64Half-size (2x2 superpixel) develop, input samples per ms.
unpack_px_per_ms: f64Unpack kernel, samples per ms.
normalize_px_per_ms: f64Normalise kernel, samples per ms.
overhead_ms: f64Fixed cost per run (submissions, synchronisation, allocations), ms.
band_overhead_ms: f64Extra cost of each additional band when a frame is tiled (submission, bind group, halo rows, lost overlap), ms.
measured: boolTrue when measured; false for the static defaults.
Implementations§
Source§impl GpuCalibration
impl GpuCalibration
Sourcepub fn defaults(class: AdapterClass) -> Self
pub fn defaults(class: AdapterClass) -> Self
Conservative static defaults per adapter class (used when calibration is
disabled with FLASHRAW_GPU_CALIBRATION=static).
Trait Implementations§
Source§impl Clone for GpuCalibration
impl Clone for GpuCalibration
impl Copy for GpuCalibration
Source§impl Debug for GpuCalibration
impl Debug for GpuCalibration
Source§impl PartialEq for GpuCalibration
impl PartialEq for GpuCalibration
impl StructuralPartialEq for GpuCalibration
Auto Trait Implementations§
impl Freeze for GpuCalibration
impl RefUnwindSafe for GpuCalibration
impl Send for GpuCalibration
impl Sync for GpuCalibration
impl Unpin for GpuCalibration
impl UnsafeUnpin for GpuCalibration
impl UnwindSafe for GpuCalibration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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