UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PrimitiveDirtyState.h File Reference
#include "HAL/Platform.h"
#include "Misc/EnumClassFlags.h"

Go to the source code of this file.

Enumerations

enum class  EPrimitiveDirtyState : uint8 {
  None = 0U , ChangedTransform = (1U << 1U) , ChangedStaticLighting = (1U << 2U) , ChangedOther = (1U << 3U) ,
  Added = (1U << 4U) , Removed = (1U << 5U) , ChangedAll = ChangedTransform | ChangedStaticLighting | ChangedOther , AddedMask = ChangedAll | Added
}
 

Functions

 ENUM_CLASS_FLAGS (EPrimitiveDirtyState)
 

Enumeration Type Documentation

◆ EPrimitiveDirtyState

Enumerator
None 
ChangedTransform 
ChangedStaticLighting 
ChangedOther 
Added 

The Added flag is a bit special, as it is used to skip invalidations in the VSM, and thus must only be set if the primitive is in fact added (a previous remove must have been processed by GPU scene, or it is new). If in doubt, don't set this.

Removed 
ChangedAll 
AddedMask 

Mark all data as changed and set Added flag. Must ONLY be used when a primitive is added, c.f. Added, above.

Function Documentation

◆ ENUM_CLASS_FLAGS()

ENUM_CLASS_FLAGS ( EPrimitiveDirtyState  )