![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "RHIUtilities.h"#include "Async/TaskGraphInterfaces.h"#include "HAL/PlatformStackWalk.h"#include "RHI.h"#include "GenericPlatform/GenericPlatformFramePacer.h"#include "HAL/Runnable.h"#include "HAL/RunnableThread.h"#include "HAL/PlatformFramePacer.h"#include "Misc/CommandLine.h"#include "RHIAccess.h"#include "RHIFwd.h"#include "RHIStrings.h"#include "Tasks/Task.h"#include "ProfilingDebugging/MiscTrace.h"Classes | |
| class | FRHIFrameFlipTrackingRunnable |
| struct | FRHIFrameOffsetThread |
| struct | FRHIFrameOffsetThread::FFrameDebugInfo |
Macros | |
| #define | USE_FRAME_OFFSET_THREAD 1 |
| #define USE_FRAME_OFFSET_THREAD 1 |
| void DecodeRenderTargetMode | ( | ESimpleRenderTargetMode | Mode, |
| ERenderTargetLoadAction & | ColorLoadAction, | ||
| ERenderTargetStoreAction & | ColorStoreAction, | ||
| ERenderTargetLoadAction & | DepthLoadAction, | ||
| ERenderTargetStoreAction & | DepthStoreAction, | ||
| ERenderTargetLoadAction & | StencilLoadAction, | ||
| ERenderTargetStoreAction & | StencilStoreAction, | ||
| FExclusiveDepthStencil | DepthStencilUsage | ||
| ) |
Convert the ESimpleRenderTargetMode into usable values
| void RHICalculateFrameTime | ( | ) |
| RHI_API ERHIAccess RHIGetDefaultResourceState | ( | EBufferUsageFlags | InUsage, |
| bool | bInHasInitialData | ||
| ) |
Get the best default resource state for the given buffer creation flags
| RHI_API ERHIAccess RHIGetDefaultResourceState | ( | ETextureCreateFlags | InUsage, |
| bool | bInHasInitialData | ||
| ) |
Get the best default resource state for the given texture creation flags
| float RHIGetFrameTime | ( | ) |
Sets the FrameIndex and InputTime for the current frame.
| EGpuVendorId RHIGetPreferredAdapterVendor | ( | ) |
Returns the VendorID of the preferred vendor or -1 if none were specified.
Returns the top and bottom vsync present thresholds (the values of rhi.PresentThreshold.Top and rhi.PresentThreshold.Bottom)
| bool RHIGetSyncAllowVariable | ( | ) |
Returns the value of the rhi.SyncAllowVariable CVar.
| uint32 RHIGetSyncInterval | ( | ) |
Returns the value of the rhi.SyncInterval CVar.
| float RHIGetSyncSlackMS | ( | ) |
Returns the value of the rhi.SyncSlackMS CVar or length of a full frame interval if the frame offset system is disabled.
| void RHIInitializeFlipTracking | ( | ) |
Sets the FrameIndex and InputTime for the current frame.
| void RHISetVsyncDebugInfo | ( | FRHIFlipDetails & | NewFlipFrame | ) |
Sets the Vsync information for a new frame
| void RHIShutdownFlipTracking | ( | ) |
| void RHITriggerTaskEventOnFlip | ( | uint64 | PresentIndex, |
| const UE::Tasks::FTaskEvent & | Event | ||
| ) |
| void SetDepthBoundsTest | ( | FRHICommandList & | RHICmdList, |
| float | WorldSpaceDepthNear, | ||
| float | WorldSpaceDepthFar, | ||
| const FMatrix & | ProjectionMatrix | ||
| ) |
| TAutoConsoleVariable< float > CVarRHIPresentThresholdBottom(TEXT("rhi.PresentThreshold.Bottom"), 0.0f, TEXT("Range: 0.0 - 1.0\n"), ECVF_Default) | ( | TEXT("rhi.PresentThreshold.Bottom") | , |
| 0. | 0f, | ||
| TEXT("Range: 0.0 - 1.0\n") | , | ||
| ECVF_Default | |||
| ) |
| TAutoConsoleVariable< float > CVarRHIPresentThresholdTop(TEXT("rhi.PresentThreshold.Top"), 0.0f, TEXT("Range: 0.0 - 1.0\n"), ECVF_Default) | ( | TEXT("rhi.PresentThreshold.Top") | , |
| 0. | 0f, | ||
| TEXT("Range: 0.0 - 1.0\n") | , | ||
| ECVF_Default | |||
| ) |
| TAutoConsoleVariable< int32 > CVarRHISyncAllowEarlyKick(TEXT("rhi.SyncAllowEarlyKick"), 1, TEXT("When 1, allows the RHI vsync thread to kick off the next frame early if we've missed the vsync."), ECVF_Default) | ( | TEXT("rhi.SyncAllowEarlyKick") | , |
| 1 | , | ||
| TEXT("When 1, allows the RHI vsync thread to kick off the next frame early if we've missed the vsync.") | , | ||
| ECVF_Default | |||
| ) |
| TAutoConsoleVariable< int32 > CVarRHISyncAllowVariable(TEXT("rhi.SyncAllowVariable"), 1, TEXT("When 1, allows the RHI to use variable refresh rate, if supported by the output hardware."), ECVF_Default) | ( | TEXT("rhi.SyncAllowVariable") | , |
| 1 | , | ||
| TEXT("When 1, allows the RHI to use variable refresh rate, if supported by the output hardware.") | , | ||
| ECVF_Default | |||
| ) |
| TAutoConsoleVariable< int32 > CVarRHISyncInterval(TEXT("rhi.SyncInterval"), 1, TEXT(" 3 - etc...\n"), ECVF_Default) | ( | TEXT("rhi.SyncInterval") | , |
| 1 | , | ||
| TEXT(" 3 - etc...\n") | , | ||
| ECVF_Default | |||
| ) |
| TAutoConsoleVariable< float > CVarRHISyncSlackMS(TEXT("rhi.SyncSlackMS"), 10, TEXT("Increases input latency by this many milliseconds, to help performance (trade-off tunable). Gamethread will be kicked off this many milliseconds before the vsync"), ECVF_Default) | ( | TEXT("rhi.SyncSlackMS") | , |
| 10 | , | ||
| TEXT("Increases input latency by this many milliseconds, to help performance (trade-off tunable). Gamethread will be kicked off this many milliseconds before the vsync") | , | ||
| ECVF_Default | |||
| ) |
| int32 GEnableConsole120Fps = 0 |
| double GLastRHITimeInSeconds = 0.0 |
| float GRHIFrameTimeMS = 0.0f |
| int32 InternalEnableConsole120Fps = 0 |