mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-07 06:29:21 +00:00
Merge pull request #55790 from Calinou/renderingserver-add-device-type-getter
Add `RenderingServer.get_video_adapter_type()` method
This commit is contained in:
@@ -760,6 +760,7 @@ Error VulkanContext::_create_physical_device() {
|
||||
{ 0, nullptr },
|
||||
};
|
||||
device_name = gpu_props.deviceName;
|
||||
device_type = gpu_props.deviceType;
|
||||
pipeline_cache_id = String::hex_encode_buffer(gpu_props.pipelineCacheUUID, VK_UUID_SIZE);
|
||||
pipeline_cache_id += "-driver-" + itos(gpu_props.driverVersion);
|
||||
{
|
||||
@@ -2208,6 +2209,11 @@ String VulkanContext::get_device_vendor_name() const {
|
||||
String VulkanContext::get_device_name() const {
|
||||
return device_name;
|
||||
}
|
||||
|
||||
RenderingDevice::DeviceType VulkanContext::get_device_type() const {
|
||||
return RenderingDevice::DeviceType(device_type);
|
||||
}
|
||||
|
||||
String VulkanContext::get_device_pipeline_cache_uuid() const {
|
||||
return pipeline_cache_id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user