Enum ocl::raw::KernelArg [] [src]

pub enum KernelArg<'a, T: 'a> {
    Mem(MemRaw),
    Sampler(SamplerRaw),
    Scalar(&'a T),
    Vector(&'a [T]),
    Local(usize),
    Other {
        size: size_t,
        value: *const c_void,
    },
}

Kernel argument option type.

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

Variants

Mem(MemRaw)

Type T is ignored.

Sampler(SamplerRaw)

Type T is ignored.

Scalar(&'a T)Vector(&'a [T])Local(usize)

Length in multiples of T (not bytes).

Other

size: size in bytes. Type T is ignored.

Fields

size: size_t
value: *const c_void