[PICA] Implement A4 textures

This commit is contained in:
wheremyfoodat 2023-03-06 21:07:10 +02:00
parent 922424b8d0
commit 820b8a37b6
2 changed files with 21 additions and 0 deletions

View file

@ -65,6 +65,7 @@ struct Texture {
static u32 mortonInterleave(u32 u, u32 v);
// Get the byte offset of texel (u, v) in the texture
static u32 getSwizzledOffset(u32 u, u32 v, u32 width, u32 bytesPerPixel);
static u32 getSwizzledOffset_4bpp(u32 u, u32 v, u32 width);
// Returns the texel at coordinates (u, v) of an ETC1(A4) texture
// TODO: Make hasAlpha a template parameter