[][src]Type Definition open_cl_low_level::program::ClProgram

type ClProgram = ObjectWrapper<cl_program>;

Methods

impl ClProgram[src]

pub unsafe fn create_with_source(
    context: &ClContext,
    src: &str
) -> Output<ClProgram>
[src]

Creates a new ClProgram on the context and device with the given OpenCL source code.

Safety

The provided ClContext and ClDeviceID must be in valid state or else undefined behavior is expected.

pub unsafe fn create_with_binary(
    context: &ClContext,
    device: &ClDeviceID,
    bin: &[u8]
) -> Output<ClProgram>
[src]

Creates a new ClProgram on the context and device with the given executable binary.

Safety

The provided ClContext and ClDeviceID must be in valid state or else undefined behavior is expected.

pub fn build<D>(&mut self, devices: &[D]) -> Output<()> where
    D: DevicePtr
[src]

pub fn get_log<D: DevicePtr>(&self, device: &D) -> Output<String>[src]

Trait Implementations

impl ProgramPtr for ClProgram[src]