Head Mounted VR 2.7
Loading...
Searching...
No Matches
FVRLateUpdateManager Class Reference

#include <VR_MotionControllerComponent.h>

Classes

struct  FLateUpdateState
 

Public Member Functions

 FVRLateUpdateManager ()
 
virtual ~FVRLateUpdateManager ()
 
void Setup (const FTransform &ParentToWorld, UVR_MotionControllerComponent *Component, bool bSkipLateUpdate)
 
void Apply_RenderThread (FSceneInterface *Scene, const FTransform &OldRelativeTransform, const FTransform &NewRelativeTransform)
 
bool GetSkipLateUpdate_RenderThread () const
 
void GatherLateUpdatePrimitives (USceneComponent *ParentComponent)
 
void CacheSceneInfo (USceneComponent *Component)
 

Public Attributes

FLateUpdateState UpdateStates [2]
 
int32 LateUpdateGameWriteIndex
 
int32 LateUpdateRenderReadIndex
 

Constructor & Destructor Documentation

◆ FVRLateUpdateManager()

FVRLateUpdateManager::FVRLateUpdateManager ( )

◆ ~FVRLateUpdateManager()

virtual FVRLateUpdateManager::~FVRLateUpdateManager ( )
inlinevirtual

Member Function Documentation

◆ Apply_RenderThread()

void FVRLateUpdateManager::Apply_RenderThread ( FSceneInterface *  Scene,
const FTransform &  OldRelativeTransform,
const FTransform &  NewRelativeTransform 
)

Apply the late update delta to the cached components

◆ CacheSceneInfo()

void FVRLateUpdateManager::CacheSceneInfo ( USceneComponent *  Component)

Generates a LateUpdatePrimitiveInfo for the given component if it has a SceneProxy and appends it to the current LateUpdatePrimitives array

◆ GatherLateUpdatePrimitives()

void FVRLateUpdateManager::GatherLateUpdatePrimitives ( USceneComponent *  ParentComponent)

A utility method that calls CacheSceneInfo on ParentComponent and all of its descendants

◆ GetSkipLateUpdate_RenderThread()

bool FVRLateUpdateManager::GetSkipLateUpdate_RenderThread ( ) const
inline

Returns true if the LateUpdateSetup data is stale.

◆ Setup()

void FVRLateUpdateManager::Setup ( const FTransform &  ParentToWorld,
UVR_MotionControllerComponent Component,
bool  bSkipLateUpdate 
)

Setup state for applying the render thread late update

Member Data Documentation

◆ LateUpdateGameWriteIndex

int32 FVRLateUpdateManager::LateUpdateGameWriteIndex

◆ LateUpdateRenderReadIndex

int32 FVRLateUpdateManager::LateUpdateRenderReadIndex

◆ UpdateStates

FLateUpdateState FVRLateUpdateManager::UpdateStates[2]

The documentation for this class was generated from the following files: