diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-20 06:15:29 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-20 06:15:29 +0100 |
commit | 0857f82913d0bcf2de4721233f74cd40ecddcdae (patch) | |
tree | cda81a8683f155985fa57d48f4ed72f44228061e /src/video_core/renderer_opengl/gl_texture_cache.h | |
parent | TextureCache: Add R16G16 to D24S8 converter. (diff) | |
download | yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar.gz yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar.bz2 yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar.lz yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar.xz yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar.zst yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h index 578f8d523..ad5157d66 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.h +++ b/src/video_core/renderer_opengl/gl_texture_cache.h @@ -84,9 +84,13 @@ public: u64 GetDeviceLocalMemory() const; + bool ShouldReinterpret([[maybe_unused]] Image& dst, [[maybe_unused]] Image& src) { + return true; + } + void CopyImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies); - void ConvertImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies); + void ReinterpretImage(Image& dst, Image& src, std::span<const VideoCommon::ImageCopy> copies); void ConvertImage(Framebuffer* dst, ImageView& dst_view, ImageView& src_view, bool rescaled) { UNIMPLEMENTED(); @@ -338,7 +342,6 @@ struct TextureCacheParams { static constexpr bool FRAMEBUFFER_BLITS = true; static constexpr bool HAS_EMULATED_COPIES = true; static constexpr bool HAS_DEVICE_MEMORY_INFO = true; - static constexpr bool HAS_PIXEL_FORMAT_CONVERSIONS = true; using Runtime = OpenGL::TextureCacheRuntime; using Image = OpenGL::Image; |