?/TD> |
Microsoft DirectX 9.0 |
Assigns the resource-management priority for this resource.
Syntax
DWORD SetPriority(
DWORD PriorityNew );
Parameters
- PriorityNew
- [in] DWORD value that specifies the new resource-management priority for the resource.
Return Value
Returns the previous priority value for the resource.
Remarks
IDirect3DTexture9::SetPriority is used for priority control of managed resources. This method returns 0 on non-managed 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::GetPriority, IDirect3DBaseTexture9::GetPriority, IDirect3DCubeTexture9::GetPriority, IDirect3DTexture9::GetPriority, IDirect3DVolumeTexture9::GetPriority, IDirect3DIndexBuffer9::GetPriority, IDirect3DVertexBuffer9::GetPriority