#[repr(C)]pub struct Program(_);Expand description
cl_program
Implementations
sourceimpl Program
impl Program
sourcepub unsafe fn from_raw_create_ptr(ptr: cl_program) -> Program
pub unsafe fn from_raw_create_ptr(ptr: cl_program) -> Program
Only call this when passing the original newly created pointer
directly from clCreate.... Do not use this to clone or copy.
sourcepub unsafe fn from_raw_copied_ptr(ptr: cl_program) -> Program
pub unsafe fn from_raw_copied_ptr(ptr: cl_program) -> Program
Only call this when passing a copied pointer such as from an
clGet*****Info function.
sourcepub fn as_ptr(&self) -> cl_program
pub fn as_ptr(&self) -> cl_program
Returns a pointer, do not store it.
sourcepub fn devices(&self) -> OclCoreResult<Vec<DeviceId>>
pub fn devices(&self) -> OclCoreResult<Vec<DeviceId>>
Returns the devices associated with this program.
Trait Implementations
sourceimpl ClVersions for Program
impl ClVersions for Program
fn device_versions(&self) -> OclCoreResult<Vec<OpenclVersion>>
fn platform_version(&self) -> OclCoreResult<OpenclVersion>
fn verify_device_versions(&self, required_version: [u16; 2]) -> OclCoreResult<()>
fn verify_platform_version(
&self,
required_version: [u16; 2]
) -> OclCoreResult<()>
impl Send for Program
impl Sync for Program
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more