Microsoft DirectX 8.1 (C++) |
Retrieves the priority for this resource.
DWORD GetPriority();
None.
Returns a DWORD value, indicating the priority of the resource.
This method applies to the following interfaces, which inherit from IDirect3DResource8.
GetPriority is used for priority control of managed resources. This method returns 0 on nonmanaged resources.
Priorities are used to determine when managed resources are to be removed from memory. A resource assigned a low priority is removed before a resource with a high priority. If two resources have the same priority, the resource that was used more recently is kept in memory; the other resource is removed. Managed resources have a default priority of 0.
Header: Declared in D3d8.h.
Import Library: Use D3d8.lib.