Can somebody give me an example or link as to how you can get the video card memory size, i know hoe enumerate devices and get say the adaptor make but cant find anything on getting the memory of the card.
thanks
Can somebody give me an example or link as to how you can get the video card memory size, i know hoe enumerate devices and get say the adaptor make but cant find anything on getting the memory of the card.
thanks
You'll have to query the driver and read the information in the structure.
how about,
IDirect3DDevice9::GetAvailableTextureMem
i cant even find a a working example of how to use this. i know its not that acurate but still want to have a go.
For something more precise you will probably need to retrieve the adapter ordinal number from D3D and then use a Win32 API call to find out the total memory and/or total memory left on the card. Windows has this information and you can query for it.Code:UINT dwEstimatedVideoMem=Device->GetAvailableTextureMem();
A quick and dirty method would be to call this prior to using any memory and then after you are done loading everything. Compare them and you have an idea of the size of your data. Again it's not precise.