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

#include <RadientMeshImportServices.h>

Public Attributes

const RadientMeshPrimitiveCreateInfo * pPrimitives = nullptr
Uint32 PrimitiveCount = 0
const Uint32 * pGeometryIndices = nullptr
const RadientMeshGeometryData * pGeometryData = nullptr
Uint32 GeometryCount = 0
 Number of entries in pGeometryData. Must be nonzero.

Detailed Description

Creates a mesh asset by selecting primitives from reusable geometry data.

CreateMeshView copies the primitive descriptions, names, and geometry mapping and retains the referenced materials and geometry handles before returning. The caller can then modify or release the descriptor arrays, strings, and its asset references. Only geometry entries referenced by primitives are used; unused entries are ignored. The resulting mesh description contains used geometries in first-use order, so its geometry indices may differ from these input indices. No vertex or index repacking is required to create a view.

Primitive range and morph-target compatibility checks occur after referenced geometry data finishes source processing. Consequently, a view accepted with RADIENT_STATUS_PENDING may later fail validation. WaitForAssetLoad reports source-processing and dependency errors; success does not imply GPU readiness.

Member Data Documentation

◆ pGeometryData

const RadientMeshGeometryData* Diligent::RadientMeshViewCreateInfo::pGeometryData = nullptr

Array of GeometryCount geometry descriptions. Must be non-null. Handles in used entries belong to the associated asset manager; unused entries may be empty.

◆ pGeometryIndices

const Uint32* Diligent::RadientMeshViewCreateInfo::pGeometryIndices = nullptr

Optional array mapping each primitive to an entry in pGeometryData. Every value is less than GeometryCount. If null, every primitive uses geometry zero. Multiple primitives may reference the same geometry.

◆ pPrimitives

const RadientMeshPrimitiveCreateInfo* Diligent::RadientMeshViewCreateInfo::pPrimitives = nullptr

Array of PrimitiveCount primitive descriptions. Must be non-null. Each FirstIndex and IndexCount selects a nonempty range in the index-data handle of the primitive's selected geometry. Materials are optional.

◆ PrimitiveCount

Uint32 Diligent::RadientMeshViewCreateInfo::PrimitiveCount = 0

Number of elements in pPrimitives and, when provided, pGeometryIndices. Must be nonzero.