1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

BasisUniversal: Ensure ASTC's HDR variant is supported when transcoding

(cherry picked from commit 4d46ef8e8e)
This commit is contained in:
BlueCube3310
2025-03-07 15:26:03 +01:00
committed by Rémi Verschelde
parent 757173e0e2
commit 1a379d1805
3 changed files with 9 additions and 1 deletions

View File

@@ -286,6 +286,10 @@ bool Utilities::has_os_feature(const String &p_feature) const {
return true;
}
if (p_feature == "astc_hdr" && RD::get_singleton()->texture_is_format_supported_for_usage(RD::DATA_FORMAT_ASTC_4x4_SFLOAT_BLOCK, RD::TEXTURE_USAGE_SAMPLING_BIT)) {
return true;
}
return false;
}