d3d7 code to get available video memory size (ex ConfigSystem.exe on d3d9 sdk).
Attach a file by drag & drop or click to upload