From 2ca86ef4491ff1427a4020163824630c51f18671 Mon Sep 17 00:00:00 2001 From: Ninni Pipping Date: Thu, 13 Apr 2023 09:49:16 +0200 Subject: [PATCH] [3.x] Expose more compression formats in Image --- core/image.cpp | 2 ++ doc/classes/Image.xml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/core/image.cpp b/core/image.cpp index e79389f2ce4..f56698b759d 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -3031,6 +3031,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 3be64294c07..b7344a343bd 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -602,6 +602,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.