Skip to main content

KernelInfo

Trait KernelInfo 

Source
pub trait KernelInfo: OclInfoInternal<Param = cl_kernel_info> + Sized {
    // Required method
    fn as_unbound(&self) -> &UnboundKernel;

    // Provided methods
    fn function_name(&self) -> Result<CString> { ... }
    fn num_args(&self) -> Result<cl_uint> { ... }
    fn reference_count(&self) -> Result<cl_uint> { ... }
    fn context_raw(&self) -> Result<cl_context> { ... }
    fn program_raw(&self) -> Result<cl_program> { ... }
    fn attributes(&self) -> Result<CString> { ... }
    fn info_fmt(&self, f: &mut Formatter<'_>) -> Result { ... }
    fn arg_info(&self, idx: cl_uint) -> KernelArgInfo<'_> { ... }
}
Expand description

A trait implemented by OpenCL kernel types (UnboundKernel and Kernel) to provide access to OpenCL kernel information.

Required Methods§

Source

fn as_unbound(&self) -> &UnboundKernel

Get a reference to the unbound form of this kernel

Provided Methods§

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§