Navigation
API > API/Plugins > API/Plugins/XRBase
Common IStereoRenderTargetManager implementation that can be used by HMD implementations in order to get default implementations for most methods.
| Name | FXRRenderTargetManager |
| Type | class |
| Header File | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/XRRenderTargetManager.h |
| Include Path | #include "XRRenderTargetManager.h" |
Syntax
class FXRRenderTargetManager : public IStereoRenderTargetManager
Implements Interfaces
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CalculateRenderTargetSize
(
const FViewport& Viewport, |
Calculates dimensions of the render target texture for direct rendering of distortion. | XRRenderTargetManager.h | |
virtual bool NeedReAllocateViewportRenderTarget
(
const FViewport& Viewport |
Returns true, if render target texture must be re-calculated. | XRRenderTargetManager.h | |
virtual void UpdateViewport
(
bool bUseSeparateRenderTarget, |
Updates viewport for direct rendering of distortion. Should be called on a game thread. | XRRenderTargetManager.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FXRRenderBridge * GetActiveRenderBridge_GameThread
(
bool bUseSeparateRenderTarget |
Return the current render bridge for use by the current viewport. | XRRenderTargetManager.h | |
virtual void UpdateViewportRHIBridge
(
bool bUseSeparateRenderTarget, |
Optional method for custom present specific actions called at the end of UpdateViewport. | XRRenderTargetManager.h | |
virtual void UpdateViewportWidget
(
bool bUseSeparateRenderTarget, |
Optional method called when the ViewportWidget is not null | XRRenderTargetManager.h |