[−][src]Struct opencl_core::program::Program
Methods
impl Program
[src]
pub fn create_with_source(
context: &Context,
src: &str
) -> Output<UnbuiltProgram>
[src]
context: &Context,
src: &str
) -> Output<UnbuiltProgram>
pub fn create_with_binary(
context: &Context,
device: &Device,
binary: &[u8]
) -> Output<UnbuiltProgram>
[src]
context: &Context,
device: &Device,
binary: &[u8]
) -> Output<UnbuiltProgram>
pub unsafe fn new(
object: ClProgram,
context: Context,
devices: Vec<Device>
) -> Program
[src]
object: ClProgram,
context: Context,
devices: Vec<Device>
) -> Program
pub unsafe fn from_low_level_program(program: &ClProgram) -> Output<Program>
[src]
pub fn devices(&self) -> &[Device]
[src]
pub fn context(&self) -> &Context
[src]
pub fn low_level_program(&self) -> &ClProgram
[src]
Trait Implementations
impl Clone for Program
[src]
impl Debug for Program
[src]
impl Drop for Program
[src]
impl Eq for Program
[src]
impl PartialEq<Program> for Program
[src]
impl ProgramPtr for Program
[src]
unsafe fn program_ptr(&self) -> cl_program
[src]
fn reference_count(&self) -> Result<u32, Error>
[src]
fn num_devices(&self) -> Result<usize, Error>
[src]
fn source(&self) -> Result<String, Error>
[src]
fn binary_sizes(&self) -> Result<Vec<usize>, Error>
[src]
fn binaries(&self) -> Result<Vec<u8>, Error>
[src]
fn num_kernels(&self) -> Result<usize, Error>
[src]
fn kernel_names(&self) -> Result<Vec<String>, Error>
[src]
fn devices(&self) -> Result<Vec<ObjectWrapper<*mut _cl_device_id>>, Error>
[src]
fn context(&self) -> Result<ObjectWrapper<*mut _cl_context>, Error>
[src]
impl<'_> ProgramPtr for &'_ Program
[src]
unsafe fn program_ptr(&self) -> cl_program
[src]
fn reference_count(&self) -> Result<u32, Error>
[src]
fn num_devices(&self) -> Result<usize, Error>
[src]
fn source(&self) -> Result<String, Error>
[src]
fn binary_sizes(&self) -> Result<Vec<usize>, Error>
[src]
fn binaries(&self) -> Result<Vec<u8>, Error>
[src]
fn num_kernels(&self) -> Result<usize, Error>
[src]
fn kernel_names(&self) -> Result<Vec<String>, Error>
[src]
fn devices(&self) -> Result<Vec<ObjectWrapper<*mut _cl_device_id>>, Error>
[src]
fn context(&self) -> Result<ObjectWrapper<*mut _cl_context>, Error>
[src]
impl<'_> ProgramPtr for &'_ mut Program
[src]
unsafe fn program_ptr(&self) -> cl_program
[src]
fn reference_count(&self) -> Result<u32, Error>
[src]
fn num_devices(&self) -> Result<usize, Error>
[src]
fn source(&self) -> Result<String, Error>
[src]
fn binary_sizes(&self) -> Result<Vec<usize>, Error>
[src]
fn binaries(&self) -> Result<Vec<u8>, Error>
[src]
fn num_kernels(&self) -> Result<usize, Error>
[src]
fn kernel_names(&self) -> Result<Vec<String>, Error>
[src]
fn devices(&self) -> Result<Vec<ObjectWrapper<*mut _cl_device_id>>, Error>
[src]
fn context(&self) -> Result<ObjectWrapper<*mut _cl_context>, Error>
[src]
impl Send for Program
[src]
impl Sync for Program
[src]
Auto Trait Implementations
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,