ConstantTable Class (Microsoft.DirectX.Direct3D)
Provides access to the constant table, which contains the variables that are used by high-level language shaders and effects.
Definition
Visual Basic NotInheritable Public Class ConstantTable
Inherits Object
Implements IDisposableC# public sealed class ConstantTable : Object, IDisposable C++ public ref class ConstantTable sealed : Object, IDisposable JScript public final class ConstantTable extends Object implements IDisposable
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 ConstantTable object is finalized and collected by the garbage collector of the .NET common language runtime. Methods
Method Description ConstantTable Initializes a new instance of the ConstantTable class. Dispose Immediately releases the unmanaged resources used by the ConstantTable object. Equals Returns a value that indicates whether the current instance is equal to a specified object. Finalize Allows the ConstantTable object to free resources before it is destroyed by the garbage collector. FromShader Returns a constant table from a GraphicsStream shader data object. GetConstant Retrieves a constant by looking up its index or by name. GetConstantDescription Retrieves an array of constant descriptions in the constant table. GetConstantElement Retrieves a constant from an array of constants. 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. GetSamplerIndex Retrieves the sampler index. op_Equality Compares the current instance of a class to another instance to determine whether they are the same. op_Inequality Compares the current instance of a class to another instance to determine whether they are different. raise_Disposing Raises the Microsoft.DirectX.Direct3D.ConstantTable.Disposing event when called from within a derived class. SetDefaults Sets constants to their default values, which are declared in the variable declarations in the shader. SetValue Sets the value to the constant table. SetValueTranspose Sets a Matrix or an array of matrices to the constant table. UpdateUnmanagedPointer Updates the unmanaged pointer for this ConstantTable object. This method supports the Microsoft .NET Framework infrastructure and is not intended to be used directly in your code. Properties
Property Description Description Retrieves a description of the constant table. Disposed Gets a value that indicates whether the object is disposed. StreamData Retrieves a GraphicsStream object that contains the constant table. UnmanagedComPointer Returns the unmanaged Component Object Model (COM) ID3DXConstantTable interface pointer.
Inheritance Hierarchy
ConstantTable
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