diff options
author | Merry <git@mary.rs> | 2022-08-09 01:04:45 +0200 |
---|---|---|
committer | merry <git@mary.rs> | 2022-08-09 01:27:26 +0200 |
commit | f2fbf6d9100c83c59237ea154c2ee5f8331a90ff (patch) | |
tree | 5e6d45d65c2fa709ed29c1df0f5a1984edfff8ec /src/video_core/textures/decoders.h | |
parent | Merge pull request #8734 from liamwhite/bors-is-my-best-friend (diff) | |
download | yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar.gz yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar.bz2 yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar.lz yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar.xz yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar.zst yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.zip |
Diffstat (limited to 'src/video_core/textures/decoders.h')
-rw-r--r-- | src/video_core/textures/decoders.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h index 59dfd1621..31a11708f 100644 --- a/src/video_core/textures/decoders.h +++ b/src/video_core/textures/decoders.h @@ -20,6 +20,9 @@ constexpr u32 GOB_SIZE_Y_SHIFT = 3; constexpr u32 GOB_SIZE_Z_SHIFT = 0; constexpr u32 GOB_SIZE_SHIFT = GOB_SIZE_X_SHIFT + GOB_SIZE_Y_SHIFT + GOB_SIZE_Z_SHIFT; +constexpr u32 SWIZZLE_X_BITS = 0b100101111; +constexpr u32 SWIZZLE_Y_BITS = 0b011010000; + using SwizzleTable = std::array<std::array<u32, GOB_SIZE_X>, GOB_SIZE_Y>; /** |