pub struct ComputeKernel {
pub source: String,
pub n_inputs: usize,
pub n_outputs: usize,
pub workgroup_size: u32,
pub dialect: Dialect,
pub entry_point: &'static str,
}Expand description
A generated compute kernel.
Fields§
§source: StringComplete kernel source code.
n_inputs: usizeNumber of input values per work item.
n_outputs: usizeNumber of output values per work item.
workgroup_size: u32Workgroup / threadgroup / block size.
dialect: DialectWhich dialect this kernel was generated for.
entry_point: &'static strEntry point function name.
Auto Trait Implementations§
impl Freeze for ComputeKernel
impl RefUnwindSafe for ComputeKernel
impl Send for ComputeKernel
impl Sync for ComputeKernel
impl Unpin for ComputeKernel
impl UnsafeUnpin for ComputeKernel
impl UnwindSafe for ComputeKernel
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