Software: Fix mipmaps and uneven strides in SWTexture

I think this is only used for texture dumping, but this resolves some failed assertions and glitchy results.
This commit is contained in:
Pokechu22
2022-09-26 17:49:49 -07:00
parent 56fce3ba8a
commit b90d23158f
3 changed files with 48 additions and 31 deletions

View File

@ -29,11 +29,11 @@ public:
void Load(u32 level, u32 width, u32 height, u32 row_length, const u8* buffer,
size_t buffer_size) override;
const u8* GetData() const;
u8* GetData();
const u8* GetData(u32 layer, u32 level) const;
u8* GetData(u32 layer, u32 level);
private:
std::vector<u8> m_data;
std::vector<std::vector<std::vector<u8>>> m_data;
};
class SWStagingTexture final : public AbstractStagingTexture