pub struct Kernel {
pub global_threads: u32,
pub global_id: u32,
pub groups: u32,
pub group_id: u32,
pub subgroups: u32,
pub subgroup_id: u32,
pub subgroup_threads: u32,
pub subgroup_thread_id: u32,
pub threads: u32,
pub thread_id: u32,
}Fields§
§global_threads: u32The number of global threads.
global_threads = groups * threads
global_id: u32The global thread id.
global_id = group_id * threads + thread_id
groups: u32The number of thread groups.
group_id: u32The group id.
subgroups: u32The number of subgroups per group.
subgroup_id: u32The subgroup id.
subgroup_threads: u32The number of threads per subgroup.
subgroup_thread_id: u32The subgroup thread id.
threads: u32The number of threads per group.
thread_id: u32The thread id.
Auto Trait Implementations§
impl RefUnwindSafe for Kernel
impl Send for Kernel
impl Sync for Kernel
impl Unpin for Kernel
impl UnwindSafe for Kernel
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