diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-07-26 03:34:12 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:28 +0100 |
commit | d2388dd0d0d36a230b58efbdd17f8366c79555b5 (patch) | |
tree | 02f74469732f55fc109dd45a71339a6d26c0dfae /src/video_core/renderer_vulkan/vk_scheduler.h | |
parent | vk_texture_cache: Properly scale blit source images (diff) | |
download | yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar.gz yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar.bz2 yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar.lz yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar.xz yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar.zst yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_scheduler.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_scheduler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.h b/src/video_core/renderer_vulkan/vk_scheduler.h index 85fc1712f..1b06c9296 100644 --- a/src/video_core/renderer_vulkan/vk_scheduler.h +++ b/src/video_core/renderer_vulkan/vk_scheduler.h @@ -56,6 +56,9 @@ public: /// Update the pipeline to the current execution context. bool UpdateGraphicsPipeline(GraphicsPipeline* pipeline); + /// Update the rescaling state. Returns true if the state has to be updated. + bool UpdateRescaling(bool is_rescaling); + /// Invalidates current command buffer state except for render passes void InvalidateState(); @@ -185,6 +188,8 @@ private: VkFramebuffer framebuffer = nullptr; VkExtent2D render_area = {0, 0}; GraphicsPipeline* graphics_pipeline = nullptr; + bool is_rescaling = false; + bool rescaling_defined = false; }; void WorkerThread(std::stop_token stop_token); |