GraphicsDevice.GetVertexShaderVector2Constant Method

Gets a Vector2 value from the vertex shader constant float registers.

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

Syntax

public Vector2 GetVertexShaderVector2Constant (
         int startRegister
)

Parameters

  • startRegister
    Vertex shader constant float register of the first constant.

Return Value

Vector2 value retrieved from the constant registers.

Exceptions

Exception type Condition
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