Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FTextureRenderTargetVolumeResour-
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.
Virtual Inheritance
- FRenderTarget::ReadFloat16Pixels → FTextureRenderTargetVolumeResource::ReadFloat16Pixels
| Name | ReadFloat16Pixels |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/TextureRenderTargetVolumeResource.h |
| Include Path | #include "TextureRenderTargetVolumeResource.h" |
| Source | /Engine/Source/Runtime/Engine/Private/TextureRenderTargetVolume.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 |