FOpenGLDynamicRHI::RHIReadSurfaceData

Override Hierarchy

FDynamicRHI::RHIReadSurfaceData()

FOpenGLDynamicRHI::RHIReadSurfaceData()

Syntax

virtual void RHIReadSurfaceData
(
    FTextureRHIParamRef Texture,
    FIntRect Rect,
    TArray < FColor > & OutData,
    FReadSurfaceDataFlags InFlags
)

Remarks

Reads the contents of a texture to an output buffer (non MSAA and MSAA) and returns it as a FColor array. If the format or texture type is unsupported the OutData array will be size 0

References

Module

OpenGLDrv

Header

Runtime/OpenGLDrv/Public/OpenGLDrv.h

Source

Runtime/OpenGLDrv/Private/OpenGLRenderTarget.cpp