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

A render target. 更多...

#include <UnrealClient.h>

+ 类 FRenderTarget 继承关系图:

Public 成员函数

virtual ENGINE_API float GetDisplayGamma () const
 
virtual ENGINE_API FRHIGPUMask GetGPUMask (FRHICommandListImmediate &RHICmdList) const
 Returns the GPU nodes on which to render this rendertarget.
 
virtual ENGINE_API const FTexture2DRHIRef & GetRenderTargetTexture () const
 Accessor for the surface RHI when setting this render target 更多...
 
virtual bool HasToggleFreezeCommand ()
 Returns if there is a command to toggle freezerendering
 
virtual void ProcessToggleFreezeCommand ()
 Handles freezing/unfreezing of rendering
 
ENGINE_API bool ReadFloat16Pixels (TArray< FFloat16Color > &OutputBuffer, ECubeFace CubeFace=CubeFace_PosX)
 Reads the viewport's displayed pixels into the given color buffer. 更多...
 
ENGINE_API bool ReadLinearColorPixels (TArray< FLinearColor > &OutputBuffer, FReadSurfaceDataFlags InFlags=FReadSurfaceDataFlags(RCM_MinMax, CubeFace_MAX), FIntRect InRect=FIntRect(0, 0, 0, 0))
 Reads the viewport's displayed pixels into the given color buffer. 更多...
 
ENGINE_API bool ReadPixels (TArray< FColor > &OutImageData, FReadSurfaceDataFlags InFlags=FReadSurfaceDataFlags(RCM_UNorm, CubeFace_MAX), FIntRect InRect=FIntRect(0, 0, 0, 0))
 Reads the viewport's displayed pixels into a preallocated color buffer. 更多...
 
ENGINE_API bool ReadPixelsPtr (FColor *OutImageBytes, FReadSurfaceDataFlags InFlags=FReadSurfaceDataFlags(RCM_UNorm, CubeFace_MAX), FIntRect InSrcRect=FIntRect(0, 0, 0, 0))
 Reads the viewport's displayed pixels into a preallocated color buffer. 更多...
 

Protected 成员函数

bool ReadFloat16Pixels (FFloat16Color *OutImageBytes, ECubeFace CubeFace=CubeFace_PosX)
 Reads the viewport's displayed pixels into a preallocated color buffer. 更多...
 

详细描述

A render target.

成员函数说明

◆ GetDisplayGamma()

virtual ENGINE_API float FRenderTarget::GetDisplayGamma ( ) const
virtual

◆ GetRenderTargetTexture()

virtual ENGINE_API const FTexture2DRHIRef & FRenderTarget::GetRenderTargetTexture ( ) const
virtual

Accessor for the surface RHI when setting this render target

返回
render target surface RHI resource

被 FSceneViewport 重载.

◆ ReadFloat16Pixels() [1/2]

bool FRenderTarget::ReadFloat16Pixels ( FFloat16Color *  OutImageBytes,
ECubeFace  CubeFace = CubeFace_PosX 
)
protected

Reads the viewport's displayed pixels into a preallocated color buffer.

参数
OutImageBytes- RGBA16F values will be stored in this buffer. Buffer must be preallocated with the correct size!
CubeFace- optional cube face for when reading from a cube render target
返回
True if the read succeeded.

◆ ReadFloat16Pixels() [2/2]

ENGINE_API bool FRenderTarget::ReadFloat16Pixels ( TArray< FFloat16Color > &  OutputBuffer,
ECubeFace  CubeFace = CubeFace_PosX 
)

Reads the viewport's displayed pixels into the given color buffer.

参数
OutputBuffer- RGBA16F values will be stored in this buffer
CubeFace- optional cube face for when reading from a cube render target
返回
True if the read succeeded.

◆ ReadLinearColorPixels()

ENGINE_API bool FRenderTarget::ReadLinearColorPixels ( TArray< FLinearColor > &  OutputBuffer,
FReadSurfaceDataFlags  InFlags = FReadSurfaceDataFlags(RCM_MinMax, CubeFace_MAX),
FIntRect  InRect = FIntRect(0, 0, 0, 0) 
)

Reads the viewport's displayed pixels into the given color buffer.

参数
OutputBuffer- Linear color array to store the value
CubeFace- optional cube face for when reading from a cube render target
返回
True if the read succeeded.

◆ ReadPixels()

ENGINE_API bool FRenderTarget::ReadPixels ( TArray< FColor > &  OutImageData,
FReadSurfaceDataFlags  InFlags = FReadSurfaceDataFlags(RCM_UNorm, CubeFace_MAX),
FIntRect  InRect = FIntRect(0, 0, 0, 0) 
)

Reads the viewport's displayed pixels into a preallocated color buffer.

参数
OutImageData- RGBA8 values will be stored in this buffer
InRect- source rect of the image to capture
返回
True if the read succeeded.

◆ ReadPixelsPtr()

ENGINE_API bool FRenderTarget::ReadPixelsPtr ( FColor *  OutImageBytes,
FReadSurfaceDataFlags  InFlags = FReadSurfaceDataFlags(RCM_UNorm, CubeFace_MAX),
FIntRect  InSrcRect = FIntRect(0, 0, 0, 0) 
)

Reads the viewport's displayed pixels into a preallocated color buffer.

参数
OutImageBytes- RGBA8 values will be stored in this buffer. Buffer must be preallocated with the correct size!
InSrcRectInSrcRect not specified means the whole rect
返回
True if the read succeeded.

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