pub struct NdRange<const DIMENSIONS: usize = 1> {
pub group_size: Range<DIMENSIONS>,
pub local_size: Range<DIMENSIONS>,
}Expand description
The NdRange struct defines the iteration domain of both the work-groups and the overall
dispatch.
An NdRange comprises two Range parameters: the whole range over which the kernel is to be
executed and the range of each work group.
Fields§
§group_size: Range<DIMENSIONS>§local_size: Range<DIMENSIONS>Implementations§
Trait Implementations§
Source§impl ValidDimension for NdRange<1>
impl ValidDimension for NdRange<1>
Source§impl ValidDimension for NdRange<2>
impl ValidDimension for NdRange<2>
Auto Trait Implementations§
impl<const DIMENSIONS: usize> Freeze for NdRange<DIMENSIONS>
impl<const DIMENSIONS: usize> RefUnwindSafe for NdRange<DIMENSIONS>
impl<const DIMENSIONS: usize> Send for NdRange<DIMENSIONS>
impl<const DIMENSIONS: usize> Sync for NdRange<DIMENSIONS>
impl<const DIMENSIONS: usize> Unpin for NdRange<DIMENSIONS>
impl<const DIMENSIONS: usize> UnwindSafe for NdRange<DIMENSIONS>
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