Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FRHICustomPresent > API/Runtime/RHI/FRHICustomPresent/Present
References
| Module | RHI |
| Header | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include | #include "RHIResources.h" |
virtual bool Present
(
IRHICommandContext & RHICmdContext,
int32 & InOutSyncInterval
)
Remarks
Called from RHI thread to perform custom present. true if native Present should be also be performed; false otherwise. If it returns true, then InOutSyncInterval could be modified to switch between VSync/NoVSync for the normal Present. Must match value previously returned by NeedsNativePresent for this frame.
Parameters
| Name | Description |
|---|---|
| InOutSyncInterval | in out param, indicates if vsync is on (>0) or off (==0). |
| RHICmdContext | the current rhi command context |