FXRRenderTargetManager

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

Inheritance Hierarchy

IStereoRenderTargetManager

FXRRenderTargetManager

References

Module

HeadMountedDisplay

Header

/Engine/Source/Runtime/HeadMountedDisplay/Public/XRRenderTargetManager.h

Include

#include "XRRenderTargetManager.h"

Syntax

class FXRRenderTargetManager : public IStereoRenderTargetManager

Remarks

CommonIStereoRenderTargetManager implementation that can be used by HMD implementations in order to get default implementations for most methods.

Functions

Name Description

Protected function Virtual

FXRRenderBri...

 

GetActiveRenderBridge_GameThread

(
    bool bUseSeparateRenderTarget
)

Return the current render bridge for use by the current viewport.

Protected function Virtual

void

 

UpdateViewportRHIBridge

(
    bool bUseSeparateRenderTarget,
    const FViewport& Viewport,
    FRHIViewport*const ViewportRHI
)

Optional method for custom present specific actions called at the end of UpdateViewport.

Protected function Virtual

void

 

UpdateViewportWidget

(
    bool bUseSeparateRenderTarget,
    const FViewport& Viewport,
    SViewport* ViewportWidget
)

Optional method called when the ViewportWidget is not null

Overridden from IStereoRenderTargetManager

Name Description

Public function Virtual

void

 

CalculateRenderTargetSize

(
    const FViewport& Viewport,
    uint32& InOutSizeX,
    uint32& InOutSizeY
)

Calculates dimensions of the render target texture for direct rendering of distortion.

Public function Virtual

bool

 

NeedReAllocateViewportRenderTarget

(
    const FViewport& Viewport
)

Returns true, if render target texture must be re-calculated.

Public function Virtual

void

 

UpdateViewport

(
    bool bUseSeparateRenderTarget,
    const FViewport& Viewport,
    SViewport* ViewportWidget
)

Updates viewport for direct rendering of distortion. Should be called on a game thread.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss