[−][src]Struct dynamic_ocl::kernel::UnboundKernel
An OpenCL kernel, with arguments not yet set
Methods
impl UnboundKernel
[src]
pub fn bind_arguments<T: KernelArgList>(self, arguments: T) -> Result<Kernel<T>>
[src]
Bind arguments to this kernel, performing type checks and calling
clSetKernelArg
to set values.
When OpenCL 1.2+ features are available, this call will attempt to check
the type of each argument before each call to clSetKernelArg
. If the
types appear to be incompatible, as determined by
KernelArg::is_param_type_compatible
, it will panic. If this behavior
isn't desired, bind_arguments_unchecked
can be used instead.
pub fn bind_arguments_unchecked<T: KernelArgList>(
self,
arguments: T
) -> Result<Kernel<T>>
[src]
self,
arguments: T
) -> Result<Kernel<T>>
Bind arguments to this kernel, without performing assertions for number or type of arguments.
Safety
This function is not unsafe in terms of memory safety, but it should still be used with care, as it can lead to unexpected results if the argument types don't match those of the OpenCL code.
pub fn raw(&self) -> cl_kernel
[src]
Trait Implementations
impl Debug for UnboundKernel
[src]
impl Drop for UnboundKernel
[src]
impl Eq for UnboundKernel
[src]
impl Hash for UnboundKernel
[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 KernelInfo for UnboundKernel
[src]
fn as_unbound(&self) -> &UnboundKernel
[src]
fn function_name(&self) -> Result<CString>
[src]
fn num_args(&self) -> Result<cl_uint>
[src]
fn reference_count(&self) -> Result<cl_uint>
[src]
fn context_raw(&self) -> Result<cl_context>
[src]
fn program_raw(&self) -> Result<cl_program>
[src]
fn attributes(&self) -> Result<CString>
[src]
fn info_fmt(&self, f: &mut Formatter) -> Result
[src]
fn arg_info(&self, idx: cl_uint) -> KernelArgInfo
[src]
impl PartialEq<UnboundKernel> for UnboundKernel
[src]
fn eq(&self, other: &UnboundKernel) -> bool
[src]
fn ne(&self, other: &UnboundKernel) -> bool
[src]
impl StructuralEq for UnboundKernel
[src]
impl StructuralPartialEq for UnboundKernel
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnboundKernel
impl !Send for UnboundKernel
impl !Sync for UnboundKernel
impl Unpin for UnboundKernel
impl UnwindSafe for UnboundKernel
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>,