PrtCompressedBuffer.ExtractBasis(Int32,Single[]) Method (Microsoft.DirectX.Direct3D)

Extracts the mean and principal component analysis (PCA) basis vectors for a given cluster from a PrtCompressedBuffer object.

Definition

Visual BasicPublic Sub ExtractBasis( _
    ByVal cluster As Integer, _
    ByVal clusterBasis() As Single _
)
C#public void ExtractBasis(
    int cluster,
    float[] clusterBasis
);
C++public:
void ExtractBasis(
    int cluster,
    array<float>^ clusterBasis
);
JScriptpublic function ExtractBasis(
    cluster : int,
    clusterBasis : float[]
);

Parameters

cluster System.Int32
Cluster for which the basis will be extracted.
clusterBasis System.Single[]
An array of basis vector data for cluster.

Remarks

The size of the clusterBasis data will be:

(1 + Number of PCA vectors per cluster) * (Number of coefficients) * (Number of color channels)

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
Show: