i tried to map a 2D luminance texture to CUDA memory.
When I use cudaGraphicsGLRegisterImage to register the texture I always get an error. With GL_RGBA and GL_UNSIGNED_BYTE everything works fine.
Can somebody tell me how to use the new functionality with GL_LUMINANCE / GL_FLOAT textures?
Are you sure the format of your CUDA array matches the format of the OpenGL texture? Please post complete code.
BTW, the semantics of the GL_LUMINANCE format have always been a bit weird, and in OpenGL 4.0 it has been deprecated. You might want to try the new simpler GL_RED format instead.