Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientMeshAssetDesc Struct Reference

#include <RadientAssets.h>

Public Attributes

const RadientMeshGeometryDescpGeometries = nullptr
Uint32 GeometryCount = 0
 Number of elements in pGeometries. Multiple primitives may share a geometry.
const RadientMeshPrimitiveDescpPrimitives = nullptr
Uint32 PrimitiveCount = 0
 Number of elements in pPrimitives.
const RadientMorphTargetDescpMorphTargets = nullptr
Uint32 MorphTargetCount = 0
 Number of elements in pMorphTargets.

Detailed Description

Immutable description of a mesh's stored geometry, primitives, and morph targets.

Available after successful CPU loading, independently of GPU upload completion. Before loading succeeds, all counts are zero and all array pointers are null. The mesh owns the descriptor arrays and referenced strings and retains the default materials. All referenced data remains valid while the mesh is retained.

Member Data Documentation

◆ pGeometries

const RadientMeshGeometryDesc* Diligent::RadientMeshAssetDesc::pGeometries = nullptr

Array of GeometryCount descriptions of stored vertex and index data. Primitive GeometryIndex values select elements of this array. Null when GeometryCount is zero. The mesh owns this array and all nested layouts.

◆ pMorphTargets

const RadientMorphTargetDesc* Diligent::RadientMeshAssetDesc::pMorphTargets = nullptr

Array of MorphTargetCount morph-target descriptions. The array, its attribute descriptions, and all referenced strings remain valid while the mesh asset is retained. Null when MorphTargetCount is zero.

◆ pPrimitives

const RadientMeshPrimitiveDesc* Diligent::RadientMeshAssetDesc::pPrimitives = nullptr

Array of PrimitiveCount primitive descriptions, including geometry indices, draw ranges, and default materials. Null when PrimitiveCount is zero. The mesh owns this array and its names and retains its non-null materials.