Microsoft DirectX 9.0 SDK Update (October 2004)

PrtEngine.ComputeSuperClusters Method

Language:

Note: This documentation is preliminary and is subject to change.

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.

Definition

Visual Basic .NET Public Shared Function ComputeSuperClusters( _
    ByVal clusterIds() As Integer, _
    ByVal scene As Mesh, _
    ByVal maxNumberClusters As Integer, _
    ByVal superClusterIds() As Integer _
) As Integer
C# public static int ComputeSuperClusters(
    int[] clusterIds,
    Mesh scene,
    int maxNumberClusters,
    int[] superClusterIds
);
Managed C++ public: static int ComputeSuperClusters(
    int clusterIds __gc[],
    Mesh *scene,
    int maxNumberClusters,
    int superClusterIds __gc[]
);
JScript .NET public static function ComputeSuperClusters(
    clusterIds : int[],
    scene : Mesh,
    maxNumberClusters : int,
    superClusterIds : int[]
) : int;

Parameters

clusterIds System.Int32[]. An array of cluster identifiers (IDs) extracted from a compressed buffer by calling PrtCompressedBuffer.ExtractClusterIDs.
scene Microsoft.DirectX.Direct3D.Mesh. A Mesh that represents the composite scene passed to the simulator.
maxNumberClusters System.Int32. Maximum number of clusters allocated per super cluster.
superClusterIds System.Int32[]. An integer array that contains the index of the super cluster to which the corresponding cluster was assigned.

Return Value

System.Int32 . Number of super clusters allocated.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
InvalidDataException The data is invalid.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center