UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GenericPlatformMisc.h File Reference

Go to the source code of this file.

Classes

struct  FSHA256Signature
 
struct  FProcessorGroupDesc
 
struct  FPageFaultStats
 
struct  FProcessIOStats
 
struct  FContextSwitchStats
 
struct  FGenericPlatformMisc
 

Namespaces

namespace  EBuildConfigurations
 
namespace  EBuildTargets
 
namespace  EErrorReportMode
 
namespace  EAppMsgType
 
namespace  EAppReturnType
 

Macros

#define UE_DEBUG_BREAK()   ((void)(FPlatformMisc::IsDebuggerPresent() && ([] () { UE_DEBUG_BREAK_IMPL(); } (), 1)))
 
#define LOG_NAMED_EVENTS   0
 
#define ENABLE_GENERIC_NAMED_EVENTS   ((UE_EXTERNAL_PROFILING_ENABLED) || (STATS) || (ENABLE_STATNAMEDEVENTS) || ((CSV_PROFILER_STATS) && !UE_BUILD_SHIPPING) || (LOG_NAMED_EVENTS) || (FRAMEPRO_ENABLED))
 

Typedefs

typedef EBuildConfiguration EBuildConfigurations::Type
 
typedef EBuildTargetType EBuildTargets::Type
 
typedef TDelegate< void(ENetworkConnectionType ConnectionType), FDefaultDelegateUserPolicyFOnNetworkConnectionChangedDelegate
 

Enumerations

enum class  EBuildConfiguration : uint8 {
  Unknown , Debug , DebugGame , Development ,
  Shipping , Test
}
 
enum class  ECrashHandlingType : uint8 { Default , Disabled }
 
enum class  EBuildTargetType : uint8 {
  Unknown , Game , Server , Client ,
  Editor , Program
}
 
enum class  EConvertibleLaptopMode { NotSupported , Laptop , Tablet }
 
enum class  EDeviceScreenOrientation : uint8 {
  Unknown , Portrait , PortraitUpsideDown , LandscapeLeft ,
  LandscapeRight , FaceUp , FaceDown , PortraitSensor ,
  LandscapeSensor , FullSensor
}
 
enum  EErrorReportMode::Type { EErrorReportMode::Interactive , EErrorReportMode::Unattended , EErrorReportMode::Balloon }
 
enum class  EAppMsgCategory : uint8 { Warning , Error , Success , Info }
 
enum  EAppMsgType::Type {
  EAppMsgType::Ok , EAppMsgType::YesNo , EAppMsgType::OkCancel , EAppMsgType::YesNoCancel ,
  EAppMsgType::CancelRetryContinue , EAppMsgType::YesNoYesAllNoAll , EAppMsgType::YesNoYesAllNoAllCancel , EAppMsgType::YesNoYesAll
}
 
enum  EAppReturnType::Type {
  EAppReturnType::No , EAppReturnType::Yes , EAppReturnType::YesAll , EAppReturnType::NoAll ,
  EAppReturnType::Cancel , EAppReturnType::Ok , EAppReturnType::Retry , EAppReturnType::Continue
}
 
enum class  EMobileHapticsType : uint8 {
  FeedbackSuccess , FeedbackWarning , FeedbackError , SelectionChanged ,
  ImpactLight , ImpactMedium , ImpactHeavy
}
 
enum class  ENetworkConnectionStatus : uint8 { Unknown = 0 , Disabled , Local , Connected }
 
enum class  ENetworkConnectionType : uint8 {
  Unknown , None , AirplaneMode , Cell ,
  WiFi , WiMAX , Bluetooth , Ethernet
}
 
enum class  EProcessDiagnosticFlags : uint32 { None = 0 , MemorySanitizer = 1 << 0 , AnsiMalloc = 1 << 1 , StompMalloc = 1 << 2 }
 
enum class  EPageFaultFlags : uint8 { SoftPageFaults = 0x01 , HardPageFaults = 0x02 , TotalPageFaults = 0x04 , All = 0xFF }
 
enum class  EInputOutputFlags : uint8 {
  BlockingInput = 0x01 , BlockingOutput = 0x02 , BlockingOther = 0x04 , InputBytes = 0x08 ,
  OutputBytes = 0x10 , OtherBytes = 0x20 , All = 0xFF
}
 
enum class  EDisplayOutputFormat {
  SDR_sRGB = 0 , SDR_Rec709 = 1 , SDR_ExplicitGammaMapping = 2 , HDR_ACES_1000nit_ST2084 = 3 ,
  HDR_ACES_2000nit_ST2084 = 4 , HDR_ACES_1000nit_ScRGB = 5 , HDR_ACES_2000nit_ScRGB = 6 , HDR_LinearEXR = 7 ,
  HDR_LinearNoToneCurve = 8 , HDR_LinearWithToneCurve = 9 , MAX
}
 
enum class  EDisplayColorGamut {
  sRGB_D65 = 0 , DCIP3_D65 = 1 , Rec2020_D65 = 2 , ACES_D60 = 3 ,
  ACEScg_D60 = 4 , MAX
}
 
enum class  EContextSwitchFlags : uint8 { VoluntaryContextSwitches = 0x01 , InvoluntaryContextSwitches = 0x02 , TotalContextSwitches = 0x04 , All = 0xFF }
 

Functions

CORE_API bool LexTryParseString (EBuildConfiguration &OutConfiguration, const TCHAR *Configuration)
 
CORE_API const TCHARLexToString (EBuildConfiguration Configuration)
 
 EBuildConfigurations::UE_DEPRECATED (4.24, "EBuildConfigurations::FromString() is deprecated. Use LexFromString() instead.") CORE_API EBuildConfiguration FromString(const FString &Configuration)
 
 EBuildConfigurations::UE_DEPRECATED (4.24, "EBuildConfigurations::ToString() is deprecated. Use LexToString() instead.") CORE_API const TCHAR *ToString(EBuildConfiguration Configuration)
 
FText EBuildConfigurations::ToText (EBuildConfiguration Configuration)
 
CORE_API bool LexTryParseString (EBuildTargetType &OutType, const TCHAR *Text)
 
CORE_API const TCHARLexToString (EBuildTargetType Type)
 
CORE_API EBuildTargetType EBuildTargets::FromString (const FString &Target)
 
CORE_API const TCHAREBuildTargets::ToString (EBuildTargetType Target)
 
CORE_API const TCHARLexToString (EAppReturnType::Type Value)
 
CORE_API const TCHARLexToString (ENetworkConnectionStatus EnumVal)
 
 ENUM_CLASS_FLAGS (EProcessDiagnosticFlags)
 
CORE_API const TCHARLexToString (ENetworkConnectionType Target)
 
 ENUM_CLASS_FLAGS (EPageFaultFlags)
 
 ENUM_CLASS_FLAGS (EInputOutputFlags)
 
 ENUM_CLASS_FLAGS (EContextSwitchFlags)
 

Macro Definition Documentation

◆ ENABLE_GENERIC_NAMED_EVENTS

◆ LOG_NAMED_EVENTS

#define LOG_NAMED_EVENTS   0

◆ UE_DEBUG_BREAK

#define UE_DEBUG_BREAK ( )    ((void)(FPlatformMisc::IsDebuggerPresent() && ([] () { UE_DEBUG_BREAK_IMPL(); } (), 1)))

Typedef Documentation

◆ FOnNetworkConnectionChangedDelegate

Enumeration Type Documentation

◆ EAppMsgCategory

enum class EAppMsgCategory : uint8
strong

Enumerates supported message dialog category types.

Enumerator
Warning 
Error 
Success 
Info 

◆ EBuildConfiguration

enum class EBuildConfiguration : uint8
strong

Available build configurations. Mirorred from UnrealTargetConfiguration.

Enumerator
Unknown 

Unknown build configuration.

Debug 

Debug build.

DebugGame 

DebugGame build.

Development 

Development build.

Shipping 

Shipping build.

Test 

Test build.

◆ EBuildTargetType

enum class EBuildTargetType : uint8
strong

Enumerates build target types.

Enumerator
Unknown 

Unknown build target.

Game 

Game target.

Server 

Server target.

Client 

Client target.

Editor 

Editor target.

Program 

Program target.

◆ EContextSwitchFlags

enum class EContextSwitchFlags : uint8
strong

Flags for Context Switch stats to retrieve

Enumerator
VoluntaryContextSwitches 
InvoluntaryContextSwitches 
TotalContextSwitches 
All 

◆ EConvertibleLaptopMode

Enumerates the modes a convertible laptop can be in.

Enumerator
NotSupported 

Not a convertible laptop.

Laptop 

Laptop arranged as a laptop.

Tablet 

Laptop arranged as a tablet.

◆ ECrashHandlingType

enum class ECrashHandlingType : uint8
strong

Controls behaviour for built in crash handling

Enumerator
Default 
Disabled 

◆ EDeviceScreenOrientation

Device orientations for screens. e.g. Landscape, Portrait, etc.

Enumerator
Unknown 

The orientation is not known

Portrait 

The orientation is portrait with the home button at the bottom

PortraitUpsideDown 

The orientation is portrait with the home button at the top

LandscapeLeft 

The orientation is landscape with the home button at the right side

LandscapeRight 

The orientation is landscape with the home button at the left side

FaceUp 

The orientation is as if place on a desk with the screen upward

FaceDown 

The orientation is as if place on a desk with the screen downward

PortraitSensor 

The orientation is portrait, oriented upright with the sensor

LandscapeSensor 

The orientation is landscape, oriented upright with the sensor

FullSensor 

The orientation is no longer locked and adjusts according to the sensor

◆ EDisplayColorGamut

enum class EDisplayColorGamut
strong

Display gamut, format, and chromacities. You must update values in TonemapCommon.ush when changing this enum + EHDRCaptureGamut

Enumerator
sRGB_D65 
DCIP3_D65 
Rec2020_D65 
ACES_D60 
ACEScg_D60 
MAX 

◆ EDisplayOutputFormat

enum class EDisplayOutputFormat
strong

Defines the type of format the backbuffer expects. You must update values in TonemapCommon.ush when changing this enum

Enumerator
SDR_sRGB 
SDR_Rec709 
SDR_ExplicitGammaMapping 
HDR_ACES_1000nit_ST2084 
HDR_ACES_2000nit_ST2084 
HDR_ACES_1000nit_ScRGB 
HDR_ACES_2000nit_ScRGB 
HDR_LinearEXR 
HDR_LinearNoToneCurve 
HDR_LinearWithToneCurve 
MAX 

◆ EInputOutputFlags

enum class EInputOutputFlags : uint8
strong

Flags for Input/Output stats to retrieve

Enumerator
BlockingInput 
BlockingOutput 
BlockingOther 
InputBytes 
OutputBytes 
OtherBytes 
All 

◆ EMobileHapticsType

enum class EMobileHapticsType : uint8
strong
Enumerator
FeedbackSuccess 
FeedbackWarning 
FeedbackError 
SelectionChanged 
ImpactLight 
ImpactMedium 
ImpactHeavy 

◆ ENetworkConnectionStatus

Possible connection states

Enumerator
Unknown 

Default state

Disabled 

No network connection or network device disabled

Local 

Ad-hoc Wifi network or LAN with no external connection

Connected 

Connected to the network

◆ ENetworkConnectionType

Enumerator
Unknown 

Enumerates the network connection types

None 
AirplaneMode 
Cell 
WiFi 
WiMAX 
Bluetooth 
Ethernet 

◆ EPageFaultFlags

enum class EPageFaultFlags : uint8
strong

Flags for page fault stats to retrieve

Enumerator
SoftPageFaults 
HardPageFaults 
TotalPageFaults 
All 

◆ EProcessDiagnosticFlags

Enumerator
None 
MemorySanitizer 
AnsiMalloc 
StompMalloc 

Function Documentation

◆ ENUM_CLASS_FLAGS() [1/4]

ENUM_CLASS_FLAGS ( EContextSwitchFlags  )

◆ ENUM_CLASS_FLAGS() [2/4]

ENUM_CLASS_FLAGS ( EInputOutputFlags  )

◆ ENUM_CLASS_FLAGS() [3/4]

ENUM_CLASS_FLAGS ( EPageFaultFlags  )

◆ ENUM_CLASS_FLAGS() [4/4]

ENUM_CLASS_FLAGS ( EProcessDiagnosticFlags  )

◆ LexToString() [1/5]

CORE_API const TCHAR * LexToString ( EAppReturnType::Type  Value)

Returns the string representation of the specified EAppReturnType::Type value.

Parameters
ValueThe value to get the string for.
Returns
The string representation.

◆ LexToString() [2/5]

CORE_API const TCHAR * LexToString ( EBuildConfiguration  Configuration)

Returns the string representation of the specified EBuildConfiguration value.

Parameters
ConfigurationThe value to get the string for.
Returns
The string representation.

◆ LexToString() [3/5]

CORE_API const TCHAR * LexToString ( EBuildTargetType  Type)

Returns the string representation of the specified EBuildTargetType value.

Parameters
TargetThe string to get the EBuildTargetType for.
Returns
An EBuildTarget::Type value.

◆ LexToString() [4/5]

CORE_API const TCHAR * LexToString ( ENetworkConnectionStatus  EnumVal)

◆ LexToString() [5/5]

CORE_API const TCHAR * LexToString ( ENetworkConnectionType  Target)

Returns the string representation of the specified ENetworkConnection value.

Parameters
TargetThe value to get the string for.
Returns
The string representation.

◆ LexTryParseString() [1/2]

CORE_API bool LexTryParseString ( EBuildConfiguration OutConfiguration,
const TCHAR Configuration 
)

Returns the string representation of the specified EBuildConfiguration value.

Parameters
ConfigurationThe string to get the EBuildConfiguration for.
Returns
An EBuildConfiguration value.

◆ LexTryParseString() [2/2]

CORE_API bool LexTryParseString ( EBuildTargetType OutType,
const TCHAR Text 
)

Returns the string representation of the specified EBuildTarget value.

Parameters
OutTypeThe value to get the string for.
TextThe text to parse.
Returns
The string representation.