Hi,
i just discovered that using textures i can fetch the data from memory and do processing on it in one operation. However i have found that only interpolation formulas are available. In my application, i have to multiply 2 floats (32 bits) (or sum 2 floats). So, the question is, using this interpolation formulas, is there any way that i could fetch 2 floats by texture processor multiply them in one operation and put them in a variable for further processing by the kernel? Any example would be apriciated.
The linear interpolation in texture sampling is just that…it doesn’t provide a way to do arbitrary floating point arithmetic in a single instruction. However, this is not a big deal because a single multiplication or division is such an insignificant amount of computation anyway. You can, however, retrieve multiple floating point numbers from global memory with a single load instruction.