pub struct RenderedKernel {
pub code: String,
pub name: String,
pub buffer_args: Vec<BufferArg>,
pub var_names: Vec<String>,
pub global_size: Option<[usize; 3]>,
pub local_size: Option<[usize; 3]>,
}Expand description
A rendered kernel ready for compilation and execution.
Fields§
§code: StringThe generated code (LLVM IR, CUDA C, etc.)
name: StringKernel name (used as entry point and for debugging/caching).
buffer_args: Vec<BufferArg>Buffer argument information.
var_names: Vec<String>Variable names in order (for populating vars array at runtime). Includes thread_id at the end if threading is enabled.
global_size: Option<[usize; 3]>Global work size (for GPU backends).
local_size: Option<[usize; 3]>Local work size (for GPU backends).
Implementations§
Trait Implementations§
Source§impl Clone for RenderedKernel
impl Clone for RenderedKernel
Source§fn clone(&self) -> RenderedKernel
fn clone(&self) -> RenderedKernel
Returns a duplicate of the value. Read more
1.0.0 · 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 RenderedKernel
impl RefUnwindSafe for RenderedKernel
impl Send for RenderedKernel
impl Sync for RenderedKernel
impl Unpin for RenderedKernel
impl UnsafeUnpin for RenderedKernel
impl UnwindSafe for RenderedKernel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more