Get rendering driver name in GDScript

Godot Version

4.2.2

Question

I’m making a project which should work on both Vulkan and OpenGL.

How can I detect in GDScript which one is currently being used?

There seems to be a RenderingDriver enum, but I can’t find a way to get it.

1 Like

Interesting. Searching the docs only returns a single result - the name of the enum. No results for methods.
https://docs.godotengine.org/en/latest/search.html?q=RenderingDriver

Only thing I could find is in project settings under Rendering:

ProjectSettings.get_setting("rendering/rendering_device/driver.windows")

ProjectSettings.get_setting("rendering/gl_compatibility/driver.windows")
2 Likes

@wyattbiker has the best answer.

I will also add you can find the other settings strings in the project settings panel

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.