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

Mesh LOD (Level of Detail) containing multiple sections, used to define different levels of detail for a mesh resource. More...

#include <MeshResource.h>

Public Member Functions

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

Public Attributes

float m_fScreenSize = 1.0f
 Screen size threshold for this LOD, used for LOD selection when m_LodMode is xiiMeshLodSelectionMode::ScreenSize.
float m_fMaxDistance = 0.0f
 Maximum distance for this LOD, used for LOD selection when m_LodMode is xiiMeshLodSelectionMode::Distance.
xiiUInt32 m_uiFirstMeshlet = 0U
 Index of the first meshlet in this LOD, used for rendering and culling.
xiiUInt32 m_uiMeshletCount = 0U
 Number of meshlets in this LOD.
xiiHybridArray< xiiMeshSection, 8U > m_Sections
 Sections contained in this LOD, used for rendering and culling.
xiiBoundingBoxSphere m_Bounds = xiiBoundingBoxSphere::MakeInvalid()
 Bounding volume for this LOD, used for culling.

Detailed Description

Mesh LOD (Level of Detail) containing multiple sections, used to define different levels of detail for a mesh resource.


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