diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-11 21:15:21 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-14 18:00:31 +0200 |
commit | 5818959e543041fdff8965e71e52d55a05ee22de (patch) | |
tree | 1e168ded74b7b29a1822a8f5b0f07241db2c68d4 /src/video_core/texture_cache/surface_base.h | |
parent | GPU: Add a microprofile for macro interpreter (diff) | |
download | yuzu-5818959e543041fdff8965e71e52d55a05ee22de.tar yuzu-5818959e543041fdff8965e71e52d55a05ee22de.tar.gz yuzu-5818959e543041fdff8965e71e52d55a05ee22de.tar.bz2 yuzu-5818959e543041fdff8965e71e52d55a05ee22de.tar.lz yuzu-5818959e543041fdff8965e71e52d55a05ee22de.tar.xz yuzu-5818959e543041fdff8965e71e52d55a05ee22de.tar.zst yuzu-5818959e543041fdff8965e71e52d55a05ee22de.zip |
Diffstat (limited to 'src/video_core/texture_cache/surface_base.h')
-rw-r--r-- | src/video_core/texture_cache/surface_base.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/surface_base.h b/src/video_core/texture_cache/surface_base.h index 8ba386a8a..fb6378bc7 100644 --- a/src/video_core/texture_cache/surface_base.h +++ b/src/video_core/texture_cache/surface_base.h @@ -200,8 +200,9 @@ public: modification_tick = tick; } - void MarkAsRenderTarget(const bool is_target) { + void MarkAsRenderTarget(const bool is_target, const u32 index) { this->is_target = is_target; + this->index = index; } void MarkAsPicked(const bool is_picked) { @@ -221,6 +222,10 @@ public: return is_target; } + u32 GetRenderTarget() const { + return index; + } + bool IsRegistered() const { return is_registered; } @@ -311,6 +316,7 @@ private: bool is_target{}; bool is_registered{}; bool is_picked{}; + u32 index{0xFFFFFFFF}; u64 modification_tick{}; }; |