diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-11 13:59:53 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-11 13:59:53 +0200 |
commit | 5aadc618b6ff152dbc0ca4ea901c34a97e164091 (patch) | |
tree | 91a2013ca64c62d815e69a3a03de5753c7241e0d /doc | |
parent | d2a8f4d33dfafc850f90b4659ce0d971c2689ad2 (diff) | |
parent | de768afbdcf9dd6a588ac975bc56e3fd755091c2 (diff) |
Merge pull request #66102 from MJacred/feature/getvideoadapterdriverinfo
Fetch video adapter driver name and version from OS
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/OS.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index 15b3d4958c..82bfb63b59 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -445,6 +445,15 @@ [b]Note:[/b] This method is not supported on the web platform. It returns an empty string. </description> </method> + <method name="get_video_adapter_driver_info" qualifiers="const"> + <return type="PackedStringArray" /> + <description> + Returns the video adapter driver name and version for the user's currently active graphics card. + The first element holds the driver name, such as [code]nvidia[/code], [code]amdgpu[/code], etc. + The second element holds the driver version. For e.g. the [code]nvidia[/code] driver on a Linux/BSD platform, the version is in the format [code]510.85.02[/code]. For Windows, the driver's format is [code]31.0.15.1659[/code]. + [b]Note:[/b] This method is only supported on the platforms Linux/BSD and Windows. It returns an empty array on other platforms. + </description> + </method> <method name="has_environment" qualifiers="const"> <return type="bool" /> <param index="0" name="variable" type="String" /> |