#[repr(C)]pub struct CKernel {
pub x: u32,
pub y: u32,
pub z: u32,
pub kernel_code_index: usize,
pub config_index: usize,
}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
kernel_code_index: usizesince v4.0.0 instead of directly passing kernel code , you have to pass return value of register_computing_kernel_code to this field
config_index: usizesince v4.0.0 instead of directly passing configs of your computing task you have to create_computing_gpu_resources return value to this field
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)