Merge pull request #32126 from Calinou/expose-video-adapter-name-vendor

Add VisualServer methods to get the video adapter name and vendor
This commit is contained in:
Rémi Verschelde
2020-01-06 07:35:12 +01:00
committed by GitHub
14 changed files with 70 additions and 4 deletions

View File

@@ -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>