d3d9.dllExtractPerVertexAlbedo
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXPRTEngine::ExtractPerVertexAlbedo Method


Copies per-vertex albedo values from a mesh.

Syntax

HRESULT ExtractPerVertexAlbedo(      

    LPD3DXMESH pMesh,     D3DDECLUSAGE Usage,     UINT NumChanIn );

Parameters

pMesh
[in] Pointer to the ID3DXMesh mesh object used in D3DXCreatePRTEngine to create the ID3DXPRTEngine object.
Usage
[in] Vertex usage descriptions to copy from the mesh. See D3DDECLUSAGE.
NumChanIn
[in] Number of color channels to copy from the mesh. Set to 1 to specify gray materials (R = G = B), or 3 to enable color bleeding effects.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be one of the following:

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
E_OUTOFMEMORYMicrosoft Direct3D could not allocate sufficient memory to complete the call.




© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.