D3DXCreatePRTEngine

Creates an ID3DXPRTEngine object that can efficiently generate precomputed radiance transfer (PRT) simulations of a 3D scene.

HRESULT D3DXCreatePRTEngine(
  LPD3DXMESH pMesh,
  DWORD * pAdjacency,
  BOOL ExtractUVs,
  LPD3DXMESH pBlockerMesh,
  LPD3DXPRTENGINE ppEngine
);

Parameters

pMesh
[in] Pointer to an input ID3DXMesh mesh object that models the 3D scene. This mesh must have an attribute table in which vertices are in a unique attribute.
pAdjacency
[in] Optional pointer to an array of three DWORDs per face to be filled with adjacent face indices. The number of bytes in this array must be at least ((3 * ID3DXBaseMesh::GetNumFaces) * sizeof(DWORD)). May be NULL.
ExtractUVs
[in] If TRUE, textures will be used to store albedos or PRT vectors.
pBlockerMesh
[in] Pointer to an optional ID3DXMesh mesh object that blocks the 3D scene. May be NULL.
ppEngine
[in, out] Pointer to an output ID3DXPRTEngine object.

Return Values

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Remarks

Use D3DXConcatenateMeshes to combine multiple meshes into a single mesh interface.

Requirements

Header: Declared in D3dx9mesh.h.