VertexElementFormat Enumeration
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Defines vertex element formats.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)
Syntax
'Declaration
Public Enumeration VertexElementFormat
public enum VertexElementFormat
Members
Member name | Description | |
---|---|---|
Single | Single-component, 32-bit floating-point, expanded to (float, 0, 0, 1). | |
Vector2 | Two-component, 32-bit floating-point, expanded to (float, float, 0, 1). | |
Vector3 | Three-component, 32-bit floating point, expanded to (float, float, float, 1). | |
Vector4 | Four-component, 32-bit floating point, expanded to (float, float, float, float). | |
Color | Four-component, packed, unsigned byte, mapped to 0 to 1 range. Input is in Int32 format (ARGB) expanded to (R, G, B, A). | |
Byte4 | Four-component, unsigned byte. | |
Short2 | Two-component, signed short expanded to (value, value, 0, 1). | |
Short4 | Four-component, signed short expanded to (value, value, value, value). | |
NormalizedShort2 | Normalized, two-component, signed short, expanded to (first short/32767.0, second short/32767.0, 0, 1). This type is valid for vertex shader version 2.0 or higher. | |
NormalizedShort4 | Normalized, four-component, signed short, expanded to (first short/32767.0, second short/32767.0, third short/32767.0, fourth short/32767.0). This type is valid for vertex shader version 2.0 or higher. |
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.