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

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

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

08-08-2011, 01: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.

08-08-2011, 02: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.

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