ID3DXPRTEngine::ExtractPerVertexAlbedo method
Copies per-vertex albedo values from a mesh.
Syntax
HRESULT ExtractPerVertexAlbedo(
[in] LPD3DXMESH pMesh,
[in] D3DDECLUSAGE Usage,
[in] UINT NumChanIn
);
Parameters
-
pMesh [in]
-
Type: LPD3DXMESH
Pointer to the ID3DXMesh mesh object used in D3DXCreatePRTEngine to create the ID3DXPRTEngine object.
-
Usage [in]
-
Type: D3DDECLUSAGE
Vertex usage descriptions to copy from the mesh. See D3DDECLUSAGE.
-
NumChanIn [in]
-
Type: UINT
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
Type: HRESULT
If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also