pub struct LaunchConfig { /* private fields */ }Implementations§
Source§impl LaunchConfig
impl LaunchConfig
pub fn new( grid_dim: Dim3, block_dim: Dim3, shared_memory_bytes: usize, ) -> Result<Self>
pub const fn grid_dim(&self) -> Dim3
pub const fn block_dim(&self) -> Dim3
pub fn try_for_1d_grid(element_count: usize, block_size: usize) -> Result<Self>
pub fn for_1d_grid(element_count: usize, block_size: usize) -> Self
pub fn try_for_num_elems( element_count: usize, block_size: usize, ) -> Result<Self>
pub fn for_num_elems(element_count: usize, block_size: usize) -> Self
pub fn try_for_2d_grid( width: usize, height: usize, block_width: usize, block_height: usize, ) -> Result<Self>
pub fn for_2d_grid( width: usize, height: usize, block_width: usize, block_height: usize, ) -> Self
pub fn try_for_3d_grid( width: usize, height: usize, depth: usize, block_width: usize, block_height: usize, block_depth: usize, ) -> Result<Self>
pub fn for_3d_grid( width: usize, height: usize, depth: usize, block_width: usize, block_height: usize, block_depth: usize, ) -> Self
Trait Implementations§
Source§impl Clone for LaunchConfig
impl Clone for LaunchConfig
Source§fn clone(&self) -> LaunchConfig
fn clone(&self) -> LaunchConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LaunchConfig
impl RefUnwindSafe for LaunchConfig
impl Send for LaunchConfig
impl Sync for LaunchConfig
impl Unpin for LaunchConfig
impl UnsafeUnpin for LaunchConfig
impl UnwindSafe for LaunchConfig
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