Get compression scheme of ktx2Texture #984
-
Hello, there is a way to check which compression scheme (ETC1S/UASTC) was used to encode a ktxTexture2 object from ktxlib? |
Beta Was this translation helpful? Give feedback.
Answered by
MarkCallow
Feb 19, 2025
Replies: 1 comment
-
There are a couple of ways.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MarkCallow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are a couple of ways.
ktxTexture2_GetColorModel_e
and compare the result against theKHR_DF_MODEL_ETC1S
andKHR_DF_MODEL_UASTC
. Those enums are defined inkhr_df.h
.supercompressionScheme
. ETC1S always uses scheme 1, BasisLZ.