#[repr(transparent)]pub struct RawKernel(_);Implementations§
source§impl RawKernel
impl RawKernel
pub const fn id(&self) -> cl_kernel
pub const unsafe fn from_id_unchecked(id: cl_kernel) -> Self
pub const unsafe fn from_id(id: cl_kernel) -> Option<Self>
pub unsafe fn retain(&self) -> Result<()>
pub unsafe fn set_argument<T: Copy, R: Borrow<T>>( &mut self, idx: u32, v: R ) -> Result<()>
pub unsafe fn set_ptr_argument( &mut self, idx: u32, size: usize, ptr: *const c_void ) -> Result<()>
pub unsafe fn allocate_argument(&mut self, idx: u32, size: usize) -> Result<()>
pub unsafe fn set_svm_argument<T: ?Sized, S: SvmPointer<T>>( &mut self, idx: u32, v: &S ) -> Result<()>
Available on crate feature
svm only.pub unsafe fn enqueue_unchecked<const N: usize>( &mut self, queue: &RawCommandQueue, global_work_dims: [usize; N], local_work_dims: impl Into<Option<[usize; N]>>, wait: WaitList<'_> ) -> Result<RawEvent>
pub unsafe fn enqueue_with_scope<'scope, 'env, C: Context, const N: usize>( &mut self, scope: &'scope Scope<'scope, 'env, C>, global_work_dims: [usize; N], local_work_dims: impl Into<Option<[usize; N]>>, wait: WaitList<'_> ) -> Result<NoopEvent>
pub unsafe fn enqueue_phantom_with_scope<'scope, 'env, T: 'scope, C: Context, const N: usize>( &mut self, scope: &'scope Scope<'scope, 'env, C>, global_work_dims: [usize; N], local_work_dims: impl Into<Option<[usize; N]>>, wait: WaitList<'_> ) -> Result<PhantomEvent<T>>
sourcepub fn reference_count(&self) -> Result<u32>
pub fn reference_count(&self) -> Result<u32>
Return the kernel reference count.
sourcepub fn raw_context(&self) -> Result<RawContext>
pub fn raw_context(&self) -> Result<RawContext>
Return the context associated with kernel.
sourcepub fn program(&self) -> Result<RawProgram>
pub fn program(&self) -> Result<RawProgram>
Return the program object associated with kernel.
source§impl RawKernel
impl RawKernel
sourcepub fn arg_address_qualifier(&self, idx: u32) -> Result<AddrQualifier>
Available on crate feature cl1_2 only.
pub fn arg_address_qualifier(&self, idx: u32) -> Result<AddrQualifier>
cl1_2 only.Returns the address qualifier specified for the argument given by idx.
sourcepub fn arg_access_qualifier(&self, idx: u32) -> Result<MemAccess>
Available on crate feature cl1_2 only.
pub fn arg_access_qualifier(&self, idx: u32) -> Result<MemAccess>
cl1_2 only.Returns the access qualifier specified for the argument given by idx.
sourcepub fn arg_type_name(&self, idx: u32) -> Result<String>
Available on crate feature cl1_2 only.
pub fn arg_type_name(&self, idx: u32) -> Result<String>
cl1_2 only.Returns the type name specified for the argument given by idx.
sourcepub fn arg_qualifier(&self, idx: u32) -> Result<String>
Available on crate feature cl1_2 only.
pub fn arg_qualifier(&self, idx: u32) -> Result<String>
cl1_2 only.Returns the type qualifier specified for the argument given by idx.
Trait Implementations§
source§impl PartialEq<RawKernel> for RawKernel
impl PartialEq<RawKernel> for RawKernel
impl Eq for RawKernel
impl Send for RawKernel
impl StructuralEq for RawKernel
impl StructuralPartialEq for RawKernel
impl Sync for RawKernel
Auto Trait Implementations§
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