XII Release 0.1.0
Loading...
Searching...
No Matches
xiiMeshVertexStreamFormat Struct Reference

Precision and storage format for mesh vertex streams, used to identify the data type and layout of a vertex stream and how it should be interpreted by the renderer. More...

#include <MeshBufferResource.h>

Inheritance diagram for xiiMeshVertexStreamFormat:
[legend]

Public Types

enum  Enum : StorageType {
  Float1 = 0U , Float2 , Float3 , Float4 ,
  UByte4Normalized , UShort4 , UShort4Normalized , UInt ,
  ENUM_COUNT , Default = Float3
}
using StorageType = xiiUInt8

Detailed Description

Precision and storage format for mesh vertex streams, used to identify the data type and layout of a vertex stream and how it should be interpreted by the renderer.

Member Enumeration Documentation

◆ Enum

enum xiiMeshVertexStreamFormat::Enum : StorageType
Enumerator
Float1 

Single-component floating point format, used for simple vertex data like scalar values or single texture coordinates.

Float2 

Two-component floating point format, used for vertex data like texture coordinates or 2D vectors.

Float3 

Three-component floating point format, used for vertex data like positions, normals, or 3D vectors.

Float4 

Four-component floating point format, used for vertex data like tangents, colors, or 4D vectors.

UByte4Normalized 

Four-component unsigned byte format with normalized values, used for compact vertex data like colors or bone weights where values are expected to be in the [0, 1] range.

UShort4 

Four-component unsigned short format, used for vertex data like bone indices where compact integer storage is sufficient and values are not normalized.

UShort4Normalized 

Four-component unsigned short format with normalized values, used for vertex data like bone weights where compact integer storage is sufficient and values are expected to be in the [0, 1] range.

UInt 

Single unsigned integer format, used for vertex data like object IDs or other per-vertex integer data.


The documentation for this struct was generated from the following file: