mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-05 04:36:13 +01:00
DirectXTex: BC6H/BC7 had subtle signed/unsigned bug that resulted in incorrect decoding in particular edge cases
This commit is contained in:
@@ -65,9 +65,9 @@ const size_t BC6H_MAX_SHAPES = 32;
|
||||
const size_t BC7_NUM_CHANNELS = 4;
|
||||
const size_t BC7_MAX_SHAPES = 64;
|
||||
|
||||
const uint32_t BC67_WEIGHT_MAX = 64;
|
||||
const int32_t BC67_WEIGHT_MAX = 64;
|
||||
const uint32_t BC67_WEIGHT_SHIFT = 6;
|
||||
const uint32_t BC67_WEIGHT_ROUND = 32;
|
||||
const int32_t BC67_WEIGHT_ROUND = 32;
|
||||
|
||||
extern const int g_aWeights2[4];
|
||||
extern const int g_aWeights3[8];
|
||||
|
||||
Reference in New Issue
Block a user