summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/surface_params.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-10-16 16:47:44 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-11-20 19:59:35 +0100
commitcc81c0ce64a5cc1f550ca796fda38e445660649a (patch)
treec9d2c27f143dcda1b164e2e4bc5edac96cef3bc8 /src/video_core/texture_cache/surface_params.h
parentMerge pull request #3142 from ReinUsesLisp/depbar-log (diff)
downloadyuzu-cc81c0ce64a5cc1f550ca796fda38e445660649a.tar
yuzu-cc81c0ce64a5cc1f550ca796fda38e445660649a.tar.gz
yuzu-cc81c0ce64a5cc1f550ca796fda38e445660649a.tar.bz2
yuzu-cc81c0ce64a5cc1f550ca796fda38e445660649a.tar.lz
yuzu-cc81c0ce64a5cc1f550ca796fda38e445660649a.tar.xz
yuzu-cc81c0ce64a5cc1f550ca796fda38e445660649a.tar.zst
yuzu-cc81c0ce64a5cc1f550ca796fda38e445660649a.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/texture_cache/surface_params.h8
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)));