summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/texture_cache_base.h
diff options
context:
space:
mode:
authorWollnashorn <Wollnashorn@users.noreply.github.com>2023-06-16 13:26:44 +0200
committerWollnashorn <Wollnashorn@users.noreply.github.com>2023-06-16 13:45:14 +0200
commit2dc0ff79ece34286c7078922668fd9f0a19b47b7 (patch)
treea474956c3fdc432f7259c70337d2c304baf80740 /src/video_core/texture_cache/texture_cache_base.h
parentvideo_core: Fallback to default anisotropy instead to 1x anisotropy (diff)
downloadyuzu-2dc0ff79ece34286c7078922668fd9f0a19b47b7.tar
yuzu-2dc0ff79ece34286c7078922668fd9f0a19b47b7.tar.gz
yuzu-2dc0ff79ece34286c7078922668fd9f0a19b47b7.tar.bz2
yuzu-2dc0ff79ece34286c7078922668fd9f0a19b47b7.tar.lz
yuzu-2dc0ff79ece34286c7078922668fd9f0a19b47b7.tar.xz
yuzu-2dc0ff79ece34286c7078922668fd9f0a19b47b7.tar.zst
yuzu-2dc0ff79ece34286c7078922668fd9f0a19b47b7.zip
Diffstat (limited to 'src/video_core/texture_cache/texture_cache_base.h')
-rw-r--r--src/video_core/texture_cache/texture_cache_base.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache_base.h b/src/video_core/texture_cache/texture_cache_base.h
index 3bfa92154..d96ddea9d 100644
--- a/src/video_core/texture_cache/texture_cache_base.h
+++ b/src/video_core/texture_cache/texture_cache_base.h
@@ -159,6 +159,18 @@ public:
/// Get the sampler from the compute descriptor table in the specified index
Sampler* GetComputeSampler(u32 index);
+ /// Get the sampler id from the graphics descriptor table in the specified index
+ SamplerId GetGraphicsSamplerId(u32 index);
+
+ /// Get the sampler id from the compute descriptor table in the specified index
+ SamplerId GetComputeSamplerId(u32 index);
+
+ /// Return a constant reference to the given sampler id
+ [[nodiscard]] const Sampler& GetSampler(SamplerId id) const noexcept;
+
+ /// Return a reference to the given sampler id
+ [[nodiscard]] Sampler& GetSampler(SamplerId id) noexcept;
+
/// Refresh the state for graphics image view and sampler descriptors
void SynchronizeGraphicsDescriptors();