Sampler Objects (s#)
built-in functions to read from an image in akernel take a sampler as an argument
(1) create using OpenCL functions and passed as argument values to the kernel
(2) declare the samplers inside a kernel
clRetainSampler: increments the sampler reference count
clReleaseSampler: decrements the sampler reference count
clGetSamplerInfo: information about the sampler object
Program Objects (c#)
program object consists of a set of kernels, as well as auxiliary functions and constant data used by kernels
program cab be generated online or offline
to be continued ...