Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FRenderTarget > API/Runtime/Engine/FRenderTarget/ReadFloat16Pixels
- FRenderTarget::ReadFloat16Pixels()
- FTextureRenderTargetVolumeResource::ReadFloat16Pixels()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/UnrealClient.h |
| Include | #include "UnrealClient.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealClient.cpp |
virtual bool ReadFloat16Pixels
(
TArray < FFloat16Color > & OutImageData,
FReadSurfaceDataFlags InFlags,
FIntRect InSrcRect
)
Remarks
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. True if the read succeeded.
Parameters
| Name | Description |
|---|---|
| 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 |