You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
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:
@@ -490,6 +490,13 @@ void RenderingDevice::_bind_methods() {
|
||||
BIND_CONSTANT(BARRIER_MASK_ALL);
|
||||
BIND_CONSTANT(BARRIER_MASK_NO_BARRIER);
|
||||
|
||||
BIND_ENUM_CONSTANT(DEVICE_TYPE_OTHER);
|
||||
BIND_ENUM_CONSTANT(DEVICE_TYPE_INTEGRATED_GPU);
|
||||
BIND_ENUM_CONSTANT(DEVICE_TYPE_DISCRETE_GPU);
|
||||
BIND_ENUM_CONSTANT(DEVICE_TYPE_VIRTUAL_GPU);
|
||||
BIND_ENUM_CONSTANT(DEVICE_TYPE_CPU);
|
||||
BIND_ENUM_CONSTANT(DEVICE_TYPE_MAX);
|
||||
|
||||
BIND_ENUM_CONSTANT(DRIVER_RESOURCE_VULKAN_DEVICE);
|
||||
BIND_ENUM_CONSTANT(DRIVER_RESOURCE_VULKAN_PHYSICAL_DEVICE);
|
||||
BIND_ENUM_CONSTANT(DRIVER_RESOURCE_VULKAN_INSTANCE);
|
||||
|
||||
Reference in New Issue
Block a user