D3DXSHPRTCompSuperCluster
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXSHPRTCompSuperCluster Function


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_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
D3DXERR_INVALIDDATAThe data is invalid.
E_OUTOFMEMORYMicrosoft Direct3D could not allocate sufficient memory to complete the call.


Function Information

Headerd3dx9mesh.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


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