PDA

View Full Version : How to get the size of graphics memory?



CROMA
08-07-2011, 06:34 PM
Hello~ ^ ^/

How do I know OpenGL can use the size of texture memory?

Zyx_2000
08-08-2011, 12:30 AM
This is not covered by the OpenGL specification. The easy answer is that you can't. For most purposes, this is unnecessary to do anyway. If you really need to do it, you must use driver or platform specific features.

Aleksandar
08-08-2011, 01:14 AM
If you are using NVIDIA's or AMD's graphics cards, then there are two extensions for the memory status reading:
- GL_NVX_gpu_memory_info,
- GL_ATI_meminfo.

Both are vendor specific.

V-man
08-08-2011, 05:49 AM
There is an app for that
memory (http://www.opengl.org/wiki/Common_Mistakes:_Deprecated#glAreTexturesResident_ and_Video_Memory)