![]() |
XII Release 0.1.0
|
Per-instance data consumed by GPU culling and mesh shading passes. More...
#include <MeshBufferResource.h>
Public Member Functions | |
| XII_DECLARE_POD_TYPE () | |
| xiiResult | Serialize (xiiStreamWriter &inout_stream) const |
| xiiResult | Deserialize (xiiStreamReader &inout_stream) |
Public Attributes | |
| xiiMat4 | m_GlobalTransform = xiiMat4::MakeIdentity() |
| The global transformation matrix for this mesh instance, used to transform the vertices of this mesh instance from object space to world space during rendering and culling operations. | |
| xiiUInt32 | m_uiObjectId = 0U |
| The object ID for this mesh instance, used to identify this instance in GPU-driven rendering techniques such as mesh shaders or compute shader-based rendering, where the object ID can be used for per-instance data lookups, material selection, or other instance-specific logic during rendering. | |
| xiiUInt32 | m_uiMeshletOffset = 0U |
| The byte offset into the meshlet buffer where the meshlet data for this instance begins, used to identify the starting point of the meshlet data for this instance in GPU-driven rendering techniques such as mesh shaders or compute shader-based rendering, where each instance may reference a different subset of meshlets for rendering. | |
| xiiUInt32 | m_uiMeshletCount = 0U |
| The number of meshlets referenced by this instance, used to identify how many meshlets belong to this instance for rendering and culling purposes in GPU-driven rendering techniques such as mesh shaders or compute shader-based rendering, where each instance may reference a different subset of meshlets for rendering. | |
| xiiUInt32 | m_uiMaterialBase = 0U |
| The base material index for this instance, used to identify the starting point of the material data for this instance in GPU-driven rendering techniques such as mesh shaders or compute shader-based rendering, where each instance may reference a different subset of materials for rendering. | |
Per-instance data consumed by GPU culling and mesh shading passes.