I realize that it is generally not relevant to know exactly how much texture memory is free since openGL should handle the swapping, but…
I display video files as textures and do so in several ways, one of which is to copy all the videos frames to texture memory and let it run from the device without any copying to the device while rendering. This obviously only works for somewhat small videos, even with texture compression, but I need to display a warning to the user if I fail to copy the entire video to texture memory, and then possibly abort the loading.
For this reason I need to either detect if a new texture causes an old one to swap out or I need to see how much free memory I have before creating each new texture, or even better, see how much memory I have available before starting to load the video to texture memory.
Are there any functions that can give me some of that information?