rasterizer_cache: Add support for texture dumping

This commit is contained in:
GPUCode
2023-02-17 20:17:40 +02:00
parent 6cf9c0c7d5
commit 77961d2f07
12 changed files with 218 additions and 61 deletions

View File

@ -57,7 +57,7 @@ bool DecodePNG(std::span<const u8> in_data, std::vector<u8>& out_data, u32& widt
return true;
}
bool EncodePNG(std::span<u8> in_data, const std::string& out_path, u32 width, u32 height,
bool EncodePNG(std::span<const u8> in_data, const std::string& out_path, u32 width, u32 height,
u32 stride, s32 level) {
auto ctx = make_spng_ctx(SPNG_CTX_ENCODER);
if (!ctx) [[unlikely]] {