IDirect3DResource9

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

IDirect3DResource9
   IDirect3DBaseTexture9
      IDirect3DCubeTexture9
      IDirect3DTexture9
      IDirect3DVolumeTexture9
   IDirect3DIndexBuffer9
   IDirect3DSurface9
   IDirect3DVertexBuffer9
   IDirect3DVolume9

IDirect3DResource9 Members

Method Description
IDirect3DResource9::FreePrivateData Frees the specified private data associated with this resource.
IDirect3DResource9::GetDevice Retrieves the device associated with a resource.
IDirect3DResource9::GetPriority Retrieves the priority for this resource.
IDirect3DResource9::GetPrivateData Copies the private data associated with the resource to a provided buffer.
IDirect3DResource9::GetType Returns the type of the resource.
IDirect3DResource9::PreLoad Preloads a managed resource.
IDirect3DResource9::SetPriority Assigns the resource-management priority for this resource.
IDirect3DResource9::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;

See Also

Direct3D Resources

Requirements

Header: Declared in D3d9.h.

Import Library: Use D3d9.lib.