Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FRenderTarget
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ReadFloat16Pixels
(
TArray< FFloat16Color >& OutImageData, |
Reads the render target's displayed pixels into the given color buffer. | UnrealClient.h | |
virtual bool ReadFloat16Pixels
(
TArray< FFloat16Color >& OutImageData, |
Reads the render target's displayed pixels into the given color buffer. | UnrealClient.h |
ReadFloat16Pixels(TArray< FFloat16Color > &, ECubeFace)
Description
Reads the render target's displayed pixels into the given color buffer.
| Name | ReadFloat16Pixels |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/UnrealClient.h |
| Include Path | #include "UnrealClient.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealClient.cpp |
bool ReadFloat16Pixels
(
TArray < FFloat16Color > & OutImageData,
ECubeFace CubeFace
)
True if the read succeeded.
Parameters
| Name | Remarks |
|---|---|
| OutImageData | RGBA16F values will be stored in this buffer |
| CubeFace | optional cube face for when reading from a cube render target |
ReadFloat16Pixels(TArray< FFloat16Color > &, FReadSurfaceDataFlags, FIntRect)
Description
Reads the render target's displayed pixels into the given color buffer. The default value for InFlags specifies RCM_UNorm which will cause values to be scaled into [0,1] ; use RCM_MinMax to retrieve values without change.
Unlike other RenderTarget Read functions, this only works if surface is PF_FloatRGBA exactly ; it does not convert. Prefer using FImageUtils::GetRenderTargetImage rather than calling this directly.
| Name | ReadFloat16Pixels |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/UnrealClient.h |
| Include Path | #include "UnrealClient.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealClient.cpp |
virtual bool ReadFloat16Pixels
(
TArray < FFloat16Color > & OutImageData,
FReadSurfaceDataFlags InFlags,
FIntRect InSrcRect
)
True if the read succeeded.
Parameters
| Name | Remarks |
|---|---|
| OutImageData | RGBA16F values will be stored in this buffer |
| InFlags | Additional information about how to to read the surface data (cube face, slice index, etc.) |
| InSrcRect | InSrcRect not specified means the whole rect |