mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] preserve order of devices with the same type
This commit is contained in:
parent
94049c0c90
commit
e44a1e614b
@ -167,7 +167,7 @@ namespace dxvk {
|
|||||||
result.push_back(new DxvkAdapter(m_vki, adapters[i]));
|
result.push_back(new DxvkAdapter(m_vki, adapters[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::sort(result.begin(), result.end(),
|
std::stable_sort(result.begin(), result.end(),
|
||||||
[] (const Rc<DxvkAdapter>& a, const Rc<DxvkAdapter>& b) -> bool {
|
[] (const Rc<DxvkAdapter>& a, const Rc<DxvkAdapter>& b) -> bool {
|
||||||
static const std::array<VkPhysicalDeviceType, 3> deviceTypes = {{
|
static const std::array<VkPhysicalDeviceType, 3> deviceTypes = {{
|
||||||
VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
|
VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user