1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

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

This commit is contained in:
BlueCube3310
2025-03-07 15:26:03 +01:00
parent f2cc3f1275
commit 4d46ef8e8e
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;
}