GraphicsDevice.SetVertexShaderConstant Method (Int32, Matrix )
Sets the specified vertex shader constant float registers to an array of Matrix values.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public void SetVertexShaderConstant (
int startRegister,
Matrix[] constantData
)
Parameters
- startRegister
Zero-based index of the vertex shader constant float register at which to begin setting values. - constantData
The constant data. This value will be transposed when the vertex shader constant is set.
Exceptions
Exception type | Condition |
---|---|
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. |
See Also
Reference
GraphicsDevice Class
GraphicsDevice Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista