mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-16 10:58:56 +02:00
Added Maintenance EXT's for better driver compatibility
This commit is contained in:
parent
5a03ef7fba
commit
bb1d1e484d
2 changed files with 30 additions and 5 deletions
|
|
@ -1085,23 +1085,23 @@ bool Device::GetSuitability(bool requires_swapchain) {
|
|||
}
|
||||
if (supported_extensions.contains("VK_KHR_maintenance5")) {
|
||||
loaded_extensions.insert("VK_KHR_maintenance5");
|
||||
extensions.maintenance4 = true;
|
||||
extensions.maintenance5 = true;
|
||||
}
|
||||
if (supported_extensions.contains("VK_KHR_maintenance6")) {
|
||||
loaded_extensions.insert("VK_KHR_maintenance6");
|
||||
extensions.maintenance4 = true;
|
||||
extensions.maintenance6 = true;
|
||||
}
|
||||
if (supported_extensions.contains("VK_KHR_maintenance7")) {
|
||||
loaded_extensions.insert("VK_KHR_maintenance7");
|
||||
extensions.maintenance4 = true;
|
||||
extensions.maintenance7 = true;
|
||||
}
|
||||
if (supported_extensions.contains("VK_KHR_maintenance8")) {
|
||||
loaded_extensions.insert("VK_KHR_maintenance8");
|
||||
extensions.maintenance4 = true;
|
||||
extensions.maintenance8 = true;
|
||||
}
|
||||
if (supported_extensions.contains("VK_KHR_maintenance9")) {
|
||||
loaded_extensions.insert("VK_KHR_maintenance9");
|
||||
extensions.maintenance4 = true;
|
||||
extensions.maintenance9 = true;
|
||||
}
|
||||
|
||||
#undef FEATURE_EXTENSION
|
||||
|
|
|
|||
|
|
@ -465,6 +465,31 @@ public:
|
|||
return extensions.maintenance4;
|
||||
}
|
||||
|
||||
/// Returns true if VK_KHR_maintenance5 is enabled.
|
||||
bool IsKhrMaintenance5Supported() const {
|
||||
return extensions.maintenance5;
|
||||
}
|
||||
|
||||
/// Returns true if VK_KHR_maintenance6 is enabled.
|
||||
bool IsKhrMaintenance6Supported() const {
|
||||
return extensions.maintenance6;
|
||||
}
|
||||
|
||||
/// Returns true if VK_KHR_maintenance7 is enabled.
|
||||
bool IsKhrMaintenance7Supported() const {
|
||||
return extensions.maintenance7;
|
||||
}
|
||||
|
||||
/// Returns true if VK_KHR_maintenance8 is enabled.
|
||||
bool IsKhrMaintenance8Supported() const {
|
||||
return extensions.maintenance8;
|
||||
}
|
||||
|
||||
/// Returns true if VK_KHR_maintenance9 is enabled.
|
||||
bool IsKhrMaintenance9Supported() const {
|
||||
return extensions.maintenance9;
|
||||
}
|
||||
|
||||
/// Returns true if VK_KHR_sampler_mirror_clamp_to_edge is enabled.
|
||||
bool IsKhrSamplerMirrorClampToEdgeSupported() const {
|
||||
return extensions.sampler_mirror_clamp_to_edge;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue