mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03: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:
@@ -2364,6 +2364,7 @@ void VulkanContext::set_object_name(VkObjectType p_object_type, uint64_t p_objec
|
||||
String VulkanContext::get_device_vendor_name() const {
|
||||
return device_vendor;
|
||||
}
|
||||
|
||||
String VulkanContext::get_device_name() const {
|
||||
return device_name;
|
||||
}
|
||||
@@ -2372,6 +2373,10 @@ RenderingDevice::DeviceType VulkanContext::get_device_type() const {
|
||||
return RenderingDevice::DeviceType(device_type);
|
||||
}
|
||||
|
||||
String VulkanContext::get_device_api_version() const {
|
||||
return vformat("%d.%d.%d", vulkan_major, vulkan_minor, vulkan_patch);
|
||||
}
|
||||
|
||||
String VulkanContext::get_device_pipeline_cache_uuid() const {
|
||||
return pipeline_cache_id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user