Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FTextureRenderTargetVolumeResour- > API/Runtime/Engine/FTextureRenderTargetVolumeResour-/ReadPixels
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/TextureRenderTargetVolumeResource.h |
Include | #include "TextureRenderTargetVolumeResource.h" |
Source | /Engine/Source/Runtime/Engine/Private/TextureRenderTargetVolume.cpp |
bool ReadPixels
(
TArray < FColor > & OutImageData,
int32 InDepthSlice,
FIntRect InRect
)
Remarks
Copy the texels of a single depth slice of the volume into an array. true if the read succeeded.
Parameters
Name | Description |
---|---|
OutImageData | float16 values will be stored in this array. |
InDepthSlice | which depth slice to read. |
InRect | Rectangle of texels to copy. |