How to get the size of graphics memory?

Hello~ ^ ^/

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

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.

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.

There is an app for that