Device.AvailableTextureMemory Property |
Language: |
Retrieves an estimate of the amount of available texture memory.
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
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).
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center