pub struct Kernel { /* private fields */ }
Available on
target_arch="spirv"
only.Implementations§
source§impl Kernel
impl Kernel
sourcepub fn global_threads(&self) -> usize
pub fn global_threads(&self) -> usize
The number of global threads.
global_threads = groups * threads
sourcepub fn global_id(&self) -> usize
pub fn global_id(&self) -> usize
The global thread id.
global_id = group_id * threads + thread_id
sourcepub fn subgroup_id(&self) -> usize
pub fn subgroup_id(&self) -> usize
The subgroup id.
sourcepub fn subgroup_thread_id(&self) -> usize
pub fn subgroup_thread_id(&self) -> usize
The subgroup thread id.
Auto Trait Implementations§
impl Freeze for Kernel
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