Shader Model
Switch between SM6, SM5 and Performance Mode (ES 3.1), and check what the player's GPU supports.
The feature level controls which shader model the renderer uses. The choice is saved to [D3DRHIPreference] PreferredFeatureLevel in GameUserSettings.ini and applied at the next start.
false. Otherwise the engine would silently fall back from DirectX 12 to DirectX 11 on the next start. Use Is Feature Level Supported to hide options the GPU can't run.Set Preferred Feature Level
Saves the feature level used at next start. SM6 is refused (SM5 is saved instead, returns false) on GPUs that cannot run it: the engine would otherwise silently fall back from D3D12 to D3D11.
EShaderFormatEnum| Value | Description |
|---|---|
| SM6 | — |
| SM5 | — |
| Performance Mode | — |
| Invalid | — |
Get Preferred Feature Level
Returns the feature level saved for the next start, or Invalid when nothing is saved.
Get Current Feature Level
Feature level of the running world (or of the RHI when there is no world).
Get Max Supported Feature Level
Highest feature level the running RHI was started with.
Is Feature Level Supported
Whether this machine can run GraphicsRHI at ShaderFormat (SM6 needs D3D12/Vulkan and a GPU with Shader Model 6).
EGraphicsRHIEnum| Value | Description |
|---|---|
| DirectX 12 | — |
| DirectX 11 | — |
| Vulkan | — |
| Unknown / Default | Not set (engine default) or not one of the above (e.g. Null RHI). |