PrtCompressedBuffer.PrtCompressedBuffer(CompressionQuality,Int32,Int32,PercentageCompleteCallback,PrtBuffer) Constructor (Microsoft.DirectX.Direct3D)

Initializes a new instance of the PrtCompressedBuffer class.

Definition

Visual Basic Public Sub New( _
    ByVal quality As CompressionQuality, _
    ByVal numberClusters As Integer, _
    ByVal numberPca As Integer, _
    ByVal callback As PercentageCompleteCallback, _
    ByVal buffer As PrtBuffer _
)
C# public PrtCompressedBuffer(
    CompressionQuality quality,
    int numberClusters,
    int numberPca,
    PercentageCompleteCallback callback,
    PrtBuffer buffer
);
C++ public:
 PrtCompressedBuffer(
    CompressionQuality quality,
    int numberClusters,
    int numberPca,
    PercentageCompleteCallbackcallback,
    PrtBufferbuffer
);
JScript public function PrtCompressedBuffer(
    quality : CompressionQuality,
    numberClusters : int,
    numberPca : int,
    callback : PercentageCompleteCallback,
    buffer : PrtBuffer
);

Parameters

quality Microsoft.DirectX.Direct3D.CompressionQuality
Quality of spherical harmonic (SH) compression.
numberClusters System.Int32
Number of clusters to use for compression.
numberPca System.Int32
Number of principal component analysis (PCA) basis vectors to use in each cluster.
callback Microsoft.DirectX.Direct3D.PercentageCompleteCallback
PercentageCompleteCallback delegate that represents the optional callback method used to compute the percentage of precomputed radiance transfer (PRT) compression computations completed.
buffer Microsoft.DirectX.Direct3D.PrtBuffer
Uncompressed PrtBuffer object to compress.

Remarks

The PrtCompressedBuffer constructor creates a compressed PRT buffer from an uncompressed PrtBuffer object.

Exceptions

InvalidCallException

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

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.