PrtCompressedBuffer Class (Microsoft.DirectX.Direct3D)

Stores a compressed version of a PrtBuffer object for use with principal component analysis (PCA).

Definition

Visual Basic Public Class PrtCompressedBuffer
    Inherits MarshalByRefObjectLeave Site
    Implements IDisposableLeave Site
C# public class PrtCompressedBuffer : MarshalByRefObjectLeave Site, IDisposableLeave Site
C++ public ref class PrtCompressedBuffer : MarshalByRefObjectLeave Site, IDisposableLeave Site
JScript public class PrtCompressedBuffer extends MarshalByRefObjectLeave Site implements IDisposableLeave Site

Members Table

The following table lists the members exposed by the object.

Events

Event Description
Disposing Occurs when the Dispose method is called or when the PrtCompressedBuffer object is finalized and collected by the garbage collector of the .NET common language runtime.

Methods

Method Description
Dispose Immediately releases the unmanaged resources used by the PrtCompressedBuffer object.
Equals Returns a value that indicates whether the current instance is equal to a specified object.
ExtractBasis Extracts the mean and PCA basis vectors for a given cluster from a PrtCompressedBuffer object.
ExtractClusterIDs Extracts the per-sample cluster identifiers (IDs) from a PrtCompressedBuffer object.
ExtractPca Extracts the per-sample PCA projection coefficients from a PrtCompressedBuffer object.
ExtractTexture Extracts the per-sample PCA projection coefficients from a PrtCompressedBuffer object and adds the data to a Texture object.
ExtractToMesh Extracts the per-sample PCA projection coefficients from a PrtCompressedBuffer object and adds the data to a Mesh object.
Finalize Allows the PrtCompressedBuffer object to free resources before it is destroyed by the garbage collector.
static (Shared in Visual Basic) FromFile Loads into memory a compressed PRT buffer that was saved to disk.
GetHashCode Returns the hash code for the current instance.
GetObjectByValue This member supports the infrastructure for Microsoft DirectX 9.0 for Managed Code and is not intended to be used directly from your code.
NormalizeData Normalizes all PCA weights so that they are between -1 and 1. Basis vectors are modified to reflect this normalization.
static (Shared in Visual Basic) op_Equality Compares the current instance of a class to another instance to determine whether they are the same.
static (Shared in Visual Basic) op_Inequality Compares the current instance of a class to another instance to determine whether they are different.
PrtCompressedBuffer Initializes a new instance of the PrtCompressedBuffer class.
raise_Disposing Raises the Microsoft.DirectX.Direct3D.PrtCompressedBuffer.Disposing event when called from within a derived class.
Save Saves a compressed precomputed radiance transfer (PRT) buffer to disk.
UpdateUnmanagedPointer Updates the unmanaged pointer for this PrtCompressedBuffer object. This method supports the Microsoft .NET Framework infrastructure and is not intended to be used directly in your code.

Properties

Property Description
Disposed Gets a value that indicates whether the object is disposed.
Height Retrieves the height of the texture, in pixels.
IsTexture Indicates whether the compressed buffer contains a texture.
NumberChannels Retrieves the number of color channels used in memory to store samples.
NumberClusters Retrieves the number of clusters to use for compression.
NumberCoefficients Retrieves the number of scalars per color channel used in memory to store samples.
NumberPcaVectors Retrieves the number of PCA basis vectors to use in each cluster.
NumberSamples Retrieves the number of vertices (or texels) sampled.
UnmanagedComPointer Returns the unmanaged Component Object Model (COM) ID3DXPRTCompBuffer interface pointer.
Width Retrieves the width of the texture, in pixels.

Inheritance Hierarchy

ObjectLeave Site

MarshalByRefObjectLeave Site

PrtCompressedBuffer

Class Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3DX (microsoft.directx.direct3dx.dll)
Strong Name Microsoft.DirectX.Direct3DX,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492