cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

anil007
Journeyman III

what is the difference between the sampler objects creation

1)cl_sampler clCreateSampler ( cl_context context,
cl_bool normalized_coords,
cl_addressing_mode addressing_mode,
cl_filter_mode filter_mode,
cl_int *errcode_ret) ,
in the above function what is the object
please explain the dufference between these two.

2)const sampler_t imgSamplerInt2 = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_NONE | CLK_FILTER_NEAREST;

0 Likes
1 Reply
nou
Exemplar

diference is that you create sampler dynamicali and you can decide filtering, address wraping... at runtime.

second is constatnt sampler when you do not need change parameters of sampler dynamically.

0 Likes