Navigation
API > API/Runtime > API/Runtime/RHI
| Name | FRHICustomPresent |
| Type | class |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include Path | #include "RHIResources.h" |
Syntax
class FRHICustomPresent : public FRHIResource
Inheritance Hierarchy
- FRHIResource → FRHICustomPresent
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRHICustomPresent() |
RHIResources.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FRHICustomPresent() |
RHIResources.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDrawing() |
Called from RHI thread when the engine begins drawing to the viewport. | RHIResources.h | |
virtual bool NeedsAdvanceBackbuffer() |
In come cases we want to use custom present but still let the native environment handle advancement of the backbuffer indices. | RHIResources.h | |
bool NeedsNativePresent() |
Called from render thread to see if a native present will be requested for this frame. | RHIResources.h | |
virtual void OnAcquireThreadOwnership() |
Called when rendering thread is acquired. | RHIResources.h | |
void OnBackBufferResize() |
Called when viewport is resized. | RHIResources.h | |
virtual void OnReleaseThreadOwnership() |
Called when rendering thread is released. | RHIResources.h | |
virtual void PostPresent() |
Called from RHI thread after native Present has been called. | RHIResources.h | |
virtual bool Present
(
IRHICommandContext& RHICmdContext, |
Called from RHI thread to perform custom present. | RHIResources.h |