darksylinc / betsy

Betsy GPU compressor
Other
322 stars 18 forks source link

Etc2 RGB8A1 format support? #2

Closed ryancheung closed 4 years ago

ryancheung commented 4 years ago

I currently use google's etc2comp to compress etc2 RGB8A1 for mobile platforms. But it seems slow. Is it possible to do that in GPU?

Codec ref: https://github.com/google/etc2comp/blob/master/EtcLib/EtcCodec/EtcBlock4x4Encoding_RGB8A1.h

darksylinc commented 4 years ago

I just added ETC2 support (RGB8 and RGBA8). Betsy now supports:

There is no support for RGB8A1 (alpha punch-through) though, and I'm afraid it is not planned.

Does this answer your question?

ryancheung commented 4 years ago

Thanks for the answer. But I believe rgb8a1 format is also important. It just use 1bit alpha and can produce more high quality texture.