mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-30 18:30:51 +00:00
[TEST] Removing AMD/Nvidia from HDR on ASTC decoded formats
This commit is contained in:
@@ -352,6 +352,9 @@ FN_MAX_LIMIT_LIST
|
||||
|
||||
/// Returns true if ASTC is natively supported, including HDR-profile (non-LDR-only)
|
||||
bool IsOptimalAstcSupported() const {
|
||||
if (IsNvidia() || IsAmd()) {
|
||||
return features.features.textureCompressionASTC_LDR;
|
||||
}
|
||||
return features.features.textureCompressionASTC_LDR &&
|
||||
features.texture_compression_astc_hdr.textureCompressionASTC_HDR;
|
||||
}
|
||||
@@ -949,6 +952,12 @@ FN_MAX_LIMIT_LIST
|
||||
return properties.driver.driverID == VK_DRIVER_ID_NVIDIA_PROPRIETARY;
|
||||
}
|
||||
|
||||
bool IsAmd() const noexcept {
|
||||
return properties.driver.driverID == VK_DRIVER_ID_AMD_PROPRIETARY ||
|
||||
properties.driver.driverID == VK_DRIVER_ID_AMD_OPEN_SOURCE ||
|
||||
properties.driver.driverID == VK_DRIVER_ID_MESA_RADV;
|
||||
}
|
||||
|
||||
bool IsMoltenVK() const noexcept {
|
||||
return properties.driver.driverID == VK_DRIVER_ID_MOLTENVK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user