diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-03 14:44:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 14:44:55 +0200 |
commit | 6530d46d67a1f31461b71632f0795ce355cd0ca5 (patch) | |
tree | f5ec99aa826eb47c43fdd3acb936c5c093566760 /doc | |
parent | 931838b3308442ba5084c0a9f487b05c9de74fde (diff) | |
parent | 31194f5b1c84638267958c8efa9212f362e57ae0 (diff) |
Merge pull request #51102 from Calinou/renderingserver-add-api-version-getter
Add `get_video_adapter_api_version()` to RenderingServer
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/RenderingServer.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml index d21e2b5bca..b8f26f75c9 100644 --- a/doc/classes/RenderingServer.xml +++ b/doc/classes/RenderingServer.xml @@ -1252,6 +1252,13 @@ Returns the id of the test texture. Creates one if none exists. </description> </method> + <method name="get_video_adapter_api_version" qualifiers="const"> + <return type="String" /> + <description> + Returns the version of the graphics video adapter [i]currently in use[/i] (e.g. "1.2.189" for Vulkan, "3.3.0 NVIDIA 510.60.02" for OpenGL). This version may be different from the actual latest version supported by the hardware, as Godot may not always request the latest version. + [b]Note:[/b] When running a headless or server binary, this function returns an empty string. + </description> + </method> <method name="get_video_adapter_name" qualifiers="const"> <return type="String" /> <description> |