Partager via


IDirect3DResource8::SetPriority

This method assigns the resource-management priority for this resource.

DWORD SetPriority(
  DWORD PriorityNew
);

Parameters

  • PriorityNew
    [in] DWORD value that specifies the new resource-management priority for the resource.

Return Values

Returns the previous priority value for the resource.

Remarks

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.

This method applies to the following interfaces, which inherit from IDirect3DResource8.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3d8.h.
Link Library: D3d8.lib.

See Also

IDirect3DResource8::GetPriority | IDirect3DResource8

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.