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:
Hugo Locurcio 2021-07-31 15:39:46 +02:00
parent 8762286110
commit 31194f5b1c
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
16 changed files with 39 additions and 0 deletions

View file

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