зеркало из https://github.com/AvaloniaUI/angle.git
Add driverApiVersion in GPUDeviceInfo
Bug: chromium:1340081 Change-Id: I9a1b190d3299b4f5e4603ac3e45869f385df0c48 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3913426 Auto-Submit: Peng Huang <penghuang@chromium.org> Commit-Queue: Peng Huang <penghuang@chromium.org> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
This commit is contained in:
Родитель
d2a58f00af
Коммит
9f99d59434
|
@ -47,9 +47,10 @@ struct GPUDeviceInfo
|
|||
std::string driverVersion;
|
||||
std::string driverDate;
|
||||
|
||||
// Only available via GetSystemInfoVulkan currently.
|
||||
// Fields only available via GetSystemInfoVulkan:
|
||||
VersionInfo detailedDriverVersion;
|
||||
DriverID driverId = 0;
|
||||
DriverID driverId = 0;
|
||||
uint32_t driverApiVersion = 0;
|
||||
};
|
||||
|
||||
struct SystemInfo
|
||||
|
|
|
@ -273,8 +273,9 @@ bool GetSystemInfoVulkanWithICD(SystemInfo *info, vk::ICD preferredICD)
|
|||
default:
|
||||
return false;
|
||||
}
|
||||
gpu.driverId = static_cast<DriverID>(driverProperties.driverID);
|
||||
gpu.driverDate = "";
|
||||
gpu.driverId = static_cast<DriverID>(driverProperties.driverID);
|
||||
gpu.driverApiVersion = properties.apiVersion;
|
||||
gpu.driverDate = "";
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче