diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-09 07:26:30 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-15 00:57:10 +0100 |
commit | 80eacdf89b55528a66b2e94391e640e641e8cb57 (patch) | |
tree | 38f52e7744ba4db1aba6252837459b1ca72fa465 /src/video_core/texture_cache/surface_params.h | |
parent | texture_cache: Drop abstracted ComponentType (diff) | |
download | yuzu-80eacdf89b55528a66b2e94391e640e641e8cb57.tar yuzu-80eacdf89b55528a66b2e94391e640e641e8cb57.tar.gz yuzu-80eacdf89b55528a66b2e94391e640e641e8cb57.tar.bz2 yuzu-80eacdf89b55528a66b2e94391e640e641e8cb57.tar.lz yuzu-80eacdf89b55528a66b2e94391e640e641e8cb57.tar.xz yuzu-80eacdf89b55528a66b2e94391e640e641e8cb57.tar.zst yuzu-80eacdf89b55528a66b2e94391e640e641e8cb57.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/surface_params.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/surface_params.h b/src/video_core/texture_cache/surface_params.h index a84058869..709aa0dc2 100644 --- a/src/video_core/texture_cache/surface_params.h +++ b/src/video_core/texture_cache/surface_params.h @@ -16,16 +16,20 @@ namespace VideoCommon { +class FormatLookupTable; + using VideoCore::Surface::SurfaceCompression; class SurfaceParams { public: /// Creates SurfaceCachedParams from a texture configuration. - static SurfaceParams CreateForTexture(const Tegra::Texture::TICEntry& tic, + static SurfaceParams CreateForTexture(const FormatLookupTable& lookup_table, + const Tegra::Texture::TICEntry& tic, const VideoCommon::Shader::Sampler& entry); /// Creates SurfaceCachedParams from an image configuration. - static SurfaceParams CreateForImage(const Tegra::Texture::TICEntry& tic, + static SurfaceParams CreateForImage(const FormatLookupTable& lookup_table, + const Tegra::Texture::TICEntry& tic, const VideoCommon::Shader::Image& entry); /// Creates SurfaceCachedParams for a depth buffer configuration. |