engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IStereoRenderTargetManager类 参考abstract

The IStereoRenderTargetManager can be returned from IStereoRendering::GetRenderTargetManager() implementations. 更多...

#include <StereoRenderTargetManager.h>

+ 类 IStereoRenderTargetManager 继承关系图:

Public 成员函数

virtual bool AllocateDepthTexture (uint32 Index, uint32 SizeX, uint32 SizeY, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ETextureCreateFlags TargetableTextureFlags, FTexture2DRHIRef &OutTargetableTexture, FTexture2DRHIRef &OutShaderResourceTexture, uint32 NumSamples=1)
 Allocates a depth texture. 更多...
 
virtual bool AllocateFoveationTexture (uint32 Index, uint32 RenderSizeX, uint32 RenderSizeY, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ETextureCreateFlags TargetableTextureFlags, FTexture2DRHIRef &OutTexture, FIntPoint &OutTextureSize)
 Allocates a foveation texture. 更多...
 
virtual bool AllocateRenderTargetTexture (uint32 Index, uint32 SizeX, uint32 SizeY, uint8 Format, uint32 NumMips, ETextureCreateFlags Flags, ETextureCreateFlags TargetableTextureFlags, FTexture2DRHIRef &OutTargetableTexture, FTexture2DRHIRef &OutShaderResourceTexture, uint32 NumSamples=1)
 Allocates a render target texture. 更多...
 
virtual void CalculateRenderTargetSize (const class FViewport &Viewport, uint32 &InOutSizeX, uint32 &InOutSizeY)=0
 Calculates dimensions of the render target texture for direct rendering of distortion.
 
virtual uint32 GetNumberOfBufferedFrames () const
 Returns number of required buffered frames.
 
virtual bool NeedReAllocateDepthTexture (const TRefCountPtr< struct IPooledRenderTarget > &DepthTarget)
 Returns true, if render target texture must be re-calculated.
 
virtual bool NeedReAllocateFoveationTexture (const TRefCountPtr< struct IPooledRenderTarget > &FoveationTarget)
 Returns true, if foveation texture must be re-calculated.
 
virtual bool NeedReAllocateViewportRenderTarget (const class FViewport &Viewport)=0
 Returns true, if render target texture must be re-calculated.
 
virtual bool ShouldUseSeparateRenderTarget () const =0
 Whether a separate render target should be used or not. 更多...
 
virtual void UpdateViewport (bool bUseSeparateRenderTarget, const class FViewport &Viewport, class SViewport *ViewportWidget=nullptr)=0
 Updates viewport for direct rendering of distortion. 更多...
 

详细描述

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.

成员函数说明

◆ AllocateDepthTexture()

virtual bool IStereoRenderTargetManager::AllocateDepthTexture ( uint32  Index,
uint32  SizeX,
uint32  SizeY,
uint8  Format,
uint32  NumMips,
ETextureCreateFlags  Flags,
ETextureCreateFlags  TargetableTextureFlags,
FTexture2DRHIRef &  OutTargetableTexture,
FTexture2DRHIRef &  OutShaderResourceTexture,
uint32  NumSamples = 1 
)
inlinevirtual

Allocates a depth texture.

参数
Index(in) index of the buffer, changing from 0 to GetNumberOfBufferedFrames()
返回
true, if texture was allocated; false, if the default texture allocation should be used.

◆ AllocateFoveationTexture()

virtual bool IStereoRenderTargetManager::AllocateFoveationTexture ( uint32  Index,
uint32  RenderSizeX,
uint32  RenderSizeY,
uint8  Format,
uint32  NumMips,
ETextureCreateFlags  Flags,
ETextureCreateFlags  TargetableTextureFlags,
FTexture2DRHIRef &  OutTexture,
FIntPoint &  OutTextureSize 
)
inlinevirtual

Allocates a foveation texture.

The default implementation always returns false to indicate that the default texture allocation should be used instead.

参数
Index(in) index of the buffer, changing from 0 to GetNumberOfBufferedFrames()
返回
true, if texture was allocated; false, if the default texture allocation should be used.

◆ AllocateRenderTargetTexture()

virtual bool IStereoRenderTargetManager::AllocateRenderTargetTexture ( uint32  Index,
uint32  SizeX,
uint32  SizeY,
uint8  Format,
uint32  NumMips,
ETextureCreateFlags  Flags,
ETextureCreateFlags  TargetableTextureFlags,
FTexture2DRHIRef &  OutTargetableTexture,
FTexture2DRHIRef &  OutShaderResourceTexture,
uint32  NumSamples = 1 
)
inlinevirtual

Allocates a render target texture.

The default implementation always return false to indicate that the default texture allocation should be used instead.

参数
Index(in) index of the buffer, changing from 0 to GetNumberOfBufferedFrames()
返回
true, if texture was allocated; false, if the default texture allocation should be used.

◆ ShouldUseSeparateRenderTarget()

virtual bool IStereoRenderTargetManager::ShouldUseSeparateRenderTarget ( ) const
pure virtual

Whether a separate render target should be used or not.

In case the stereo rendering implementation does not require special handling of separate render targets at all, it can leave out implementing this interface completely and simply let the default implementation of IStereoRendering::GetRenderTargetManager() return nullptr.

◆ UpdateViewport()

virtual void IStereoRenderTargetManager::UpdateViewport ( bool  bUseSeparateRenderTarget,
const class FViewport &  Viewport,
class SViewport *  ViewportWidget = nullptr 
)
pure virtual

Updates viewport for direct rendering of distortion.

Should be called on a game thread.

参数
bUseSeparateRenderTargetSet to true if a separate render target will be used. Can potentiallt be true even if ShouldUseSeparateRenderTarget() returned false earlier.
ViewportThe Viewport instance calling this method.
ViewportWidget(optional) The Viewport widget containing the view. Can be used to access SWindow object.

在 FXRRenderTargetManager 内被实现.


该类的文档由以下文件生成: