once again using the low-level API in C#. I have defined my texture in the following way:
[codebox]texture<float, 3, cudaReadModeNormalizedFloat> texRef;
I my C# code I get a reference to the texture by using cuModuleGetTexRef.
Afterwards I use the cuTexRefGetFlags command to find out which readmode I have.
The problem is, that the result is always 0 no matter what I have set as read mode (cudaReadModeNormalizedFloat, cudaReadModeElementType).
What could be wrong?
It is also weird that in enumeration
[font=“Courier New”]enum cudaTextureReadMode
the [font=“Courier New”]cudaReadModeElementType [/font]starts with 0, but for the two constants the
the [font=“Courier New”]CU_TRSF_READ_AS_INTEGER [/font]starts with 0
Am I wrong somehow?