Device.SetPixelShaderConstant Method |
Language: |
Sets a pixel shader constant.
Visual Basic Public Sub SetPixelShaderConstant( _
ByVal startRegister As Integer, _
ByVal constantData() As Single _
)C# public void SetPixelShaderConstant(
int startRegister,
float[] constantData
);C++ public:
void SetPixelShaderConstant(
int startRegister,
array<float>^ constantData
);JScript public function SetPixelShaderConstant(
startRegister : int,
constantData : float[]
);
startRegister System.Int32
Register number that contains the first constant value.constantData System.Single[]
Array of Single constants.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center