Expand description
Dimensions of a grid, or the number of thread blocks in a kernel launch.
Each component of a GridSize
must be at least 1. The maximum size depends on your device’s
compute capability, but maximums of x = (2^31)-1, y = 65535, z = 65535
are common. Launching
a kernel with a grid size greater than these limits will cause an error.
Fields
x: u32
Width of grid in blocks
y: u32
Height of grid in blocks
z: u32
Depth of grid in blocks
Implementations
Trait Implementations
impl Copy for GridSize
impl Eq for GridSize
impl StructuralEq for GridSize
impl StructuralPartialEq for GridSize
Auto Trait Implementations
impl RefUnwindSafe for GridSize
impl Send for GridSize
impl Sync for GridSize
impl Unpin for GridSize
impl UnwindSafe for GridSize
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more