# cudaGraphicsGLRegisterImage :: allowed formats?

**URL:** <https://forums.developer.nvidia.com/t/cudagraphicsglregisterimage-allowed-formats/16775>\
**Category:** CUDA Programming and Performance\
**Created:** [May 25, 2010, 4:09pm UTC](https://forums.developer.nvidia.com/t/cudagraphicsglregisterimage-allowed-formats/16775 "2010-05-25T16:09:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pium](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@pium](https://forums.developer.nvidia.com/u/pium)\
**Post date:** [May 25, 2010, 4:09pm UTC](https://forums.developer.nvidia.com/t/cudagraphicsglregisterimage-allowed-formats/16775/1 "2010-05-25T16:09:24Z")

</div>

Hi,  
(again me and cudaGraphicsGLRegisterImage)

I’d like to know what types are allowed in cudaGraphicsGLRegisterImage.

In [url=“[http://forums.nvidia.com/index.php?showtopic=164987](http://forums.nvidia.com/index.php?showtopic=164987)”][The Official NVIDIA Forums | NVIDIA](http://forums.nvidia.com/index.php?showtopic=164987%5B/url%5D) we can find few OK formats. But If I want a texture of gray level usable in openGL, which format must I choose ?

I am playing for a long time with all king of format and I can’t achieve a gray level texture…

```
glTexImage3D(GL_TEXTURE_3D, 0, GL_ALPHA, 512,512,512, 0, GL_ALPHA, GL_BYTE, myArray); works in opengl but can't be used with cudaGraphicsGLRegisterImage 

```

Please can you help me !

– pium

---

<div class="post-metadata">

**Author:** ![pium](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@pium](https://forums.developer.nvidia.com/u/pium)\
**Post date:** [May 27, 2010, 7:32am UTC](https://forums.developer.nvidia.com/t/cudagraphicsglregisterimage-allowed-formats/16775/2 "2010-05-27T07:32:33Z")

</div>

Nobody is using cudaGraphicsGLRegisterImage?

Or do I forget something on the doc?  
I am lost in all possible texture formats…

– pium

---

<div class="post-metadata">

**Author:** ![pium](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@pium](https://forums.developer.nvidia.com/u/pium)\
**Post date:** [May 27, 2010, 7:32am UTC](https://forums.developer.nvidia.com/t/cudagraphicsglregisterimage-allowed-formats/16775/3 "2010-05-27T07:32:33Z")

</div>

Nobody is using cudaGraphicsGLRegisterImage?

Or do I forget something on the doc?  
I am lost in all possible texture formats…

– pium
