Export (0) Print
Expand All
Expand Minimize

VertexElementUsage Enumeration

Defines usage for vertex elements.

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

public enum VertexElementUsage

 Member nameDescription
BinormalVertex binormal data.
BlendIndicesBlending indices data. (BlendIndices with UsageIndex = 0) specifies matrix indices for fixed-function vertex processing using indexed paletted skinning.
BlendWeightBlending weight data. (BlendWeight with UsageIndex = 0) specifies the blend weights in fixed-function vertex processing.
ColorVertex data contains diffuse or specular color. (Color with UsageIndex = 0) specifies the diffuse color in the fixed-function vertex shader and in pixel shaders prior to ps_3_0. (Color with UsageIndex = 1) specifies the specular color in the fixed-function vertex shader and in pixel shaders prior to ps_3_0.
DepthVertex data contains depth data.
FogVertex data contains fog data. (Fog with UsageIndex = 0) specifies a fog blend value to use after pixel shading is finished. This flag applies to pixel shaders prior to version ps_3_0.
NormalVertex normal data. (Normal with UsageIndex = 0) specifies vertex normals for fixed-function vertex processing and the N-patch tessellator. (Normal with UsageIndex = 1) specifies vertex normals for fixed-function vertex processing for skinning.
PointSizePoint size data. (PointSize with UsageIndex = 0) specifies the point-size attribute used by the setup engine of the rasterizer to expand a point into a quad for the point-sprite functionality.
PositionPosition data. (Position with UsageIndex = 0 ) specifies the nontransformed position in fixed-function vertex processing and the N-patch tessellator. (Position with UsageIndex = 1) specifies the nontransformed position in the fixed-function vertex shader for skinning.
SampleVertex data contains sampler data. (Sample with UsageIndex = 0) specifies the displacement value to look up. This flag can be used only with VertexElementMethod.LookUpPresampled or VertexElementMethod.LookUp.
TangentVertex tangent data.
TessellateFactorSingle, positive floating-point value. (TessellateFactor with UsageIndex = 0) specifies a tessellation factor used in the tessellation unit to control the rate of tessellation.
TextureCoordinateTexture coordinate data. (TextureCoordinate, n) specifies texture coordinates in fixed-function vertex processing and in pixel shaders prior to ps_3_0. These coordinates can be used to pass user-defined data.

Vertex data is declared with an array of VertexElement structures. Each element in the array contains a usage type.

Xbox 360, Windows XP SP2, Windows Vista

Show:
© 2014 Microsoft