summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-06 07:35:12 +0100
committerGitHub <noreply@github.com>2020-01-06 07:35:12 +0100
commitcab97f4b504a67955108b5346e033502cae636fc (patch)
treec3f3cbc73131b93b910f206dc009ffab2136efc8 /doc/classes
parentd968d032e91412ae980d6415f625c3b1e65fd9fa (diff)
parent0cad2c0cd103a7d616d55e4d5c973a20f398115f (diff)
Merge pull request #32126 from Calinou/expose-video-adapter-name-vendor
Add VisualServer methods to get the video adapter name and vendor
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/VisualServer.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/classes/VisualServer.xml b/doc/classes/VisualServer.xml
index b76d7d77e6..181a980881 100644
--- a/doc/classes/VisualServer.xml
+++ b/doc/classes/VisualServer.xml
@@ -1397,6 +1397,22 @@
Returns the id of the test texture. Creates one if none exists.
</description>
</method>
+ <method name="get_video_adapter_name" qualifiers="const">
+ <return type="String">
+ </return>
+ <description>
+ Returns the name of the video adapter (e.g. "GeForce GTX 1080/PCIe/SSE2").
+ [b]Note:[/b] When running a headless or server binary, this function returns an empty string.
+ </description>
+ </method>
+ <method name="get_video_adapter_vendor" qualifiers="const">
+ <return type="String">
+ </return>
+ <description>
+ Returns the vendor of the video adapter (e.g. "NVIDIA Corporation").
+ [b]Note:[/b] When running a headless or server binary, this function returns an empty string.
+ </description>
+ </method>
<method name="get_white_texture">
<return type="RID">
</return>