Device.SetPixelShaderConstant(Int32,Vector4) Method (Microsoft.DirectX.Direct3D)

Sets a pixel shader constant.

Definition

Visual Basic Public Sub SetPixelShaderConstant( _
    ByVal startRegister As Integer, _
    ByVal constantData As Vector4 _
)
C# public void SetPixelShaderConstant(
    int startRegister,
    Vector4 constantData
);
C++ public:
void SetPixelShaderConstant(
    int startRegister,
    Vector4 constantData
);
JScript public function SetPixelShaderConstant(
    startRegister : int,
    constantData : Vector4
);

Parameters

startRegister System.Int32
Register number that contains the first constant value.
constantData Microsoft.DirectX.Vector4
A pointer to a Vector4 object that represents the constant data to set. Use this if your code block is marked unsafe.

Remarks

Exceptions

InvalidCallException

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