From a209d464f913d743f644461e1c82634ec97f1e3e Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Tue, 7 Apr 2020 20:47:31 -0300 Subject: video_core/textures: Move GetMaxAnisotropy to cpp file --- src/video_core/textures/texture.h | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'src/video_core/textures/texture.h') diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h index 262cd3cc1..59b8a5e66 100644 --- a/src/video_core/textures/texture.h +++ b/src/video_core/textures/texture.h @@ -8,7 +8,6 @@ #include "common/assert.h" #include "common/bit_field.h" #include "common/common_types.h" -#include "core/settings.h" namespace Tegra::Texture { @@ -338,24 +337,7 @@ struct TSCEntry { std::array GetBorderColor() const noexcept; - float GetMaxAnisotropy() const { - const u32 min_value = [] { - switch (static_cast(Settings::values.max_anisotropy)) { - default: - case Anisotropy::Default: - return 1U; - case Anisotropy::Filter2x: - return 2U; - case Anisotropy::Filter4x: - return 4U; - case Anisotropy::Filter8x: - return 8U; - case Anisotropy::Filter16x: - return 16U; - } - }(); - return static_cast(std::max(1U << max_anisotropy, min_value)); - } + float GetMaxAnisotropy() const noexcept; float GetMinLod() const { return static_cast(min_lod_clamp) / 256.0f; -- cgit v1.2.3