You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add get_video_adapter_api_version() to RenderingServer
This method can be used to get the graphics API version currently in use (such as Vulkan). It can be used by projects for troubleshooting or statistical purposes.
This commit is contained in:
@@ -265,6 +265,10 @@ RenderingDevice::DeviceType RenderingServerDefault::get_video_adapter_type() con
|
||||
return RSG::storage->get_video_adapter_type();
|
||||
}
|
||||
|
||||
String RenderingServerDefault::get_video_adapter_api_version() const {
|
||||
return RSG::storage->get_video_adapter_api_version();
|
||||
}
|
||||
|
||||
void RenderingServerDefault::set_frame_profiling_enabled(bool p_enable) {
|
||||
RSG::storage->capturing_timestamps = p_enable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user