Navigation
API > API/Runtime > API/Runtime/Engine
| Name | EPrimitiveIdMode |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Public/MeshBatch.h |
| Include Path | #include "MeshBatch.h" |
Syntax
enum EPrimitiveIdMode
{
PrimID_FromPrimitiveSceneInfo = 0,
PrimID_DynamicPrimitiveShaderData = 1,
PrimID_ForceZero = 2,
PrimID_Num = 4,
PrimID_NumBits = 2,
}
Values
| Name | Remarks |
|---|---|
| PrimID_FromPrimitiveSceneInfo | PrimitiveId will be taken from the FPrimitiveSceneInfo corresponding to the FMeshBatch. |
| PrimID_DynamicPrimitiveShaderData | The renderer will upload Primitive data from the FMeshBatchElement's PrimitiveUniformBufferResource to the end of the GPUScene PrimitiveBuffer, and assign the offset to DynamicPrimitiveIndex. |
| PrimID_ForceZero | PrimitiveId will always be 0. |
| PrimID_Num | |
| PrimID_NumBits |