FPrimitiveSceneProxy::InitViewCustomData

Called during the visibility and shadow setup for each primitives with either static or dynamic relevancy, so we can store custom data for the frame that can be reused later.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/PrimitiveSceneProxy.h

Include

#include "PrimitiveSceneProxy.h"

Syntax

virtual void * InitViewCustomData
(
    const FSceneView & InView,
    float InViewLODScale,
    FMemStackBase & InCustomDataMemStack,
    bool InIsStaticRelevant,
    bool InIsShadowOnly,
    const struct FLODMask * InVisiblePrimitiveLODMask,
    float InMeshScreenSizeSquared
)

Remarks

Called during the visibility and shadow setup for each primitives with either static or dynamic relevancy, so we can store custom data for the frame that can be reused later. Keep in mind this can be called in multihread as it's called during the InitViews() This will only be called if bUseCustomViewData is true in the GetViewRelevance()

Parameters

Parameter

Description

InView

Current View

InViewLODScale

View LOD scale

InCustomDataMemStack

MemStack to allocate the custom data

InIsStaticRelevant

Tell us if it was called in a static of dynamic relevancy context

InIsShadowOnly

Tell us if we are creating in the shadow context

InVisiblePrimitiveLODMask

Calculated LODMask for visibile primitive in static relevancy

InMeshScreenSizeSquared

Computed mesh batch screen size, passed to prevent recalculation

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