[][src]Trait open_cl_low_level::program::ProgramPtr

pub unsafe trait ProgramPtr: Sized {
    unsafe fn program_ptr(&self) -> cl_program;

    fn reference_count(&self) -> Output<u32> { ... }
fn num_devices(&self) -> Output<usize> { ... }
fn source(&self) -> Output<String> { ... }
fn binary_sizes(&self) -> Output<Vec<usize>> { ... }
fn binaries(&self) -> Output<Vec<u8>> { ... }
fn num_kernels(&self) -> Output<usize> { ... }
fn kernel_names(&self) -> Output<Vec<String>> { ... }
fn devices(&self) -> Output<Vec<ClDeviceID>> { ... }
fn context(&self) -> Output<ClContext> { ... } }

ProgramPtr is the trait to access a cl_program for wrappers of that cl_program.

Safety

Direct interaction with any OpenCL pointer is unsafe so this trait is unsafe.

Required methods

unsafe fn program_ptr(&self) -> cl_program

program_ptr is the trait to access a cl_program for wrappers of that cl_program.

Safety

Direct interaction with any OpenCL pointer is unsafe so this trait is unsafe.

Loading content...

Provided methods

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

The OpenCL reference count of the cl_program.

fn num_devices(&self) -> Output<usize>

The number of devices that this cl_program is built on.

fn source(&self) -> Output<String>

The source code String of this OpenCL program.

fn binary_sizes(&self) -> Output<Vec<usize>>

The size of the binaries for this OpenCL program.

fn binaries(&self) -> Output<Vec<u8>>

The executable binaries for this OpenCL program.

fn num_kernels(&self) -> Output<usize>

The number of kernels (defined functions) in this OpenCL program.

fn kernel_names(&self) -> Output<Vec<String>>

The names of the kernels (defined functions) in this OpenCL program.

fn devices(&self) -> Output<Vec<ClDeviceID>>

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

Loading content...

Implementors

impl ProgramPtr for ClProgram[src]

Loading content...