mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-31 14:35:19 +00:00
Added warning when GPU doesn't support API version.
This commit is contained in:
parent
4e4142adf8
commit
6f6f2f4951
@ -165,7 +165,11 @@ void MainWindow::GetPhysicalDevices() {
|
|||||||
Vulkan::Instance instance(false, false);
|
Vulkan::Instance instance(false, false);
|
||||||
auto physical_devices = instance.GetPhysicalDevices();
|
auto physical_devices = instance.GetPhysicalDevices();
|
||||||
for (const vk::PhysicalDevice physical_device : physical_devices) {
|
for (const vk::PhysicalDevice physical_device : physical_devices) {
|
||||||
const QString name = QString::fromUtf8(physical_device.getProperties().deviceName, -1);
|
auto prop = physical_device.getProperties();
|
||||||
|
QString name = QString::fromUtf8(prop.deviceName, -1);
|
||||||
|
if (prop.apiVersion < Vulkan::TargetVulkanApiVersion) {
|
||||||
|
name += " * Unsupported API Version";
|
||||||
|
}
|
||||||
m_physical_devices.push_back(name);
|
m_physical_devices.push_back(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user