pub struct CachedKernel {
pub pipeline: Arc<ComputePipeline>,
pub bind_group_layout: Arc<BindGroupLayout>,
pub optimal_workgroup_size: [u32; 3],
pub avg_execution_time: f64,
pub usage_count: u64,
pub total_data_processed: u64,
}
Expand description
Cached kernel with optimization metadata
Fields§
§pipeline: Arc<ComputePipeline>
Compiled compute pipeline
bind_group_layout: Arc<BindGroupLayout>
Bind group layout
optimal_workgroup_size: [u32; 3]
Optimal workgroup size (auto-tuned)
avg_execution_time: f64
Performance metrics
usage_count: u64
Usage count for cache eviction
total_data_processed: u64
Total data processed (for throughput calculation)
Trait Implementations§
Source§impl Clone for CachedKernel
impl Clone for CachedKernel
Source§fn clone(&self) -> CachedKernel
fn clone(&self) -> CachedKernel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CachedKernel
impl !RefUnwindSafe for CachedKernel
impl Send for CachedKernel
impl Sync for CachedKernel
impl Unpin for CachedKernel
impl !UnwindSafe for CachedKernel
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