Set the graphics platform

The graphics platform controls the graphics hardware in the device you run your project on. Different devices support different graphics platforms; for example, iOS supports the OpenGL ES graphics platform. You can select which graphics platform your game uses, and add overrides for different platforms (eg Windows, Android, etc).

Warning

Moving from Direct3D to an earlier Direct3D version can create problems. For example, if your game contains HDR textures, it will crash, as Direct3D 9 doesn't support them.

You set the graphics platform in the asset.

Note

Make sure you have the latest drivers for the graphics platforms you want to use.

  • In the Asset View, select the Game Settings asset.

  • In the Property Grid, under Rendering Settings > Target graphics platform, select the graphics platform you want to use.

If you select Default, Xenko uses the graphics platform appropriate for your platform (eg Windows, Android) when you build.

You can override the graphics platform Xenko uses for specific platforms. For example, you can have Linux use Vulkan while other platforms use the default.

  • With the GameSettings asset selected, in the Property Grid, under Overrides, click Green plus button (Add).

Game Studio adds an override.

  • In the new override, next to Platforms, select the platforms you want this override to apply to.

Select graphics platform override

  • Under Rendering Settings, in the Preferred Graphics Platform drop-down menu, select the graphics platform you want to use.

Xenko overrides the graphics platform for the platforms you selected.

  • Add a break point to your game code (eg in a script).

  • Run the project.

  • Check the value of the variable.

Select graphics platform