Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

VertexElementMethod Enumeration

Defines the tessellator processing method for a vertex element.

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

public enum VertexElementMethod
 Member nameDescription
DefaultDefault value. The tessellator copies the vertex data (or the spline data if it is operating on a patch) without performing additional calculations on it. The input and output types can be any value. When the tessellator is used, this element is interpolated; otherwise, vertex data is copied into the input register.
LookUpLooks up a displacement map. The input type can be VertexElementFormat.Vector2, VertexElementFormat.Vector3, or VertexElementFormat.Vector4. Only the .x and .y components are used for the texture map lookup. The output type is always VertexElementFormat.Single. The device must support displacement mapping. This constant is supported only by the programmable pipeline on N-patch data, if N-patches are enabled.
LookUpPresampledLooks up a presampled displacement map. The input type must be set to VertexElementFormat.Unused, and the stream index and stream offset must be set to 0. The output type for this operation is always VertexElementFormat.Single. The device must support displacement mapping. This constant is supported only by the programmable pipeline on N-patch data, if N-patches are enabled.
UVCopies out the u and v values at a point on the rectangle or triangle patch. This results in a 2D float. The input type must be set to VertexElementFormat.Unused; the output type is always VertexElementFormat.Vector2. The input stream and offset also are unused, but must be set to 0.

The VertexElement structure uses VertexElementMethod values to determine which vertex data to calculate during tessellation. These values can be passed into the constructor or to the VertexElementMethod property. Mesh data should use the default value. Patches can use any of the other implemented types.

Vertex data is declared with an array of VertexElement structures. Each element in the array contains a vertex declaration method.

In addition to using Default, a normal mesh can use LookUp and LookUpPresampled when N-patches are enabled.

Xbox 360, Windows XP SP2, Windows Vista

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.