RHI
Switch the graphics API between DirectX 11, DirectX 12 and Vulkan.
The RHI (Render Hardware Interface) is the graphics API used by the engine. The choice is saved to [D3DRHIPreference] PreferredRHI in GameUserSettings.ini.
The game must be restarted for a new RHI to take effect.
Since v1.4.0 the RHI getters return Unknown / Default when nothing is saved (project default) instead of Vulkan. Pass Unknown / Default to Set Preferred RHI to go back to the project's default.
Set Preferred RHI
Graphics API used at next start; Unknown returns to the project's default. Keeps the preferred feature level.
Set Preferred RHITarget is Engine User Settings Subsystem
Graphics RHIDirectX 12
EGraphicsRHIEnum| Value | Description |
|---|---|
| DirectX 12 | — |
| DirectX 11 | — |
| Vulkan | — |
| Unknown / Default | Not set (engine default) or not one of the above (e.g. Null RHI). |
Get Current RHI
Graphics API running now.
Get Current RHITarget is Engine User Settings Subsystem
Return Value
Get Preferred RHI
Saved preference; Unknown when not set (project default).
Get Preferred RHITarget is Engine User Settings Subsystem
Return Value