PrtCompressedBuffer.PrtCompressedBuffer Constructor |
Language: |
Initializes a new instance of the PrtCompressedBuffer class.
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,
PercentageCompleteCallback^ callback,
PrtBuffer^ buffer
);JScript public function PrtCompressedBuffer(
quality : CompressionQuality,
numberClusters : int,
numberPca : int,
callback : PercentageCompleteCallback,
buffer : PrtBuffer
);
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.
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. OutOfMemoryException Microsoft Direct3D could not allocate sufficient memory to complete the call.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center