pub struct OccupancyResult {
pub workgroup_size: [u32; 3],
pub threads: u32,
pub occupancy: f64,
}Expand description
Result of occupancy analysis for a given workgroup size.
Fields§
§workgroup_size: [u32; 3]Chosen workgroup size [x, y, z].
threads: u32Total threads in the workgroup.
occupancy: f64Occupancy ratio (0.0 to 1.0).
Trait Implementations§
Source§impl Clone for OccupancyResult
impl Clone for OccupancyResult
Source§fn clone(&self) -> OccupancyResult
fn clone(&self) -> OccupancyResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OccupancyResult
impl Debug for OccupancyResult
Auto Trait Implementations§
impl Freeze for OccupancyResult
impl RefUnwindSafe for OccupancyResult
impl Send for OccupancyResult
impl Sync for OccupancyResult
impl Unpin for OccupancyResult
impl UnsafeUnpin for OccupancyResult
impl UnwindSafe for OccupancyResult
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