Device.AvailableTextureMemory Property (Microsoft.DirectX.Direct3D)

Retrieves an estimate of the amount of available texture memory.

Definition

Visual Basic Public ReadOnly Property AvailableTextureMemory As Integer
C# public int AvailableTextureMemory { get; }
C++ public:
property int AvailableTextureMemory {
        int get();
}
JScript public function get AvailableTextureMemory() : int

Property Value

System.Int32
Returns an estimate of the available texture memory.

This property is read-only. 

Remarks

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).