diff options
author | bunnei <bunneidev@gmail.com> | 2019-12-02 18:07:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-02 18:07:05 +0100 |
commit | 3c1b6b572343a8677ddbf0b767f4c66cce3ff4a9 (patch) | |
tree | 17bdf471b3436d85ab79cdae5c19aa0161e7ad23 /src/video_core/texture_cache/surface_params.h | |
parent | Merge pull request #3177 from bunnei/new-ipc-req (diff) | |
parent | Texture_Cache: Redo invalid Surfaces handling. (diff) | |
download | yuzu-3c1b6b572343a8677ddbf0b767f4c66cce3ff4a9.tar yuzu-3c1b6b572343a8677ddbf0b767f4c66cce3ff4a9.tar.gz yuzu-3c1b6b572343a8677ddbf0b767f4c66cce3ff4a9.tar.bz2 yuzu-3c1b6b572343a8677ddbf0b767f4c66cce3ff4a9.tar.lz yuzu-3c1b6b572343a8677ddbf0b767f4c66cce3ff4a9.tar.xz yuzu-3c1b6b572343a8677ddbf0b767f4c66cce3ff4a9.tar.zst yuzu-3c1b6b572343a8677ddbf0b767f4c66cce3ff4a9.zip |
Diffstat (limited to 'src/video_core/texture_cache/surface_params.h')
-rw-r--r-- | src/video_core/texture_cache/surface_params.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/surface_params.h b/src/video_core/texture_cache/surface_params.h index 709aa0dc2..129817ad3 100644 --- a/src/video_core/texture_cache/surface_params.h +++ b/src/video_core/texture_cache/surface_params.h @@ -45,6 +45,14 @@ public: static SurfaceParams CreateForFermiCopySurface( const Tegra::Engines::Fermi2D::Regs::Surface& config); + /// Obtains the texture target from a shader's sampler entry. + static VideoCore::Surface::SurfaceTarget ExpectedTarget( + const VideoCommon::Shader::Sampler& entry); + + /// Obtains the texture target from a shader's sampler entry. + static VideoCore::Surface::SurfaceTarget ExpectedTarget( + const VideoCommon::Shader::Image& entry); + std::size_t Hash() const { return static_cast<std::size_t>( Common::CityHash64(reinterpret_cast<const char*>(this), sizeof(*this))); |