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

Mesh section describing a contiguous range of primitives with the same material and other properties, used for rendering and culling. More...

#include <MeshResource.h>

Public Member Functions

 XII_DECLARE_POD_TYPE ()
xiiResult Serialize (xiiStreamWriter &inout_stream) const
xiiResult Deserialize (xiiStreamReader &inout_stream)

Public Attributes

xiiUInt32 m_uiFirstPrimitive = 0U
 Index of the first primitive in this section.
xiiUInt32 m_uiPrimitiveCount = 0U
 Number of primitives in this section.
xiiUInt32 m_uiFirstMeshlet = 0U
 Index of the first meshlet in this section.
xiiUInt32 m_uiMeshletCount = 0U
 Number of meshlets in this section.
xiiUInt16 m_uiMaterialIndex = 0U
 Index into the mesh's material array for the material used by this section.
xiiUInt16 m_uiFlags = 0U
 Custom flags for this section, can be used for various purposes (e.g., marking sections as double-sided).
xiiBoundingBoxSphere m_Bounds = xiiBoundingBoxSphere::MakeInvalid()
 Bounding volume for this section, used for culling.

Detailed Description

Mesh section describing a contiguous range of primitives with the same material and other properties, used for rendering and culling.


The documentation for this struct was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/Meshes/MeshResource.h
  • /home/runner/work/XII/XII/Source/Engine/GraphicsCore/Meshes/Implementation/MeshResourceDescriptor.cpp