Linear Interpolation on floats ...


I have an array of floats I want to interpolate. Can I do that via textures? The documentation is somewhat disambigous here:

Does that mean, the texture must be defined using cudaReadModeNormalizedFloat to perform lerp?



No, because the return value of cudaReadModeElementType is a float. Be warned… values are only interpolated to 256 locations between texel centres (although the evaluation of at those locations is done at full accuracy).

Great, thank you for your answer.

Problem solved!

Well, another question has raised:

Is it possible to perform lineaar interpolation on a 1D float array on linear memory or do I have to use cuArray to bind the texture?

Thanks in advance,