diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-10-17 18:01:18 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:31 +0100 |
commit | 425ab9ef4b982213f4ee0d53196f5474e255374f (patch) | |
tree | 467bc959ea481d58514d11ca73e8f31b3557d4aa /src/video_core/texture_cache/image_base.h | |
parent | Presentation: add Nearest Neighbor filter. (diff) | |
download | yuzu-425ab9ef4b982213f4ee0d53196f5474e255374f.tar yuzu-425ab9ef4b982213f4ee0d53196f5474e255374f.tar.gz yuzu-425ab9ef4b982213f4ee0d53196f5474e255374f.tar.bz2 yuzu-425ab9ef4b982213f4ee0d53196f5474e255374f.tar.lz yuzu-425ab9ef4b982213f4ee0d53196f5474e255374f.tar.xz yuzu-425ab9ef4b982213f4ee0d53196f5474e255374f.tar.zst yuzu-425ab9ef4b982213f4ee0d53196f5474e255374f.zip |
Diffstat (limited to 'src/video_core/texture_cache/image_base.h')
-rw-r--r-- | src/video_core/texture_cache/image_base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/image_base.h b/src/video_core/texture_cache/image_base.h index bab290ac7..cd4b5f636 100644 --- a/src/video_core/texture_cache/image_base.h +++ b/src/video_core/texture_cache/image_base.h @@ -77,6 +77,10 @@ struct ImageBase { void CheckBadOverlapState(); void CheckAliasState(); + bool HasScaled() { + return scale_count > 0; + } + ImageInfo info; u32 guest_size_bytes = 0; @@ -84,6 +88,7 @@ struct ImageBase { u32 converted_size_bytes = 0; u32 scale_rating = 0; u64 scale_tick = 0; + u32 scale_count = 0; ImageFlagBits flags = ImageFlagBits::CpuModified; GPUVAddr gpu_addr = 0; |