[][src]Struct fil_ocl::Program

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]

pub fn builder<'b>() -> ProgramBuilder<'b>[src]

Returns a new ProgramBuilder.

pub fn with_source(
    context: &ContextCore,
    src_strings: &[CString],
    devices: Option<&[Device]>,
    cmplr_opts: &CString
) -> OclResult<Program>
[src]

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

Prefer ::builder to create a new Program.

pub fn with_binary(
    context: &ContextCore,
    devices: &[Device],
    binaries: &[&[u8]],
    cmplr_opts: &CString
) -> OclResult<Program>
[src]

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

Prefer ::builder to create a new Program.

pub fn as_core(&self) -> &ProgramCore[src]

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

pub fn info(&self, info_kind: ProgramInfo) -> OclCoreResult<ProgramInfoResult>[src]

Returns info about this program.

pub fn build_info(
    &self,
    device: Device,
    info_kind: ProgramBuildInfo
) -> OclCoreResult<ProgramBuildInfoResult>
[src]

Returns info about this program's build.

  • TODO: Check that device is valid.

Methods from Deref<Target = ProgramCore>

pub fn as_ptr(&self) -> *mut c_void[src]

Returns a pointer, do not store it.

pub fn devices(&self) -> Result<Vec<DeviceId>, Error>[src]

Returns the devices associated with this program.

Trait Implementations

impl From<Program> for Program[src]

impl Clone for Program[src]

impl Display for Program[src]

impl Debug for Program[src]

impl Deref for Program[src]

type Target = ProgramCore

The resulting type after dereferencing.

impl DerefMut for Program[src]

Auto Trait Implementations

impl Send for Program

impl Sync for Program

impl Unpin for Program

impl UnwindSafe for Program

impl RefUnwindSafe for Program

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]