Navigation
API > API/Plugins > API/Plugins/XRBase > API/Plugins/XRBase/FXRRenderTargetManager
Description
Calculates dimensions of the render target texture for direct rendering of distortion. This implementation calculates the size based on the current value of xr.SecondaryScreenPercentage.HMDRenderTarget.
| Name | CalculateRenderTargetSize |
| Type | function |
| Header File | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/XRRenderTargetManager.h |
| Include Path | #include "XRRenderTargetManager.h" |
| Source | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Private/XRRenderTargetManager.cpp |
virtual void CalculateRenderTargetSize
(
const class FViewport & Viewport,
uint32 & InOutSizeX,
uint32 & InOutSizeY
)