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

#include <RadientAssets.h>

Public Attributes

const Char * Name = nullptr
 Optional mesh name.
RadientMeshVertexData VertexData = {}
RadientMeshIndexData IndexData = {}
 Required source index data. Primitive ranges select elements of this data.
RadientMeshMorphTargetData MorphTargetData = {}
const RadientMeshPrimitiveCreateInfo * pPrimitives = nullptr
Uint32 PrimitiveCount = 0
 Number of elements in pPrimitives. Must be nonzero.

Detailed Description

CPU-side mesh creation attributes.

CreateMesh copies descriptor metadata and morph-target deltas and retains vertex and index blobs under shared read access before returning, including when uploads are asynchronous. The caller can then modify or release the descriptors and its blob references. Source vertex and index bytes are read without copying the input buffers. End blob write access before calling; an active writer returns RADIENT_STATUS_INVALID_OPERATION. Read access lasts until source processing finishes. OnLastReaderReleased can be used to recycle blob storage after acquiring write access; it does not signal GPU completion. Reference blobs follow their normal storage-lifetime requirements.

Member Data Documentation

◆ MorphTargetData

RadientMeshMorphTargetData Diligent::RadientMeshCreateInfo::MorphTargetData = {}

Optional morph targets. Each target attribute contains VertexData.VertexCount vertex deltas. The default empty descriptor creates a mesh without morphing.

◆ pPrimitives

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

Array of PrimitiveCount mesh primitives. Must be non-null. Each primitive selects a nonempty index range and an optional material.

◆ VertexData

RadientMeshVertexData Diligent::RadientMeshCreateInfo::VertexData = {}

Required source vertex data. Its vertex count defines the shared vertex domain for the mesh's indices and optional morph-target deltas. The renderer selects the stored vertex layout.