![]() |
![]() |
![]() |
Used with compressed results of the vertex version of the precomputed radiance transfer (PRT) simulator. Generates "superclusters," which are groups of clusters that can be drawn in the same draw call. A greedy algorithm that minimizes overdraw is used to group the clusters.
Syntax
HRESULT WINAPI D3DXSHPRTCompSuperCluster(
UINT *pClusterIDs, LPD3DXMESH pScene, UINT MaxNumClusters, UINT NumClusters, UINT *pSClusterIDs, UINT *pNumSCs );
Parameters
- pClusterIDs
- [in] Pointer to a NumVerts cluster identifiers (IDs) (extracted from a compressed buffer.)
- pScene
- [in] Pointer to a mesh that represents composite scene passed to the simulator. See ID3DXMesh.
- MaxNumClusters
- [in] Maximum number of clusters allocated per super cluster.
- NumClusters
- [in] Number of clusters computed in the simulator.
- pSClusterIDs
- [in, out] Pointer to an array of length NumClusters. Contains the index of the super cluster to which the corresponding cluster was assigned.
- pNumSCs
- [in, out] Number of super clusters allocated.
Return Value
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be one of the following values.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. D3DXERR_INVALIDDATA The data is invalid. E_OUTOFMEMORY Microsoft Direct3D could not allocate sufficient memory to complete the call.
Function Information
Header d3dx9mesh.h Import library d3dx9.lib Minimum operating systems Windows 98