Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2021-05-15 18:27:00 +0300
committerBartosz Taudul <wolf@nereid.pl>2021-05-15 19:04:14 +0300
commit925a23a0536938b564f940036e396ac83b012a36 (patch)
tree87fc53a52553a13cd5e99b4b8976937e6fe0d8be /server/TracyTextureCompression.hpp
parenta53f5702b13b471e056b09b4325d6ca5d748e07e (diff)
Add texture packer with zstd dict support.
Diffstat (limited to 'server/TracyTextureCompression.hpp')
-rw-r--r--server/TracyTextureCompression.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/TracyTextureCompression.hpp b/server/TracyTextureCompression.hpp
index bbd51821..ae88337f 100644
--- a/server/TracyTextureCompression.hpp
+++ b/server/TracyTextureCompression.hpp
@@ -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 )