IDirect3DResource9 interface

Applications use the methods of the IDirect3DResource9 interface to query and prepare resources.

Members

The IDirect3DResource9 interface inherits from the IUnknown interface. IDirect3DResource9 also has these types of members:

Methods

The IDirect3DResource9 interface has these methods.

MethodDescription
FreePrivateData

Frees the specified private data associated with this resource.

GetDevice

Retrieves the device associated with a resource.

GetPriority

Retrieves the priority for this resource.

GetPrivateData

Copies the private data associated with the resource to a provided buffer.

GetType

Returns the type of the resource.

PreLoad

Preloads a managed resource.

SetPriority

Assigns the priority of a resource for scheduling purposes.

SetPrivateData

Associates data with the resource that is intended for use by the application, not by Direct3D. Data is passed by value, and multiple sets of data can be associated with a single resource.

 

Remarks

To create a texture resource, you can call one of the following methods.

To create a geometry-oriented resource, you can call one of the following methods.

This interface, like all COM interfaces, inherits from the IUnknown interface.

The LPDIRECT3DRESOURCE9 and PDIRECT3DRESOURCE9 types are defined as pointers to the IDirect3DResource9 interface.



    typedef struct IDirect3DResource9 *LPDIRECT3DRESOURCE9, *PDIRECT3DRESOURCE9;


Requirements

Header

D3D9.h

Library

D3d9.lib

See also

Direct3D Resources (Direct3D 9)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft