Partager via


IDirect3DMobileResource::SetPriority

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method 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

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

Requirements

Header d3dm.h
Library D3dm.lib, D3dmguid.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IDirect3DMobileResource
IDirect3DMobileResource
IDirect3DMobileBaseTexture
IDirect3DMobileIndexBuffer
IDirect3DMobileTexture
IDirect3DMobileVertexBuffer