pub struct KernelMetadata {
pub required_workgroup_size: Option<[u32; 3]>,
pub max_threads: Option<u32>,
}Expand description
Launch limits for a GPU kernel. GPU codegen rejects a zero workgroup dimension, a
workgroup larger than 1024 threads or than max_threads, and a max_threads outside
1..=1024.
Fields§
§required_workgroup_size: Option<[u32; 3]>§max_threads: Option<u32>Trait Implementations§
Source§impl Clone for KernelMetadata
impl Clone for KernelMetadata
Source§impl Debug for KernelMetadata
impl Debug for KernelMetadata
Source§impl Default for KernelMetadata
impl Default for KernelMetadata
impl Eq for KernelMetadata
Source§impl PartialEq for KernelMetadata
impl PartialEq for KernelMetadata
impl StructuralPartialEq for KernelMetadata
Auto Trait Implementations§
impl Freeze for KernelMetadata
impl RefUnwindSafe for KernelMetadata
impl Send for KernelMetadata
impl Sync for KernelMetadata
impl Unpin for KernelMetadata
impl UnsafeUnpin for KernelMetadata
impl UnwindSafe for KernelMetadata
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