[−][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]
context: &ClContext,
src: &str
) -> Output<ClProgram>
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]
context: &ClContext,
device: &ClDeviceID,
bin: &[u8]
) -> Output<ClProgram>
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]
D: DevicePtr,