what is the use of sampler objects .give me an example

iam new to opencl.give me an example for that one…

Sampler Objects [5.5]

  1. clCreateSampler
  2. clRetainSampler
  3. clReleaseSampler
  4. clGetSamplerInfo

Sampler objects are required to use images. If you dont need images then you can ignore them.