TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

enum VertexElementType in Tinman.Terrain.Rendering

Enumeration of data types of vertex format elements.

enum VertexElementType  

Remarks

The following data types are available on most graphics APIs with decent GPUs, both with and without normalization (see Normalize).

Using only the data types above might remedy the need to use ValidateVertexElement.

Items

Placeholder = 0

A placeholder for a VertexElementUsage that is defined in another vertex format.

Remarks:

A VertexElement of this type always has zero Size and Count.

Float = 1

A 32-bit floating-point value.

Remarks:

A VertexElement of this type has the following Size, depending on its Count:

Count | Size
------+-----
    1 |    4
    2 |    8
    3 |   12
    4 |   16
No normalization will be performed for values of this type.

SInt8 = 2

An 8-bit signed integer value in the range [-128..127].

Remarks:

The Size of this type is always 4.
The normalization range is [-1..1].

See also:

VertexElement.Flags
SInt10 = 3

A 10-bit signed integer value in the range [-512..511].

Remarks:

A VertexElement of this type has the following Size, depending on its Count:

Count | Size
------+-----
    1 |    4
    2 |    4
    3 |    4
    4 |  n/a
The normalization range is [0..1].

See also:

VertexElement.Flags
SInt16 = 4

A 16-bit signed integer value in the range [-32768..32767].

Remarks:

A VertexElement of this type has the following Size, depending on its Count:

Count | Size
------+-----
    1 |    4
    2 |    4
    3 |    8
    4 |    8
The normalization range is [-1..1].

See also:

VertexElement.Flags
SInt32 = 5

A 32-bit signed integer value in the range [-2147483648..2147483647].

Remarks:

A VertexElement of this type has the following Size, depending on its Count:

Count | Size
------+-----
    1 |    4
    2 |    8
    3 |   12
    4 |   16
No normalization will be performed for values of this type.

UInt8 = 6

An 8-bit unsigned integer value in the range [0..255].

Remarks:

The Size of this type is always 4.
The normalization range is [0..1].

See also:

VertexElement.Flags
UInt10 = 7

A 10-bit unsigned integer value in the range [0..1023].

Remarks:

A VertexElement of this type has the following Size, depending on its Count:

Count | Size
------+-----
    1 |    4
    2 |    4
    3 |    4
    4 |  n/a
The normalization range is [0..1].

See also:

VertexElement.Flags
UInt16 = 8

An 16-bit unsigned integer value in the range [0..65535].

Remarks:

A VertexElement of this type has the following Size, depending on its Count:

Count | Size
------+-----
    1 |    4
    2 |    4
    3 |    8
    4 |    8
The normalization range is [0..1].

See also:

VertexElement.Flags
UInt32 = 9

A 32-bit unsigned integer value in the range [0..4294967296].

Remarks:

A VertexElement of this type has the following Size, depending on its Count:

Count | Size
------+-----
    1 |    4
    2 |    8
    3 |   12
    4 |   16
No normalization will be performed for values of this type.