VertexDeclaration.GetVertexStrideSize Method (VertexElement , Int32)
Gets the size of a vertex from the vertex declaration.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public static int GetVertexStrideSize (
VertexElement[] elements,
int stream
)
Parameters
- elements
The vertex declaration. - stream
The zero-based stream index.
Return Value
The vertex declaration size, in bytes.
See Also
Reference
VertexDeclaration Class
VertexDeclaration Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista