From 06b2437b722b116bddaca4c44ee4f613462cd201 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 20 Apr 2023 23:47:57 +0200 Subject: [PATCH] Ported: [3.x] Expose more compression formats in Image - AThousandShips https://github.com/godotengine/godot/commit/2ca86ef4491ff1427a4020163824630c51f18671 --- core/io/image.cpp | 2 ++ doc/classes/Image.xml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/core/io/image.cpp b/core/io/image.cpp index 2c011b366..98d45de8c 100644 --- a/core/io/image.cpp +++ b/core/io/image.cpp @@ -3041,6 +3041,8 @@ void Image::_bind_methods() { BIND_ENUM_CONSTANT(COMPRESS_PVRTC4); BIND_ENUM_CONSTANT(COMPRESS_ETC); BIND_ENUM_CONSTANT(COMPRESS_ETC2); + BIND_ENUM_CONSTANT(COMPRESS_BPTC); + BIND_ENUM_CONSTANT(COMPRESS_MAX); BIND_ENUM_CONSTANT(COMPRESS_SOURCE_GENERIC); BIND_ENUM_CONSTANT(COMPRESS_SOURCE_SRGB); diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index eb52cf680..67fd48109 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -617,6 +617,12 @@ Use ETC2 compression. + + Use BPTC compression. + + + Represents the size of the [enum CompressMode] enum. + Source texture (before compression) is a regular texture. Default for all textures.