diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-08 01:38:14 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-08 01:38:14 +0200 |
commit | d7db0881808376864eb71eb5dde8b651a5cf891d (patch) | |
tree | fceb12bc74d567151cb15da8b51001683dc12976 /src/video_core/textures/texture.h | |
parent | file_sys: fix LayeredFS error when loading some games made with… (#3602) (diff) | |
download | yuzu-d7db0881808376864eb71eb5dde8b651a5cf891d.tar yuzu-d7db0881808376864eb71eb5dde8b651a5cf891d.tar.gz yuzu-d7db0881808376864eb71eb5dde8b651a5cf891d.tar.bz2 yuzu-d7db0881808376864eb71eb5dde8b651a5cf891d.tar.lz yuzu-d7db0881808376864eb71eb5dde8b651a5cf891d.tar.xz yuzu-d7db0881808376864eb71eb5dde8b651a5cf891d.tar.zst yuzu-d7db0881808376864eb71eb5dde8b651a5cf891d.zip |
Diffstat (limited to 'src/video_core/textures/texture.h')
-rw-r--r-- | src/video_core/textures/texture.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h index 7edc4abe1..262cd3cc1 100644 --- a/src/video_core/textures/texture.h +++ b/src/video_core/textures/texture.h @@ -336,6 +336,8 @@ struct TSCEntry { std::array<u8, 0x20> raw; }; + std::array<float, 4> GetBorderColor() const noexcept; + float GetMaxAnisotropy() const { const u32 min_value = [] { switch (static_cast<Anisotropy>(Settings::values.max_anisotropy)) { @@ -368,15 +370,6 @@ struct TSCEntry { constexpr u32 mask = 1U << (13 - 1); return static_cast<float>(static_cast<s32>((mip_lod_bias ^ mask) - mask)) / 256.0f; } - - std::array<float, 4> GetBorderColor() const { - if (srgb_conversion) { - return {static_cast<float>(srgb_border_color_r) / 255.0f, - static_cast<float>(srgb_border_color_g) / 255.0f, - static_cast<float>(srgb_border_color_b) / 255.0f, border_color[3]}; - } - return border_color; - } }; static_assert(sizeof(TSCEntry) == 0x20, "TSCEntry has wrong size"); |