Skip to content

Get compression scheme of ktx2Texture #984

Closed Answered by MarkCallow
Galo32 asked this question in Q&A
Discussion options

You must be logged in to vote

There are a couple of ways.

  1. You can use ktxTexture2_GetColorModel_e and compare the result against the KHR_DF_MODEL_ETC1S and KHR_DF_MODEL_UASTC. Those enums are defined in khr_df.h.
  2. If you are only interested if it is ETC1S, you can check the supercompressionScheme. ETC1S always uses scheme 1, BasisLZ.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MarkCallow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants