FTextureRenderTarget2DArrayResource::ReadPixels

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/TextureRenderTarget2DArrayResource.h

Include

#include "TextureRenderTarget2DArrayResource.h"

Source

/Engine/Source/Runtime/Engine/Private/TextureRenderTarget2DArray.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.