Share via


Device.SetVertexShaderConstant(Int32,Boolean[]) Method (Microsoft.DirectX.Direct3D)

Sets a vertex shader constant.

Definition

Visual Basic Public Sub SetVertexShaderConstant( _
    ByVal startRegister As Integer, _
    ByVal constantData() As Boolean _
)
C# public void SetVertexShaderConstant(
    int startRegister,
    bool[] constantData
);
C++ public:
void SetVertexShaderConstant(
    int startRegister,
    array<bool>^ constantData
);
JScript public function SetVertexShaderConstant(
    startRegister : int,
    constantData : boolean[]
);

Parameters

startRegister System.Int32
Register number that contains the first constant value.
constantData System.Boolean[]
Array of BooleanLeave Site constants.

Remarks

Exceptions

InvalidCallException

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