GraphicsDevice.SetPixelShaderConstant Method (Int32, Matrix[])

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

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

public void SetPixelShaderConstant (
         int startRegister,
         Matrix[] 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.
ArgumentOutOfRangeExceptionThe graphics buffer is not large enough for this data.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

ADD
Show: