51 UE_DEPRECATED(5.6,
"Use the function with the EBuildFlags param")
89 bool CanEverRender()
const;
92 bool CanCurrentlyRender()
const;
106 enum class EComponentStage :
uint8
116 struct FComponentState
121 ULandscapeComponent*
Component =
nullptr;
123 EComponentStage Stage = EComponentStage::Pending;
125 bool bInPendingHeap =
false;
145 FComponentState(ULandscapeComponent* Component);
147 bool AreTexturesStreamedIn();
152 struct FPendingComponent
161 return PriorityKey <
Other.PriorityKey;
166 FComponentState*
State =
nullptr;
171 struct FAmortizedUpdate
174 int32 FirstIndex = 0;
192 FirstIndex = LastIndex;
197 check(FirstIndex >= 0);
230 int32 PendingCount = 0;
231 int32 NotReadyCount = 0;
232 int32 StreamingCount = 0;
233 int32 RenderingCount = 0;
234 int32 AsyncFetchCount = 0;
235 int32 PopulatedCount = 0;
238 int32 TotalComponentsWaitingCount = 0;
241 bool bRenderCommandsQueuedByLastUpdate =
false;
251 int32 PendingUpdateAmortizationCounter = 0;
252 float LastMustHaveDistanceScale = 0.0f;
255 FAmortizedUpdate AmortizedUpdate;
275 void KickOffRenderAndReadback(FComponentState& State);
278 void LaunchAsyncFetchTask(FComponentState& State);
280 void PopulateGrassDataFromAsyncFetchTask(FComponentState& State);
283 void PopulateGrassDataFromReadback(FComponentState& State);
284 void RemoveTextureStreamingRequests(FComponentState& State);
287 void StreamingToNotReady(FComponentState& State);
288 void PendingToNotReady(FComponentState& State);
289 void PendingToPopulatedFastPathAlreadyHasData(FComponentState& State);
290 void PendingToPopulatedFastPathNoGrass(FComponentState& State);
291 void PendingToStreaming(FComponentState& State);
294 void AddToPendingComponentHeap(FComponentState* State);
295 void RemoveFromPendingComponentHeap(FComponentState* State);
297 void CompleteAllAsyncTasksNow();
#define check(expr)
Definition AssertionMacros.h:314
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
#define RETURN_QUICK_DECLARE_CYCLE_STAT(StatId, GroupId)
Definition Stats.h:655
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
bool operator<(const FTextFormatString &LHS, const FTextFormatString &RHS)
Definition ITextFormatArgumentModifier.h:147
Definition LandscapeGrassMapsBuilder.h:21
TNonNullPtr< FLandscapeGrassWeightExporter > ActiveRender
Definition LandscapeGrassMapsBuilder.h:24
TMap< ULandscapeComponent *, TUniquePtr< FLandscapeComponentGrassData >, TInlineSetAllocator< 1 > > Results
Definition LandscapeGrassMapsBuilder.h:25
FAsyncFetchTask(FLandscapeGrassWeightExporter *ActiveRender)
Definition LandscapeGrassMapsBuilder.h:27
FORCEINLINE TStatId GetStatId() const
Definition LandscapeGrassMapsBuilder.h:34
void DoWork()
Definition LandscapeGrassMapsBuilder.cpp:422
Definition LandscapeGrassMapsBuilder.h:44
~FLandscapeGrassMapsBuilder()
Definition LandscapeGrassMapsBuilder.cpp:324
int32 CountOutdatedGrassMaps(const TArray< TObjectPtr< ULandscapeComponent > > &LandscapeComponents) const
void RegisterComponent(ULandscapeComponent *Component)
Definition LandscapeGrassMapsBuilder.cpp:778
bool BuildGrassMapsNowForComponents(TArrayView< TObjectPtr< ULandscapeComponent > > LandscapeComponents, FScopedSlowTask *SlowTask, bool bMarkDirty)
Definition LandscapeGrassMapsBuilder.cpp:1093
void DebugRenderComponents(TArrayView< TObjectPtr< ULandscapeComponent > > LandscapeComponents)
Definition LandscapeGrassMapsBuilder.cpp:947
int32 GetTotalGrassMapsWaitingToRender() const
Definition LandscapeGrassMapsBuilder.h:68
void UnregisterComponent(const ULandscapeComponent *Component)
Definition LandscapeGrassMapsBuilder.cpp:806
void AmortizedUpdateGrassMaps(const TArray< FVector > &Cameras, bool bPrioritizeCreation, bool bAllowStartGrassMapGeneration)
Definition LandscapeGrassMapsBuilder.cpp:842
Definition LandscapeGrassWeightExporter.h:101
Definition LandscapeTextureStreamingManager.h:33
Definition AsyncWork.h:663
Definition AllocatorFixedSizeFreeList.h:30
Definition ArrayView.h:139
Definition ContainerAllocationPolicies.h:1664
Definition UnrealString.h.inl:34
Definition NonNullPointer.h:23
Definition UniquePtr.h:107
Definition PointHashGrid3.h:33
State
Definition PacketHandler.h:88
Definition Landscape.h:55
EBuildFlags
Definition LandscapeEditTypes.h:70
Definition ScopedSlowTask.h:32
Definition NumericLimits.h:41
Definition ObjectPtr.h:488
Definition LightweightStats.h:416