IStereoRenderTargetManager

The [IStereoRenderTargetManager](API\Runtime\Engine\IStereoRenderTargetManager) can be returned from [IStereoRendering::GetRenderTargetManager()](API\Runtime\Engine\IStereoRendering\GetRenderTargetManager) implementations.

Windows
MacOS
Linux

Inheritance Hierarchy

IStereoRenderTargetManager

FXRRenderTargetManager

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/StereoRenderTargetManager.h

Include

#include "StereoRenderTargetManager.h"

Syntax

class IStereoRenderTargetManager

Remarks

The IStereoRenderTargetManager can be returned from IStereoRendering::GetRenderTargetManager() implementations. Implement this interface if a stereo rendering device requires all output to be rendered into separate render targets and/or to customize how separate render targets are allocated.

Functions

Name Description

Public function Virtual

bool

 

AllocateDepthTexture

(
    uint32 Index,
    uint32 SizeX,
    uint32 SizeY,
    uint8 Format,
    uint32 NumMips,
    uint32 Flags,
    uint32 TargetableTextureFlags,
    FTexture2DRHIRef& OutTargetableTex...,
    FTexture2DRHIRef& OutShaderResourc...,
    uint32 NumSamples
)

Allocates a depth texture.

Public function Virtual

bool

 

AllocateFoveationTexture

(
    uint32 Index,
    uint32 RenderSizeX,
    uint32 RenderSizeY,
    uint8 Format,
    uint32 NumMips,
    uint32 Flags,
    uint32 TargetableTextureFlags,
    FTexture2DRHIRef& OutTexture,
    FIntPoint& OutTextureSize
)

Allocates a foveation texture.

Public function Virtual

bool

 

AllocateRenderTargetTexture

(
    uint32 Index,
    uint32 SizeX,
    uint32 SizeY,
    uint8 Format,
    uint32 NumMips,
    uint32 Flags,
    uint32 TargetableTextureFlags,
    FTexture2DRHIRef& OutTargetableTex...,
    FTexture2DRHIRef& OutShaderResourc...,
    uint32 NumSamples
)

Allocates a render target texture.

Public function

void

 

CalculateRenderTargetSize

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

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

Public function Virtual Const

uint32

 

GetNumberOfBufferedFrames()

Returns number of required buffered frames.

Public function Virtual

bool

 

NeedReAllocateDepthTexture

(
    const TRefCountPtr< struct IPooledR...
)

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

Public function Virtual

bool

 

NeedReAllocateFoveationTexture

(
    const TRefCountPtr< struct IPooledR...
)

Returns true, if foveation texture must be re-calculated.

Public function

bool

 

NeedReAllocateViewportRenderTarget

(
    const FViewport& Viewport
)

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

Public function Const

bool

 

ShouldUseSeparateRenderTarget()

Whether a separate render target should be used or not.

Public function

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