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

CPU-side mesh primitive creation attributes. More...

#include <RadientAssets.h>

Public Attributes

const Char * Name = nullptr
 Optional primitive name.
Uint32 FirstElement = 0
Uint32 ElementCount = 0
IRadientMaterialAsset * pMaterial = nullptr
 Default material for this primitive.

Detailed Description

CPU-side mesh primitive creation attributes.

Member Data Documentation

◆ ElementCount

Uint32 Diligent::RadientMeshPrimitiveCreateInfo::ElementCount = 0

Number of indices or vertices to draw. Must be nonzero, and the range [FirstElement, FirstElement + ElementCount) must fit within the geometry's index count for indexed geometry or vertex count otherwise.

◆ FirstElement

Uint32 Diligent::RadientMeshPrimitiveCreateInfo::FirstElement = 0

Zero-based first index for indexed geometry, or first vertex for geometry without index data. Relative to the source geometry, excluding GPU pool offsets. The selected geometry determines whether the range uses indices or vertices when creating a mesh view.