Detecting VRAM of your card?
Is there any way to detect the VRAM of my video card in-code? All the googling and searching leads me to a "no" thus far, but I figured it wouldn't hurt to ask just in case.
I noticed that when I go to the DirectX SDK's Caps Viewer and look under the DirectDraw Devices / Primary Display Driver / Memory / Video (Local), it reports exactly 268435456 Bytes (256MB), which is the same as my card. I am not sure how accurate that is, though (and it would require me to init DirectDraw just to check it, ugh!)
Any thoughts?
Yes there are several ways to find out. In the DirectX SDK there's a sample that demonstrates the different techniques. It's located in the Samples\C++\Misc\VideoMemory path from the SDK directory.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement