![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <FrameGrabber.h>
Public Member Functions | |
| MOVIESCENECAPTURE_API | FViewportSurfaceReader (EPixelFormat InPixelFormat, FIntPoint InBufferSize) |
| MOVIESCENECAPTURE_API | ~FViewportSurfaceReader () |
| MOVIESCENECAPTURE_API void | Initialize () |
| MOVIESCENECAPTURE_API void | BlockUntilAvailable () |
| MOVIESCENECAPTURE_API void | Reset () |
| MOVIESCENECAPTURE_API void | ResolveRenderTarget (FViewportSurfaceReader *RenderToReadback, const FTextureRHIRef &BackBuffer, TFunction< void(FColor *, int32, int32)> Callback) |
| MOVIESCENECAPTURE_API FIntPoint | GetCurrentSize () const |
| void | SetCaptureRect (FIntRect InCaptureRect) |
| void | SetWindowSize (FIntPoint InWindowSize) |
| bool | WasEverQueued () const |
Protected Member Functions | |
| MOVIESCENECAPTURE_API void | Resize (uint32 Width, uint32 Height) |
A single, managed surface used as a render target resolution destination
| FViewportSurfaceReader::FViewportSurfaceReader | ( | EPixelFormat | InPixelFormat, |
| FIntPoint | InBufferSize | ||
| ) |
Constructor
| FViewportSurfaceReader::~FViewportSurfaceReader | ( | ) |
Destructor
| void FViewportSurfaceReader::BlockUntilAvailable | ( | ) |
Wait for this reader to become available, if it's currently in use
| MOVIESCENECAPTURE_API FIntPoint FViewportSurfaceReader::GetCurrentSize | ( | ) | const |
Get the current size of the texture
| void FViewportSurfaceReader::Initialize | ( | ) |
Initialize this reader so that it can be waited on.
| void FViewportSurfaceReader::Reset | ( | ) |
Safely resets the state of the wait event. When doing latent surface reading sometimes we may want to just bail on reading a given frame. Should only be performed after flushing rendering commands.
Set up this surface to the specified width/height
| void FViewportSurfaceReader::ResolveRenderTarget | ( | FViewportSurfaceReader * | RenderToReadback, |
| const FTextureRHIRef & | BackBuffer, | ||
| TFunction< void(FColor *, int32, int32)> | Callback | ||
| ) |
Resolve the specified viewport RHI, calling the specified callback with the result.
| BackBuffer | The backbuffer to resolve |
| Callback | Callback to call with the locked texture data. This will be called on an undefined thread. |
Set the rectangle within which to read pixels
Set the window size that we expect from the BackBuffer
|
inline |
|
protected |
Optional event that is triggered when the surface is no longer in use
|
protected |
Whether this surface reader is enabled or not
|
protected |
Whether this reader is enabled or not.
|
protected |
|
protected |
The rectangle to read from the surface
|
protected |
The desired pixel format of the resolved textures
|
protected |
Texture used to store the resolved render target
|
protected |
In windows mode, the size of the widget with the border