Language:
Discover
By Skill Level
By Category

ERHIFeatureLevel::Type

Choose your OS:

Syntax

namespace ERHIFeatureLevel
{
    enum Type
    {
        ES2,
        ES3_1,
        SM4,
        SM5,
        Num,
    }
}

Values

Name

Description

ES2

Feature level defined by the core capabilities of OpenGL ES2.

ES3_1

Feature level defined by the core capabilities of OpenGL ES3.1 & Metal/Vulkan.

SM4

Feature level defined by the capabilities of DX10 Shader Model 4.

SM5

Feature level defined by the capabilities of DX11 Shader Model 5.

Num

Remarks

The RHI's feature level indicates what level of support can be relied upon. Note: these are named after graphics API's like ES2 but a feature level can be used with a different API (eg ERHIFeatureLevel::ES2 on D3D11) As long as the graphics API supports all the features of the feature level (eg no ERHIFeatureLevel::SM5 on OpenGL ES2)

References

Module

RHI

Header

Runtime/RHI/Public/RHIDefinitions.h