diff options
| author | bunnei <bunneidev@gmail.com> | 2019-07-14 22:44:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-14 22:44:36 -0400 |
| commit | b77a1ed67a56bea82a20d6c8e581073a709a2c90 (patch) | |
| tree | b0a6a257a099f2ff18ee48c898c59671cc566de0 /src/video_core/texture_cache/surface_base.h | |
| parent | 3477b92289244a26e0bfd5a95d60bce53fd1ed61 (diff) | |
| parent | 2ac7472d3f94f1adb33c0a1d7748e922c515f6a8 (diff) | |
Merge pull request #2705 from FernandoS27/tex-cache-fixes
GPU: Fixes to Texture Cache and Include Microprofiles for GL State/BufferCopy/Macro Interpreter
Diffstat (limited to 'src/video_core/texture_cache/surface_base.h')
| -rw-r--r-- | src/video_core/texture_cache/surface_base.h | 10 |
1 files changed, 9 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..bcce8d863 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; } @@ -307,10 +312,13 @@ private: return view; } + static constexpr u32 NO_RT = 0xFFFFFFFF; + bool is_modified{}; bool is_target{}; bool is_registered{}; bool is_picked{}; + u32 index{NO_RT}; u64 modification_tick{}; }; |
