FTextureRenderTargetVolumeResource::ReadPixels

Copy the texels of a single depth slice of the cube into an array.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/TextureRenderTargetVolumeResource.h

Include

#include "TextureRenderTargetVolumeResource.h"

Source

/Engine/Source/Runtime/Engine/Private/TextureRenderTargetVolume.cpp

Syntax

bool ReadPixels
(
    TArray< FFloat16Color > & OutImageData,
    int32 InDepthSlice,
    FIntRect InRect
)

Remarks

Copy the texels of a single depth slice of the cube into an array.

Returns

true if the read succeeded.

Parameters

Parameter

Description

OutImageData

float16 values will be stored in this array.

InDepthSlice

which depth slice to read.

InRect

Rectangle of texels to copy.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss