ConstantTable.SetValue(Device,EffectHandle,GraphicsStream) Method (Microsoft.DirectX.Direct3D)

Sets the value to the constant table.

Definition

Visual Basic Public Sub SetValue( _
    ByVal device As Device, _
    ByVal constant As EffectHandle, _
    ByVal data As GraphicsStream _
)
C# public void SetValue(
    Device device,
    EffectHandle constant,
    GraphicsStream data
);
C++ public:
void SetValue(
    Devicedevice,
    EffectHandleconstant,
    GraphicsStreamdata
);
JScript public function SetValue(
    device : Device,
    constant : EffectHandle,
    data : GraphicsStream
);

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.
data Microsoft.DirectX.GraphicsStream
A GraphicsStream object that contains values 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.