Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/TextureResource.h |
Include |
#include "TextureResource.h" |
Source |
/Engine/Source/Runtime/Engine/Private/TextureRenderTargetCube.cpp |
bool ReadPixels
(
TArray< FFloat16Color > & OutImageData,
FReadSurfaceDataFlags InFlags,
FIntRect InRect
)
Copy the texels of a single face of the cube into an array. Copy the texels of a single face of a cube texture into an array.
True if the read succeeded.
Parameter |
Description |
---|---|
OutImageData |
float16 values will be stored in this array. |
InFlags |
read flags. ensure cubeface member has been set. |
InRect |
Rectangle of texels to copy. |
OutImageData |
float16 values will be stored in this array. |
InFlags |
read flags. ensure cubeface member has been set. |
InRect |
Rectangle of texels to copy. Empty InRect (0,0,0,0) defaults to the whole surface size. |