Skip to content

Commit 8b2c3bf

Browse files
authored
Update README.md
Updated fomat_only docs
1 parent 5b1fabf commit 8b2c3bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ basisu -file foo.png -ktx2
1515
Adding a `-uastc` might give better results for some compression types.
1616

1717
Once you have the "basis" file you can then transform that into specific formats
18-
by using the `-unpack` command. PRoviding the `-format_only` flag will produce
18+
by using the `-unpack` command. Providing the `-format_only` flag will produce
1919
ONLY that format. Omitting this flag will result in ALL supported formats being
2020
produced.
21+
The values for `-format_only` are the numerical values for the [transcoder_texture_format]( https://github.com/BinomialLLC/basis_universal/blob/ad9386a4a1cf2a248f7bbd45f543a7448db15267/transcoder/basisu_transcoder.h#L49). For example ATC with an Alpha channel maps to [cTFATC_RGBA](https://github.com/BinomialLLC/basis_universal/blob/ad9386a4a1cf2a248f7bbd45f543a7448db15267/transcoder/basisu_transcoder.h#L73C3-L73C14) which has a numerical value of `17`.
2122

2223
```dotnetcli
2324
basisu -unpack foo.ktx2 -no_ktx -linear -format_only 2

0 commit comments

Comments
 (0)