![]() |
![]() |
![]() |
Device.AvailableTextureMemory Property |
Language: |
Retrieves an estimate of the amount of available texture memory.
Visual Basic .NET Public ReadOnly Property AvailableTextureMemory As Integer C# public int AvailableTextureMemory { get; } Managed C++ public: __property int get_AvailableTextureMemory(); JScript .NET public function get AvailableTextureMemory() : int
System.Int32 . Returns an estimate of the available texture memory.
This property is read-only.
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).
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center