diff options
author | Fernando S <fsahmkow27@gmail.com> | 2023-06-18 00:02:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-18 00:02:05 +0200 |
commit | 27a36cd51bbc832b0b73cbbaef6bd8453368a38d (patch) | |
tree | 00a30700c65665e2eaf2b02f03d73585c4d4f790 /src/video_core/texture_cache/texture_cache_base.h | |
parent | Merge pull request #10783 from liamwhite/memory (diff) | |
parent | video_core: Only apply AF to 2D (array) image types (diff) | |
download | yuzu-27a36cd51bbc832b0b73cbbaef6bd8453368a38d.tar yuzu-27a36cd51bbc832b0b73cbbaef6bd8453368a38d.tar.gz yuzu-27a36cd51bbc832b0b73cbbaef6bd8453368a38d.tar.bz2 yuzu-27a36cd51bbc832b0b73cbbaef6bd8453368a38d.tar.lz yuzu-27a36cd51bbc832b0b73cbbaef6bd8453368a38d.tar.xz yuzu-27a36cd51bbc832b0b73cbbaef6bd8453368a38d.tar.zst yuzu-27a36cd51bbc832b0b73cbbaef6bd8453368a38d.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache_base.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache_base.h | 12 |
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(); |