Export (0) Print
Expand All

GraphicsDevice.SetPixelShaderConstant Method (Int32, Vector4[])

Sets the specified pixel shader constant float registers to an array of Vector4 values.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public void SetPixelShaderConstant (
         int startRegister,
         Vector4[] constantData
)

Parameters

startRegister
Zero-based index of the pixel shader constant float register at which to begin setting values.
constantData
The constant data.

Exception typeCondition
ArgumentNullException constantData is null.
ArgumentOutOfRangeException constantData is outside the allowable range of values as defined by the invoked method.
InvalidOperationException The method call is invalid. For example, a method's parameter may have an invalid value.

Xbox 360, Windows XP SP2, Windows Vista

Show:
© 2014 Microsoft