mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-15 05:15:14 +00:00
Added Maintenance EXT's for better driver compatibility
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user