VertexShader Constructor
Initializes a new instance of the VertexShader class.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public VertexShader (
GraphicsDevice graphicsDevice,
byte[] shaderCode
)
Parameters
- graphicsDevice
The GraphicsDevice to associate with this VertexShader. - shaderCode
The compiled byte code. An array of tokens that represents the vertex shader, including embedded debug and symbol table information.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | graphicsDevice or shaderCode is null. |
InvalidOperationException | Unable to create this VertexShader resource on the graphics device. |
See Also
Reference
VertexShader Class
VertexShader Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista