[][src]Struct dynamic_ocl::program::Program

pub struct Program(_);

An OpenCL program

Methods

impl Program[src]

pub fn create_kernel(&self, name: &CStr) -> Result<UnboundKernel>[src]

Create a kernel with a given name.

impl Program[src]

pub fn try_clone(&self) -> Result<Self>[src]

Attempt to clone this program, using clRetainProgram to ensure the program is not released while a wrapper still exists.

pub fn raw(&self) -> cl_program[src]

Get the raw handle for this program. Note that this handle is only a raw pointer and does not use RAII to ensure validity, so you must manually make sure that it's not released while still in use.

pub fn reference_count(&self) -> Result<cl_uint>[src]

pub fn context_raw(&self) -> Result<cl_context>[src]

pub fn num_devices(&self) -> Result<cl_uint>[src]

pub fn source(&self) -> Result<CString>[src]

pub fn il(&self) -> Result<Vec<u8>>[src]

pub fn binary_sizes(&self) -> Result<Vec<size_t>>[src]

pub fn num_kernels(&self) -> Result<size_t>[src]

pub fn kernel_names(&self) -> Result<CString>[src]

pub fn scope_global_ctors_present(&self) -> Result<bool>[src]

pub fn scope_global_dtors_present(&self) -> Result<bool>[src]

Trait Implementations

impl Debug for Program[src]

impl Drop for Program[src]

impl Eq for Program[src]

impl Hash for Program[src]

impl PartialEq<Program> for Program[src]

impl StructuralEq for Program[src]

impl StructuralPartialEq for Program[src]

Auto Trait Implementations

impl RefUnwindSafe for Program

impl !Send for Program

impl !Sync for Program

impl Unpin for Program

impl UnwindSafe for Program

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.