Determining the amount of available "video memory" is an ill-defined
problem. Some GPUs have different memory pools for different object
types, and some use unified memory architectures. Some operating
systems deal better with paging resources off the GPU than others.
The WebGL working group has asked GPU vendors on multiple occasions to
define APIs to query the amount of video memory identically across
GPUs, but there has been no success.