Struct ocl::Program[][src]

pub struct Program(_);

A program from which kernels can be created from.

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]

Returns a new ProgramBuilder.

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

Prefer ::builder to create a new Program.

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

Prefer ::builder to create a new Program.

Returns a reference to the core pointer wrapper, usable by functions in the core module.

Returns info about this program.

Returns info about this program's build.

  • TODO: Check that device is valid.

Methods from Deref<Target = ProgramCore>

Returns a pointer, do not store it.

Returns the devices associated with this program.

Trait Implementations

impl Clone for Program
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Program
[src]

Formats the value using the given formatter. Read more

impl From<ProgramCore> for Program
[src]

Performs the conversion.

impl Display for Program
[src]

Formats the value using the given formatter. Read more

impl Deref for Program
[src]

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for Program
[src]

Mutably dereferences the value.

Auto Trait Implementations

impl Send for Program

impl Sync for Program