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 = {}
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 retains vertex, index, and morph-target 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 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

◆ IndexData

RadientMeshIndexData Diligent::RadientMeshCreateInfo::IndexData = {}

Optional source index data. Leave the descriptor empty (null pIndexBuffer, zero IndexCount, and IndexType NONE) for non-indexed geometry. Primitive ranges select indices when index data is present, or vertices otherwise.

◆ 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 or vertex 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.