Trait KernelPtr

Source
pub unsafe trait KernelPtr: Sized {
    // Required method
    unsafe fn kernel_ptr(&self) -> cl_kernel;

    // Provided methods
    unsafe fn info<T: Copy>(&self, flag: KernelInfo) -> Output<ClPointer<T>> { ... }
    unsafe fn function_name(&self) -> Output<String> { ... }
    unsafe fn num_args(&self) -> Output<u32> { ... }
    unsafe fn reference_count(&self) -> Output<u32> { ... }
    unsafe fn context(&self) -> Output<ClContext> { ... }
    unsafe fn program(&self) -> Output<ClProgram> { ... }
    unsafe fn attributes(&self) -> Output<String> { ... }
}

Required Methods§

Source

unsafe fn kernel_ptr(&self) -> cl_kernel

Provided Methods§

Source

unsafe fn info<T: Copy>(&self, flag: KernelInfo) -> Output<ClPointer<T>>

Source

unsafe fn function_name(&self) -> Output<String>

Source

unsafe fn num_args(&self) -> Output<u32>

Returns the number of args for a kernel.

Source

unsafe fn reference_count(&self) -> Output<u32>

Returns the OpenCL reference count of the kernel.

Source

unsafe fn context(&self) -> Output<ClContext>

Source

unsafe fn program(&self) -> Output<ClProgram>

Source

unsafe fn attributes(&self) -> Output<String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§