UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RHIFeatureLevel.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "RHIDefinitions.h"
7
8#ifndef USE_STATIC_FEATURE_LEVEL_ENUMS
9#define USE_STATIC_FEATURE_LEVEL_ENUMS 0
10#endif
11
17namespace ERHIFeatureLevel
18{
19 enum Type : int
20 {
23
26
32
43
53
54 Num
55 };
56};
57
59{
62
63 inline operator ERHIFeatureLevel::Type() const
64 {
65 return FeatureLevel;
66 }
67
68 inline bool operator == (const ERHIFeatureLevel::Type Other) const
69 {
70 return Other == FeatureLevel;
71 }
72
73 inline bool operator != (const ERHIFeatureLevel::Type Other) const
74 {
75 return Other != FeatureLevel;
76 }
77
78 inline bool operator <= (const ERHIFeatureLevel::Type Other) const
79 {
80 return FeatureLevel <= Other;
81 }
82
83 inline bool operator < (const ERHIFeatureLevel::Type Other) const
84 {
85 return FeatureLevel < Other;
86 }
87
88 inline bool operator >= (const ERHIFeatureLevel::Type Other) const
89 {
90 return FeatureLevel >= Other;
91 }
92
93 inline bool operator > (const ERHIFeatureLevel::Type Other) const
94 {
95 return FeatureLevel > Other;
96 }
97
98private:
99 ERHIFeatureLevel::Type FeatureLevel;
100};
101
102#if USE_STATIC_FEATURE_LEVEL_ENUMS
103#include COMPILED_PLATFORM_HEADER(StaticFeatureLevel.inl)
104#else
106#endif
107
108// The maximum feature level available on this system
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
RHI_API ERHIFeatureLevel::Type GMaxRHIFeatureLevel
Definition RHI.cpp:1338
Definition EnumAsByte.h:22
Definition SceneComponent.h:24
Type
Definition RHIFeatureLevel.h:20
@ SM4_REMOVED
Definition RHIFeatureLevel.h:31
@ ES2_REMOVED
Definition RHIFeatureLevel.h:22
@ SM5
Definition RHIFeatureLevel.h:42
@ SM6
Definition RHIFeatureLevel.h:52
@ ES3_1
Definition RHIFeatureLevel.h:25
@ Num
Definition RHIFeatureLevel.h:54
Definition RHIFeatureLevel.h:59
bool operator<(const ERHIFeatureLevel::Type Other) const
Definition RHIFeatureLevel.h:83
bool operator>=(const ERHIFeatureLevel::Type Other) const
Definition RHIFeatureLevel.h:88
bool operator==(const ERHIFeatureLevel::Type Other) const
Definition RHIFeatureLevel.h:68
FGenericStaticFeatureLevel(const TEnumAsByte< ERHIFeatureLevel::Type > InFeatureLevel)
Definition RHIFeatureLevel.h:61
FGenericStaticFeatureLevel(const ERHIFeatureLevel::Type InFeatureLevel)
Definition RHIFeatureLevel.h:60
bool operator>(const ERHIFeatureLevel::Type Other) const
Definition RHIFeatureLevel.h:93
bool operator<=(const ERHIFeatureLevel::Type Other) const
Definition RHIFeatureLevel.h:78
bool operator!=(const ERHIFeatureLevel::Type Other) const
Definition RHIFeatureLevel.h:73
Definition AndroidStaticFeatureLevel.inl:12