diff options
author | Wollnashorn <Wollnashorn@users.noreply.github.com> | 2023-06-15 18:19:32 +0200 |
---|---|---|
committer | Wollnashorn <Wollnashorn@users.noreply.github.com> | 2023-06-15 18:19:32 +0200 |
commit | 42c944b250d8d5c8147b24b3a453cba29968d46c (patch) | |
tree | 6d156e8247219bf373edd848bd3a89bbd32eb546 /src/video_core/renderer_vulkan/vk_texture_cache.h | |
parent | video_core: Apply AF only to samplers with normal LOD range [0, 1+x] (diff) | |
download | yuzu-42c944b250d8d5c8147b24b3a453cba29968d46c.tar yuzu-42c944b250d8d5c8147b24b3a453cba29968d46c.tar.gz yuzu-42c944b250d8d5c8147b24b3a453cba29968d46c.tar.bz2 yuzu-42c944b250d8d5c8147b24b3a453cba29968d46c.tar.lz yuzu-42c944b250d8d5c8147b24b3a453cba29968d46c.tar.xz yuzu-42c944b250d8d5c8147b24b3a453cba29968d46c.tar.zst yuzu-42c944b250d8d5c8147b24b3a453cba29968d46c.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_texture_cache.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.h b/src/video_core/renderer_vulkan/vk_texture_cache.h index 0f7a5ffd4..ee0d0480d 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.h +++ b/src/video_core/renderer_vulkan/vk_texture_cache.h @@ -279,8 +279,17 @@ public: return *sampler; } + [[nodiscard]] VkSampler HandleWithoutAnisotropy() const noexcept { + return *sampler_without_anisotropy; + } + + [[nodiscard]] bool HasAddedAnisotropy() const noexcept { + return static_cast<bool>(sampler_without_anisotropy); + } + private: vk::Sampler sampler; + vk::Sampler sampler_without_anisotropy; }; class Framebuffer { |