![]() |
XII Release 0.1.0
|
#include <MeshBufferResource.h>
Public Member Functions | |
| XII_DECLARE_POD_TYPE () | |
Public Attributes | |
| xiiVec3 | m_vPosition = xiiVec3::MakeZero() |
| The position of this vertex in object space. | |
| xiiVec3 | m_vNormal = xiiVec3(0.0f, 0.0f, 1.0f) |
| The normal vector of this vertex. | |
| xiiVec4 | m_vTangent = xiiVec4(1.0f, 0.0f, 0.0f, 1.0f) |
| The tangent vector of this vertex. | |
| xiiVec2 | m_vTexCoord0 = xiiVec2(0.0f) |
| The first texture coordinate of this vertex. | |
| xiiVec2 | m_vTexCoord1 = xiiVec2(0.0f) |
| The second texture coordinate of this vertex. | |
| xiiColorLinearUB | m_Color0 = xiiColorLinearUB(255, 255, 255, 255) |
| The color of this vertex. | |
| xiiVec4U16 | m_vBoneIndices0 = xiiVec4U16::MakeZero() |
| The bone indices for skinning this vertex, where each component represents the index of a bone that influences this vertex. | |
| xiiColorLinearUB | m_BoneWeights0 = xiiColorLinearUB(255, 0, 0, 0) |
| The bone weights for skinning this vertex, where each component represents the weight of the corresponding bone index in m_vBoneIndices0, normalized to the [0, 1] range and packed into an unsigned byte format for compact storage. | |
Full fidelity authoring vertex used by AddCommonStreams() and geometry conversion.
The renderer is expected to read the declared stream layout. Mesh shader paths usually bind this as a structured SRV, while fallback vertex pipelines can bind the same buffer as a vertex buffer.