diff options
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 { | |||
| 336 | std::array<u8, 0x20> raw; | 336 | std::array<u8, 0x20> raw; |
| 337 | }; | 337 | }; |
| 338 | 338 | ||
| 339 | std::array<float, 4> GetBorderColor() const noexcept; | ||
| 340 | |||
| 339 | float GetMaxAnisotropy() const { | 341 | float GetMaxAnisotropy() const { |
| 340 | const u32 min_value = [] { | 342 | const u32 min_value = [] { |
| 341 | switch (static_cast<Anisotropy>(Settings::values.max_anisotropy)) { | 343 | switch (static_cast<Anisotropy>(Settings::values.max_anisotropy)) { |
| @@ -368,15 +370,6 @@ struct TSCEntry { | |||
| 368 | constexpr u32 mask = 1U << (13 - 1); | 370 | constexpr u32 mask = 1U << (13 - 1); |
| 369 | return static_cast<float>(static_cast<s32>((mip_lod_bias ^ mask) - mask)) / 256.0f; | 371 | return static_cast<float>(static_cast<s32>((mip_lod_bias ^ mask) - mask)) / 256.0f; |
| 370 | } | 372 | } |
| 371 | |||
| 372 | std::array<float, 4> GetBorderColor() const { | ||
| 373 | if (srgb_conversion) { | ||
| 374 | return {static_cast<float>(srgb_border_color_r) / 255.0f, | ||
| 375 | static_cast<float>(srgb_border_color_g) / 255.0f, | ||
| 376 | static_cast<float>(srgb_border_color_b) / 255.0f, border_color[3]}; | ||
| 377 | } | ||
| 378 | return border_color; | ||
| 379 | } | ||
| 380 | }; | 373 | }; |
| 381 | static_assert(sizeof(TSCEntry) == 0x20, "TSCEntry has wrong size"); | 374 | static_assert(sizeof(TSCEntry) == 0x20, "TSCEntry has wrong size"); |
| 382 | 375 | ||