[PICA] More textures. Upstream should also build now

This commit is contained in:
wheremyfoodat 2023-02-01 01:53:51 +02:00
parent 51130b295a
commit ccdab41c28
5 changed files with 66 additions and 36 deletions

View file

@ -41,7 +41,7 @@ public:
}
// Adds a surface object to the cache and returns it
SurfaceType add(const SurfaceType& surface) {
SurfaceType& add(const SurfaceType& surface) {
if (size >= capacity) {
Helpers::panic("Surface cache full! Add emptying!");
}

View file

@ -55,11 +55,11 @@ struct Texture {
}
void allocate();
void decodeTexture(void* data);
void decodeTexture(const void* data);
void free();
u64 sizeInBytes();
u32 decodeTexel(u32 u, u32 v, Formats fmt, void* data);
u32 decodeTexel(u32 u, u32 v, Formats fmt, const void* data);
// Get the morton interleave offset of a texel based on its U and V values
static u32 mortonInterleave(u32 u, u32 v);