#[repr(C)]pub struct CKernel {
pub x: u32,
pub y: u32,
pub z: u32,
pub code: *const c_char,
pub code_entry_point: *const c_char,
pub config: GPUComputingConfig,
}Expand description
CKernel which will represent your GPU task like how Manifest.xml does in an android project
Fields§
§x: u32set max number of workgroups in x dimension
y: u32set max number of workgroups in y dimension
z: u32set max number of workgroups in z dimension
code: *const c_charthis is a kernel code which must be in wgsl for now more shading languages will be supported in the future
code_entry_point: *const c_charthis part in the code , tell to the api which function in the code must be called by gpu when the task is sent to gpu
config: GPUComputingConfigby setting config you can customize behavior of the gpu
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CKernel
impl RefUnwindSafe for CKernel
impl !Send for CKernel
impl !Sync for CKernel
impl Unpin for CKernel
impl UnwindSafe for CKernel
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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