Skip to content

Commit

Permalink
Expose Image.COMPRESS_SOURCE_LAYERED to scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Jan 17, 2022
1 parent 513a8a7 commit 7f49e5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3020,6 +3020,7 @@ void Image::_bind_methods() {
BIND_ENUM_CONSTANT(COMPRESS_SOURCE_GENERIC);
BIND_ENUM_CONSTANT(COMPRESS_SOURCE_SRGB);
BIND_ENUM_CONSTANT(COMPRESS_SOURCE_NORMAL);
BIND_ENUM_CONSTANT(COMPRESS_SOURCE_LAYERED);
}

void Image::set_compress_bc_func(void (*p_compress_func)(Image *, float, CompressSource)) {
Expand Down
3 changes: 3 additions & 0 deletions doc/classes/Image.xml
Original file line number Diff line number Diff line change
Expand Up @@ -611,5 +611,8 @@
<constant name="COMPRESS_SOURCE_NORMAL" value="2" enum="CompressSource">
Source texture (before compression) is a normal texture (e.g. it can be compressed into two channels).
</constant>
<constant name="COMPRESS_SOURCE_LAYERED" value="3" enum="CompressSource">
Source texture (before compression) is a [TextureLayered].
</constant>
</constants>
</class>

0 comments on commit 7f49e5b

Please sign in to comment.