EPrimitiveIdMode

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MeshBatch.h

Include

#include "MeshBatch.h"

Syntax

enum EPrimitiveIdMode
{
    PrimID_FromPrimitiveSceneInfo        = 0,
    PrimID_DynamicPrimitiveShaderData    = 1,
    PrimID_ForceZero                     = 2,
    PrimID_Num                           = 4,
    PrimID_NumBits                       = 2,
}

Values

Name

Description

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 DynamicPrimitiveShaderDataIndex.

PrimID_ForceZero

PrimitiveId will always be 0.

PrimID_Num

PrimID_NumBits

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback