DeclarationType Enumeration

Language:

Defines declaration types for a vertex declaration.

Definition

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

Members

Member Value Description
Float16Four 16 Four 16-bit floating-point values expanded to (value, value, value, value). This type is valid for vertex shader version 2.0 or higher.
Float16Two 15 Two 16-bit floating-point values expanded to (value, value, 0, 1). This type is valid for vertex shader version 2.0 or higher.
Dec3N 14 3-D signed 10 10 10 format, normalized and expanded to (v[0]/511.0, v[1]/511.0, v[2]/511.0, 1).
UDec3 13 3-D unsigned 10 10 10 format, expanded to (value, value, value, 1).
UShort4N 12 Normalized 4-D unsigned short, expanded to (First byte/65535.0, second byte/65535.0, third byte/65535.0, fourth byte/65535.0). This type is valid for vertex shader version 2.0 or higher.
UShort2N 11 Normalized, 2-D unsigned short, expanded to (First byte/65535.0, second byte/65535.0, 0, 1). This type is valid for vertex shader version 2.0 or higher.
Short4N 10 Normalized, 4-D signed short, expanded to (First byte/32767.0, second byte/32767.0, third byte/32767.0, fourth byte/32767.0). This type is valid for vertex shader version 2.0 or higher.
Short2N 9 Normalized, 2-D signed short, expanded to (First byte/32767.0, second byte/32767.0, 0, 1). This type is valid for vertex shader version 2.0 or higher.
Ubyte4N 8 Each of 4 bytes is normalized by dividing to 255.0. This type is valid for vertex shader version 2.0 or higher.
Short4 7 4-D signed short, expanded to (value, value, value, value).
Short2 6 2-D signed short, expanded to (value, value, 0, 1).
Ubyte4 5 4-D unsigned byte.
Float4 3 4-D float, expanded to (float, float, float, float).
Float3 2 3-D float, expanded to (float, float, float, 1).
Float2 1 2-D float, expanded to (float, float, 0, 1).
Float1 0 1-D float, expanded to (float, 0, 0, 1).
Unused 17 Type field in the declaration is unused. This is designed for use with UV and LookUpPresampled.
Color 4 4-D packed unsigned bytes, mapped to 0 to 1 range. Input is in Int32 Leave Site format (ARGB) expanded to (R, G, B, A).

Remarks

Vertex data is declared with an array of VertexElement structures. Each element in the array contains a vertex declaration method. These values can be passed into the constructor or to the DeclarationMethod property.

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

Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center