Video memory size detection in D3D