Enum ocl::enums::KernelArg [] [src]

pub enum KernelArg<'a, T> where
    T: 'a + OclPrm
{ Mem(&'a Mem), MemNull, Sampler(&'a Sampler), SamplerNull, Scalar(T), Vector(T), Local(&'a usize), UnsafePointer { size: usize, value: *const c_void, }, }

[UNSAFE] Kernel argument option type.

The type argument T is ignored for Mem, Sampler, and UnsafePointer (just put usize or anything).

Safety

If there was some way for this enum to be marked unsafe it would be.

The Mem, Sampler, Scalar, and Local variants are tested and will work perfectly well.

Variants

Type T is ignored.

Type T is ignored.

Type T is ignored.

Type T is ignored.

Length in multiples of T (not bytes).

size: size in bytes. Type T is ignored.

Fields of UnsafePointer

Trait Implementations

impl<'a, T> Debug for KernelArg<'a, T> where
    T: 'a + OclPrm + Debug
[src]

Formats the value using the given formatter.