[−][src]Struct dynamic_ocl::program::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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,