1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add texture packer with zstd dict support.

This commit is contained in:
Bartosz Taudul
2021-05-15 17:27:00 +02:00
parent a53f5702b1
commit 925a23a053
2 changed files with 20 additions and 0 deletions
+2
View File
@@ -10,6 +10,7 @@
struct ZSTD_CCtx_s;
struct ZSTD_DCtx_s;
struct ZSTD_CDict_s;
namespace tracy
{
@@ -23,6 +24,7 @@ public:
~TextureCompression();
uint32_t Pack( struct ZSTD_CCtx_s* ctx, char*& buf, size_t& bufsz, const char* image, uint32_t inBytes );
uint32_t Pack( struct ZSTD_CCtx_s* ctx, const struct ZSTD_CDict_s* dict, char*& buf, size_t& bufsz, const char* image, uint32_t inBytes );
template<size_t Size>
const char* Pack( const char* image, uint32_t inBytes, uint32_t& csz, Slab<Size>& slab )