VertexElementFormat Enumeration
Defines vertex element formats.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
A mapping of each Direct3D 9 format name to the VertexElementFormat equivalent is listed in the following table.
| Direct3D 9 Vertex Format | VertexElementFormat equivalent | |
|---|---|---|
| Floating Point | ||
| Float32 | D3DDECLTYPE_FLOAT1 | Single |
| D3DDECLTYPE_FLOAT2 | Vector2 | |
| D3DDECLTYPE_FLOAT3 | Vector3 | |
| D3DDECLTYPE_FLOAT4 | Vector4 | |
| Float16 | D3DDECLTYPE_FLOAT16_2 | HalfVector2 |
| D3DDECLTYPE_FLOAT16_4 | HalfVector4 | |
| Unsigned Normalized | ||
| 64 bpp | D3DDECLTYPE_USHORT4N | Rgba64 |
| 32 bpp | D3DDECLTYPE_D3DCOLOR | Color |
| D3DDECLTYPE_UBYTE4N | Rgba32 | |
| D3DDECLTYPE_USHORT2N | Rg32 | |
| Signed Normalized | ||
| D3DDECLTYPE_SHORT2N | NormalizedShort2 | |
| D3DDECLTYPE_SHORT4N | NormalizedShort4 | |
| D3DDECLTYPE_DEC3N | Normalized101010 | |
| Signed Integer | ||
| D3DDECLTYPE_SHORT2 | Short2 | |
| D3DDECLTYPE_SHORT4 | Short4 | |
| Unsigned Integer | ||
| D3DDECLTYPE_UBYTE4 | Byte4 | |
| D3DDECLTYPE_UDEC3 | UInt101010 | |
Community Additions
ADD
Show: