darksylinc / betsy

Betsy GPU compressor
Other
322 stars 18 forks source link

stb__OMatch tables differ from stb_dxt v1.12 #13

Open nanley opened 2 years ago

nanley commented 2 years ago

The tables in BC1_tables.inl seem to be generated from stb_dxt v1.10 or earlier. Version 1.11 of the header actually introduced such compile-time defined tables and a generation program. The tables from the latest header, version 1.12, differ from what's here. Could we pull them in?

nanley commented 2 years ago

The cause of the difference is from https://github.com/nothings/stb/commit/425c4d8b3179a55a21c7c631db7bcdf27f6d459b (later fixed up with https://github.com/nothings/stb/commit/3cfb892cf3144eb0bd4d85f84695193fb6f007c0).

darksylinc commented 2 years ago

Interesting. Yes, it sounds like the new tables are superior and should be ported to Betsy.