Share via


DeclarationUsage Enumeration (Microsoft.DirectX.Direct3D)

Defines declaration usage for a vertex declaration.

Definition

Visual Basic Public Enum DeclarationUsage
C# public enum DeclarationUsage
C++ public enum class DeclarationUsage
JScript public enum DeclarationUsage

Members

Member Value Description
Depth 12 Vertex data contains depth data.
Sample 13 Vertex data contains sampler data. (Sample with VertexElement.UsageIndex = 0) specifies the displacement value to look up. This flag can be used only with LookUpPresampled or LookUp.
Fog 11 Vertex data contains fog data. (Fog with VertexElement.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.
PositionTransformed 9 Vertex data contains transformed position data. (PositionTransformed with VertexElement.UsageIndex = 0) specifies the transformed position. When a declaration that contains this flag is set, the pipeline does not perform vertex processing.
TessellateFactor 8 Single positive floating-point value. (TessellateFactor with VertexElement.UsageIndex = 0) specifies a tessellation factor used in the tessellation unit to control the rate of tessellation. For more information about the data type, see Float1.
BiNormal 7 Vertex binormal data.
Tangent 6 Vertex tangent data.
TextureCoordinate 5 Texture 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.
BlendIndices 2 Blending indices data. (BlendIndices with VertexElement.UsageIndex = 0) specifies matrix indices for fixed function vertex processing using indexed paletted skinning.
BlendWeight 1 Blending weight data. (BlendWeight with VertexElement.UsageIndex = 0) specifies the blend weights in fixed function vertex processing.
Color 10 Vertex data contains diffuse or specular color. (Color with VertexElement.UsageIndex = 0) specifies the diffuse color in the fixed function vertex shader and in pixel shaders prior to ps_3_0. (Color with VertexElement.UsageIndex = 1) specifies the specular color in the fixed function vertex shader and in pixel shaders prior to ps_3_0.
PointSize 4 Point size data. (PointSize with VertexElement.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.
Normal 3 Vertex normal data. (Normal with VertexElement.UsageIndex = 0) specifies vertex normals for fixed function vertex processing and the N-patch tessellator. (Normal with VertexElement.UsageIndex = 1) specifies vertex normals for fixed function vertex processing for skinning.
Position 0 Position data. (Position with VertexElement.UsageIndex = 0 ) specifies the nontransformed position in fixed function vertex processing and the N-patch tessellator. (Position with VertexElement.UsageIndex = 1) specifies the nontransformed position in the fixed function vertex shader for skinning.

Remarks

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

Enumeration Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492