pub struct Workload {
pub samples: u64,
pub upload_bytes: u64,
pub packed: bool,
pub output: WorkOutput,
pub resident: bool,
pub bands: u32,
pub edge_aware: bool,
pub ahd: bool,
}Expand description
Description of one decode for the cost model.
Fields§
§samples: u64Samples in the frame.
upload_bytes: u64Bytes uploaded on the GPU path (packed payload or u16 samples).
packed: boolThe payload is bit-packed (GPU can unpack it; otherwise the CPU decodes first).
output: WorkOutput§resident: boolThe result stays on the GPU (no download).
bands: u32Bands the frame is processed in on this device (1 = fits one storage binding;
see GpuContext::estimate_bands).
edge_aware: boolThe edge-aware demosaic instead of the bilinear one (RGB outputs).
ahd: boolThe AHD demosaic instead of the bilinear one (RGB outputs).
Implementations§
Trait Implementations§
impl Copy for Workload
impl StructuralPartialEq for Workload
Auto Trait Implementations§
impl Forget for Workload
impl Freeze for Workload
impl Move for Workload
impl RefUnwindSafe for Workload
impl Send for Workload
impl Sync for Workload
impl Unpin for Workload
impl UnsafeUnpin for Workload
impl UnwindSafe for Workload
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