Add RenderingServer.get_video_adapter_type() method
This can be used to distinguish between integrated, dedicated, virtual and software-emulated GPUs. This in turn can be used to automatically adjust graphics settings, or warn users about features that may run slowly on their hardware.
This commit is contained in:
parent
85380c5207
commit
b3174e7af9
18 changed files with 80 additions and 0 deletions
|
|
@ -620,6 +620,7 @@ public:
|
|||
virtual uint64_t get_rendering_info(RS::RenderingInfo p_info) = 0;
|
||||
virtual String get_video_adapter_name() const = 0;
|
||||
virtual String get_video_adapter_vendor() const = 0;
|
||||
virtual RenderingDevice::DeviceType get_video_adapter_type() const = 0;
|
||||
|
||||
static RendererStorage *base_singleton;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue