Struct ocl::Program [] [src]

pub struct Program {
    // some fields omitted
}

A program, sometimes referred to as a build.

To use with multiple devices, create manually with ::from_parts().

Destruction

Handled automatically. Feel free to store, clone, and share among threads as you please.

Methods

impl Program
[src]

fn builder() -> ProgramBuilder

Returns a new ProgramBuilder.

fn new(program_builder: ProgramBuilder, context: &Context, device_idxs: Vec<usize>) -> OclResult<Program>

Returns a new program.

fn from_parts(src_strings: Vec<CString>, cmplr_opts: CString, context_obj_core: &ContextCore, device_ids: &[Device]) -> OclResult<Program>

Returns a new program built from pre-created build components and device list.

fn core_as_ref(&self) -> &ProgramCore

Returns the associated OpenCL program object.

fn devices(&self) -> &[Device]

fn info(&self, info_kind: ProgramInfo) -> ProgramInfoResult

Returns info about this program.

fn build_info(&self, device: Device, info_kind: ProgramBuildInfo) -> ProgramBuildInfoResult

Returns info about this program's build.

TODO: Check that device is valid.

Trait Implementations

impl Debug for Program
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Program
[src]

fn clone(&self) -> Program

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Display for Program
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.