GraphicsDevice.SetPixelShaderConstant Method (Int32, Int32 )

Sets the specified pixel shader constant integer registers to an array of Int32 values.

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

Syntax

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

Parameters

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

Exceptions

Exception type Condition
ArgumentNullException constantData is null.
ArgumentException When setting integer shader constant data, constantData must have a length that is a multiple of four.
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.

See Also

Reference

GraphicsDevice Class
GraphicsDevice Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista