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

#include <RadientMeshImportServices.h>

Public Attributes

IRadientMeshVertexData * pVertexData = nullptr
IRadientMeshIndexData * pIndexData = nullptr
IRadientMeshMorphTargetData * pMorphTargetData = nullptr

Detailed Description

Shared data forming one drawable geometry in a mesh view.

All handles used by a mesh view belong to the service's associated asset manager. They may still be loading when CreateMeshView is called; view processing waits for their source processing. A view retains the handles it uses, so the caller can release its own references after the call. Reusing handles shares their renderer-selected storage without repacking the data for each mesh view.

Member Data Documentation

◆ pIndexData

IRadientMeshIndexData* Diligent::RadientMeshGeometryData::pIndexData = nullptr

Required index-data handle. Every index used by the geometry refers to a vertex in pVertexData; primitive ranges select elements of this index data.

◆ pMorphTargetData

IRadientMeshMorphTargetData* Diligent::RadientMeshGeometryData::pMorphTargetData = nullptr

Optional morph-target data, or nullptr for a geometry without morphing. Its vertex count matches pVertexData. All morphing geometries in one view have matching target counts, target names, default weights, and ordered attribute descriptions. Delta values and vertex counts may differ between geometries. Geometries without morph targets may appear in the same view.

◆ pVertexData

IRadientMeshVertexData* Diligent::RadientMeshGeometryData::pVertexData = nullptr

Required vertex-data handle. Its vertex count defines the geometry's vertex domain, including the indices and optional morph-target deltas.