summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/texture.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-08 01:38:14 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-08 01:38:14 +0200
commitd7db0881808376864eb71eb5dde8b651a5cf891d (patch)
treefceb12bc74d567151cb15da8b51001683dc12976 /src/video_core/textures/texture.h
parentfile_sys: fix LayeredFS error when loading some games made with… (#3602) (diff)
downloadyuzu-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 '')
-rw-r--r--src/video_core/textures/texture.h11
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");