diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-05 10:28:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 10:28:07 +0100 |
commit | df1724470d1cff4f67aeb4c0d039114373aeb001 (patch) | |
tree | 0208cb7c3fc85f52a30f534610136d43d24ca932 /thirdparty/cvtt/ConvectionKernels_BC7_Prio.h | |
parent | 2e44778cd2f3d004bac80c3cd3935a8835936e2c (diff) | |
parent | 419b342a9a716426159f7a51ae17390386ecc884 (diff) |
Merge pull request #49775 from fire/faster-cvtt
Faster CVTT by lowering default quality
Diffstat (limited to 'thirdparty/cvtt/ConvectionKernels_BC7_Prio.h')
-rw-r--r-- | thirdparty/cvtt/ConvectionKernels_BC7_Prio.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/thirdparty/cvtt/ConvectionKernels_BC7_Prio.h b/thirdparty/cvtt/ConvectionKernels_BC7_Prio.h new file mode 100644 index 0000000000..1880e22d0f --- /dev/null +++ b/thirdparty/cvtt/ConvectionKernels_BC7_Prio.h @@ -0,0 +1,17 @@ +#pragma once + +#include <stdint.h> + +namespace cvtt { namespace Tables { namespace BC7Prio { + extern const uint16_t *g_bc7PrioCodesRGB; + extern const int g_bc7NumPrioCodesRGB; + + extern const uint16_t *g_bc7PrioCodesRGBA; + extern const int g_bc7NumPrioCodesRGBA; + + int UnpackMode(uint16_t packed); + int UnpackSeedPointCount(uint16_t packed); + int UnpackPartition(uint16_t packed); + int UnpackRotation(uint16_t packed); + int UnpackIndexSelector(uint16_t packed); +}}} |