Device.AvailableTextureMemory Property (Microsoft.DirectX.Direct3D)
Retrieves an estimate of the amount of available texture memory.
System.Int32
This property is read-only.
Returns an estimate of the available texture memory.
The returned value is rounded to the nearest megabyte. This is done to reflect the fact that video memory estimates are never precise, due to alignment and other issues that affect consumption by certain resources. Applications can use the value to make gross estimates of memory availability for use in large-scale resource decisions (such as how many levels of a mipmap to attempt to allocate), but not to make small-scale decisions (such as whether enough memory is left to allocate another resource).