IDirect3DResource9 interface (d3d9helper.h)
Applications use the methods of the IDirect3DResource9 interface to query and prepare resources.
Inheritance
The IDirect3DResource9 interface inherits from the IUnknown interface. IDirect3DResource9 also has these types of members:
Methods
The IDirect3DResource9 interface has these methods.
IDirect3DResource9::FreePrivateData The IDirect3DResource9::FreePrivateData method (d3d9helper.h) frees the specified private data associated with this resource. |
IDirect3DResource9::GetDevice The IDirect3DResource9::GetDevice method (d3d9helper.h) retrieves the device associated with a resource. |
IDirect3DResource9::GetPriority The IDirect3DResource9::GetPriority method (d3d9helper.h) retrieves the priority for this resource. |
IDirect3DResource9::GetPrivateData The IDirect3DResource9::GetPrivateData method (d3d9helper.h) copies the private data associated with the resource to a provided buffer. |
IDirect3DResource9::GetType The IDirect3DResource9::GetType method (d3d9helper.h) returns the type of the resource. |
IDirect3DResource9::PreLoad The IDirect3DResource9::PreLoad method (d3d9helper.h) preloads a managed resource. |
IDirect3DResource9::SetPriority The IDirect3DResource9::SetPriority method (d3d9helper.h) assigns the priority of a resource for scheduling purposes. |
IDirect3DResource9::SetPrivateData The IDirect3DResource9::SetPrivateData method (d3d9helper.h) associates data with the resource that is intended for use by the application, not by Direct3D. |
Remarks
To create a texture resource, you can call one of the following methods.
- IDirect3DDevice9::CreateCubeTexture
- IDirect3DDevice9::CreateTexture
- IDirect3DDevice9::CreateVolumeTexture
The LPDIRECT3DRESOURCE9 and PDIRECT3DRESOURCE9 types are defined as pointers to the IDirect3DResource9 interface.
typedef struct IDirect3DResource9 *LPDIRECT3DRESOURCE9, *PDIRECT3DRESOURCE9;
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d9helper.h (include D3D9.h) |