diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-12 07:01:27 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-09-06 01:35:51 +0200 |
commit | 6170337001cc11deabd57023a548c44de4242e9d (patch) | |
tree | e9d6260d49ef69db4c5525d176a202892594acc7 /src/video_core/texture_cache/surface_params.h | |
parent | gl_state: Add support for glBindImageTextures (diff) | |
download | yuzu-6170337001cc11deabd57023a548c44de4242e9d.tar yuzu-6170337001cc11deabd57023a548c44de4242e9d.tar.gz yuzu-6170337001cc11deabd57023a548c44de4242e9d.tar.bz2 yuzu-6170337001cc11deabd57023a548c44de4242e9d.tar.lz yuzu-6170337001cc11deabd57023a548c44de4242e9d.tar.xz yuzu-6170337001cc11deabd57023a548c44de4242e9d.tar.zst yuzu-6170337001cc11deabd57023a548c44de4242e9d.zip |
Diffstat (limited to 'src/video_core/texture_cache/surface_params.h')
-rw-r--r-- | src/video_core/texture_cache/surface_params.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/surface_params.h b/src/video_core/texture_cache/surface_params.h index ee2efa594..1011a4d8e 100644 --- a/src/video_core/texture_cache/surface_params.h +++ b/src/video_core/texture_cache/surface_params.h @@ -23,8 +23,12 @@ using VideoCore::Surface::SurfaceCompression; class SurfaceParams { public: /// Creates SurfaceCachedParams from a texture configuration. + static SurfaceParams CreateForTexture(const Tegra::Texture::TICEntry& tic, + const VideoCommon::Shader::Sampler& entry); + + /// Creates SurfaceCachedParams from an image configuration. static SurfaceParams CreateForImage(const Tegra::Texture::TICEntry& tic, - const VideoCommon::Shader::Sampler& entry); + const VideoCommon::Shader::Image& entry); /// Creates SurfaceCachedParams for a depth buffer configuration. static SurfaceParams CreateForDepthBuffer( |