pub struct GridSize {
pub x: u32,
pub y: u32,
pub z: u32,
}
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 Eq for GridSize
impl StructuralPartialEq for GridSize
Auto Trait Implementations§
impl Freeze for GridSize
impl RefUnwindSafe for GridSize
impl Send for GridSize
impl Sync for GridSize
impl Unpin for GridSize
impl UnwindSafe for GridSize
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