?/TD>
Microsoft DirectX 9.0

IDirect3DBaseTexture9::GetPriority Method


Retrieves the priority for this resource.

Syntax

DWORD GetPriority(VOID);

Return Value

Returns a DWORD value, indicating the priority of the resource.



Remarks

IDirect3DBaseTexture9::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.

See Also

IDirect3DResource9::SetPriority, IDirect3DBaseTexture9::SetPriority, IDirect3DCubeTexture9::SetPriority, IDirect3DTexture9::SetPriority, IDirect3DVolumeTexture9::SetPriority, IDirect3DIndexBuffer9::SetPriority, IDirect3DVertexBuffer9::SetPriority


© 2002 Microsoft Corporation. All rights reserved.