UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WindowsPlatformProperties.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
7
8
12template<bool HAS_EDITOR_DATA, bool IS_DEDICATED_SERVER, bool IS_CLIENT_ONLY>
15{
16 static constexpr UE_FORCEINLINE_HINT bool HasEditorOnlyData()
17 {
18 return HAS_EDITOR_DATA;
19 }
20
21 static constexpr UE_FORCEINLINE_HINT const char* IniPlatformName()
22 {
23 return "Windows";
24 }
25
27 {
28 return TEXT("/Script/WindowsTargetPlatform.WindowsTargetSettings");
29 }
30
31 static constexpr UE_FORCEINLINE_HINT bool IsGameOnly()
32 {
33 return UE_GAME;
34 }
35
36 static constexpr UE_FORCEINLINE_HINT bool IsServerOnly()
37 {
39 }
40
41 static constexpr UE_FORCEINLINE_HINT bool IsClientOnly()
42 {
43 return IS_CLIENT_ONLY;
44 }
45
46 static constexpr inline const char* PlatformName()
47 {
49 {
50 return "WindowsServer";
51 }
52
54 {
55 return "WindowsEditor";
56 }
57
59 {
60 return "WindowsClient";
61 }
62
63 return "Windows";
64 }
65
67 {
68 return !HAS_EDITOR_DATA;
69 }
70
72 {
74 }
75
77 {
78 return true;
79 }
80
82 {
83 return !IsServerOnly();
84 }
85
87 {
88 return !IsServerOnly() && !HasEditorOnlyData();
89 }
90
92 {
93 return true;
94 }
95
97 {
98 return false; // Requires expand from G8 to RGBA
99 }
100
102 {
103 return true;
104 }
105
107 {
108 return true;
109 }
110
112 {
113 return false;
114 }
115
116 static constexpr UE_FORCEINLINE_HINT bool SupportsQuit()
117 {
118 return true;
119 }
120
121 static constexpr inline float GetVariantPriority()
122 {
124 {
125 return 0.0f;
126 }
127
128 if (HAS_EDITOR_DATA)
129 {
130 return 0.0f;
131 }
132
133 if (IS_CLIENT_ONLY)
134 {
135 return 0.0f;
136 }
137
138 return 1.0f;
139 }
140
142 {
143 return 4096;
144 }
145
147 {
148 return 65536;
149 }
150};
151
152#ifdef PROPERTY_HEADER_SHOULD_DEFINE_TYPE
154#endif
#define UE_GAME
Definition Build.h:23
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int64 int64
A 64-bit signed integer.
Definition Platform.h:1127
#define UE_FORCEINLINE_HINT
Definition Platform.h:723
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition GenericPlatformProperties.h:17
Definition WindowsPlatformProperties.h:15
static constexpr UE_FORCEINLINE_HINT bool HasFixedResolution()
Definition WindowsPlatformProperties.h:111
static constexpr UE_FORCEINLINE_HINT const char * IniPlatformName()
Definition WindowsPlatformProperties.h:21
static constexpr UE_FORCEINLINE_HINT bool SupportsQuit()
Definition WindowsPlatformProperties.h:116
static constexpr UE_FORCEINLINE_HINT bool RequiresCookedData()
Definition WindowsPlatformProperties.h:66
static constexpr const char * PlatformName()
Definition WindowsPlatformProperties.h:46
static constexpr UE_FORCEINLINE_HINT bool HasSecurePackageFormat()
Definition WindowsPlatformProperties.h:71
static constexpr UE_FORCEINLINE_HINT bool IsGameOnly()
Definition WindowsPlatformProperties.h:31
static constexpr UE_FORCEINLINE_HINT bool SupportsMultipleGameInstances()
Definition WindowsPlatformProperties.h:101
static constexpr UE_FORCEINLINE_HINT int GetMaxSupportedVirtualMemoryAlignment()
Definition WindowsPlatformProperties.h:146
static constexpr UE_FORCEINLINE_HINT bool SupportsGrayscaleSRGB()
Definition WindowsPlatformProperties.h:96
static constexpr UE_FORCEINLINE_HINT bool HasEditorOnlyData()
Definition WindowsPlatformProperties.h:16
static constexpr UE_FORCEINLINE_HINT const TCHAR * GetRuntimeSettingsClassName()
Definition WindowsPlatformProperties.h:26
static constexpr UE_FORCEINLINE_HINT int64 GetMemoryMappingAlignment()
Definition WindowsPlatformProperties.h:141
static constexpr UE_FORCEINLINE_HINT bool SupportsMemoryMappedFiles()
Definition WindowsPlatformProperties.h:76
static constexpr UE_FORCEINLINE_HINT bool IsServerOnly()
Definition WindowsPlatformProperties.h:36
static constexpr float GetVariantPriority()
Definition WindowsPlatformProperties.h:121
static constexpr UE_FORCEINLINE_HINT bool SupportsRayTracing()
Definition WindowsPlatformProperties.h:91
static constexpr UE_FORCEINLINE_HINT bool SupportsMeshLODStreaming()
Definition WindowsPlatformProperties.h:86
static constexpr UE_FORCEINLINE_HINT bool IsClientOnly()
Definition WindowsPlatformProperties.h:41
static constexpr UE_FORCEINLINE_HINT bool SupportsWindowedMode()
Definition WindowsPlatformProperties.h:106
static constexpr UE_FORCEINLINE_HINT bool SupportsAudioStreaming()
Definition WindowsPlatformProperties.h:81