ConstantTable.SetValue Method

Language:

Note: This documentation is preliminary and is subject to change.

Sets the value to the constant table.

Definition

Visual Basic .NET Public Sub SetValue( _
    ByVal device As Device, _
    ByVal constant As EffectHandle, _
    ByVal color() As ColorValue _
)
C# public void SetValue(
    Device device,
    EffectHandle constant,
    ColorValue[] color
);
Managed C++ public: void SetValue(
    Device *device,
    EffectHandle *constant,
    ColorValue color __gc[]
);
JScript .NET public function SetValue(
    device : Device,
    constant : EffectHandle,
    color : ColorValue[]
);

Parameters

device Microsoft.DirectX.Direct3D.Device. A Device object that represents the device associated with the constant table.
constant Microsoft.DirectX.Direct3D.EffectHandle. An EffectHandle that represents a unique identifier of a constant.
color Microsoft.DirectX.Direct3D.ColorValue[]. Array of ColorValue structures to set to the constant table.

Remarks

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


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.