Jon, you are right - cudaAddressModeBorder doesn’t seem to have corresponding function to set user-defined border values (according to CUDA 3.2 reference manual). It is quite interesting because I thought that the functionality will be similar to OpenGL.
Let’s hope NVIDIA guys will help us understand how to set user defined border value.
It only works with normalized coordinates, like the repeat modes.
Unfortunately the border color is fixed to black (zero) currently. We have an RFE open to add an API function to set the border color. Post here if you would like this.
Yes, we’d make use of the ability to use an API call to set the border color used with cudaAddressModeBorder. Black is useful but restrictive, and it would help in some of our mosaic techniques to be able to use another border clamp value (any arbitrary value within range for the texture type).