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.

Deprecated since 0.13.0

: Use ::core instead.

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

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

Deprecated since 0.13.0

: Use ::info with ProgramInfo::Devices instead.

Returns the list of devices associated with this program.

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.

impl Display for Program
[src]

Formats the value using the given formatter. Read more

impl Deref for Program
[src]

The resulting type after dereferencing

The method called to dereference a value

impl DerefMut for Program
[src]

The method called to mutably dereference a value