[CUDA+OpenGL] OGL cubemaps/textures 3D issue

I tried to use OpenGL cubemap textures in my kernel, but got confused by the idea of the procedure ‘cuGraphicsSubResourceGetMappedArray’. And to be precise the parameter ‘arrayIndex’ - providing here one of the ‘CUarray_cubemap_face’ enumerants will get me a single face in the output array. How then can I make it to have one texture reference to the whole OpenGL cubemap? Is this even possible? Do I have to get all of the faces separately and somehow “link” them together into a single texture? And what about textures 3D - does the same scenario need to be applied in regard to every layer?


Similar issue (also by me) on Stackoverflow.