FRHICustomPresent

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/RHIResources.h

Include

#include "RHIResources.h"

Syntax

class FRHICustomPresent : public FRHIResource

Constructors

Name Description

Public function

FRHICustomPresent()

Destructors

Name Description

Public function Virtual

~FRHICustomPresent()

Functions

Name Description

Public function Virtual

void

 

BeginDrawing()

Called from RHI thread when the engine begins drawing to the viewport.

Public function Virtual

bool

 

NeedsAdvanceBackbuffer()

In come cases we want to use custom present but still let the native environment handle advancement of the backbuffer indices.

Public function

bool

 

NeedsNativePresent()

Called from render thread to see if a native present will be requested for this frame.

Public function Virtual

void

 

OnAcquireThreadOwnership()

Called when rendering thread is acquired.

Public function

void

 

OnBackBufferResize()

Called when viewport is resized.

Public function Virtual

void

 

OnReleaseThreadOwnership()

Called when rendering thread is released.

Public function Virtual

void

 

PostPresent()

Called from RHI thread after native Present has been called.

Public function

bool

 

Present

(
    int32& InOutSyncInterval
)

Called from RHI thread to perform custom present.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss