diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-01 06:36:22 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:25 +0200 |
commit | 2fc698b040e7e25223ba6ebe31abb04b1fc65f06 (patch) | |
tree | dad5321dd5fd829a6493dd3f26b7c18bc6ec08ca /src/video_core/renderer_vulkan/vk_scheduler.h | |
parent | shader: Fix dependency on identity removal pass (diff) | |
download | yuzu-2fc698b040e7e25223ba6ebe31abb04b1fc65f06.tar yuzu-2fc698b040e7e25223ba6ebe31abb04b1fc65f06.tar.gz yuzu-2fc698b040e7e25223ba6ebe31abb04b1fc65f06.tar.bz2 yuzu-2fc698b040e7e25223ba6ebe31abb04b1fc65f06.tar.lz yuzu-2fc698b040e7e25223ba6ebe31abb04b1fc65f06.tar.xz yuzu-2fc698b040e7e25223ba6ebe31abb04b1fc65f06.tar.zst yuzu-2fc698b040e7e25223ba6ebe31abb04b1fc65f06.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_scheduler.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_scheduler.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.h b/src/video_core/renderer_vulkan/vk_scheduler.h index 3ce48e9d2..a40bb8bcd 100644 --- a/src/video_core/renderer_vulkan/vk_scheduler.h +++ b/src/video_core/renderer_vulkan/vk_scheduler.h @@ -22,6 +22,7 @@ namespace Vulkan { class CommandPool; class Device; class Framebuffer; +class GraphicsPipeline; class StateTracker; class VKQueryCache; @@ -52,8 +53,8 @@ public: /// of a renderpass. void RequestOutsideRenderPassOperationContext(); - /// Binds a pipeline to the current execution context. - void BindGraphicsPipeline(VkPipeline pipeline); + /// Update the pipeline to the current execution context. + bool UpdateGraphicsPipeline(GraphicsPipeline* pipeline); /// Invalidates current command buffer state except for render passes void InvalidateState(); @@ -170,7 +171,7 @@ private: VkRenderPass renderpass = nullptr; VkFramebuffer framebuffer = nullptr; VkExtent2D render_area = {0, 0}; - VkPipeline graphics_pipeline = nullptr; + GraphicsPipeline* graphics_pipeline = nullptr; }; void WorkerThread(); |