![]() |
XII Release 0.1.0
|
#include <MeshBufferResource.h>
Public Member Functions | |
| XII_DECLARE_POD_TYPE () | |
| xiiResult | Serialize (xiiStreamWriter &inout_stream) const |
| xiiResult | Deserialize (xiiStreamReader &inout_stream) |
Public Attributes | |
| xiiEnum< xiiMeshVertexSemantic > | m_Semantic |
| The semantic meaning of this vertex stream, used to identify how the renderer should interpret the data in this stream. | |
| xiiEnum< xiiMeshVertexStreamFormat > | m_Format |
| The data format of this vertex stream, used to identify the type and layout of the vertex data for correct interpretation by the renderer. | |
| xiiUInt16 | m_uiOffset = 0U |
| The byte offset of this vertex stream from the start of the vertex, used to calculate the memory address of this stream's data for each vertex. | |
| xiiUInt16 | m_uiStride = 0U |
| The byte stride between vertices for this vertex stream, used to calculate the memory address of this stream's data for each vertex when vertices are tightly packed or interleaved. | |
CPU/GPU vertex layout entry for xiiMeshBufferResource.
This describes the layout of a single vertex stream, including its semantic meaning, data format, byte offset from the start of the vertex, and stride between vertices.