It seems the CLK_ADDRESS_REPEAT will not work properly :
Code :const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_FILTER_NEAREST | CLK_ADDRESS_REPEAT;
With these sampler parameters, if I try to read out of the texture original domain, I will always get the edge color.
The code to read the 2d float texture is :
Code :// kernel parameter __read_only image2d_t in_fTexture // Code to read int2 i2Coord; i2Coord.x = get_global_id(0); i2Coord.y = get_global_id(1); float4 v4Pos = read_imagef( in_fTexure, sampler, i2Coord );
Do you know what I am missing to have the CLK_ADDRESS_REPEAT to work?
I am working with a GeForce GT 220 card with 285.62 Win 7 x64 drivers.