diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-30 20:41:01 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-30 20:41:01 +0100 |
commit | e9de988020f3d46c3e7b4fd5a8a80724996035e0 (patch) | |
tree | f2506cfffc7af7a7ecb449b2ba59b5b7963dd40c /servers/rendering | |
parent | 1a37aefbf9fbac494294f00e675f665a5f44c347 (diff) | |
parent | 28f51ba547722d1283882ec5dee9bcab070bc33e (diff) |
Merge pull request #72031 from reduz/change-high-quality-texture-import
Refactor high quality texture import
Diffstat (limited to 'servers/rendering')
-rw-r--r-- | servers/rendering/renderer_rd/storage_rd/utilities.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/storage_rd/utilities.cpp b/servers/rendering/renderer_rd/storage_rd/utilities.cpp index d2f5e6f224..cabac4e9ee 100644 --- a/servers/rendering/renderer_rd/storage_rd/utilities.cpp +++ b/servers/rendering/renderer_rd/storage_rd/utilities.cpp @@ -286,6 +286,10 @@ bool Utilities::has_os_feature(const String &p_feature) const { return true; } + if (p_feature == "astc" && RD::get_singleton()->texture_is_format_supported_for_usage(RD::DATA_FORMAT_ASTC_4x4_UNORM_BLOCK, RD::TEXTURE_USAGE_SAMPLING_BIT)) { + return true; + } + return false; } |