diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-04 02:41:49 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:26 +0200 |
commit | 5ed68e83db39e1f6790a625529f10f4e1d5a8f89 (patch) | |
tree | 4931f4501e9127244eb3faddd5d475cd1c7d176f /src/video_core/renderer_vulkan/vk_graphics_pipeline.h | |
parent | shader: Remove unused header in VOTE (diff) | |
download | yuzu-5ed68e83db39e1f6790a625529f10f4e1d5a8f89.tar yuzu-5ed68e83db39e1f6790a625529f10f4e1d5a8f89.tar.gz yuzu-5ed68e83db39e1f6790a625529f10f4e1d5a8f89.tar.bz2 yuzu-5ed68e83db39e1f6790a625529f10f4e1d5a8f89.tar.lz yuzu-5ed68e83db39e1f6790a625529f10f4e1d5a8f89.tar.xz yuzu-5ed68e83db39e1f6790a625529f10f4e1d5a8f89.tar.zst yuzu-5ed68e83db39e1f6790a625529f10f4e1d5a8f89.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_graphics_pipeline.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_graphics_pipeline.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.h b/src/video_core/renderer_vulkan/vk_graphics_pipeline.h index 4e0583157..7d14d2378 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.h +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.h @@ -6,6 +6,8 @@ #include <array> #include <atomic> +#include <condition_variable> +#include <mutex> #include "common/thread_worker.h" #include "shader_recompiler/shader_info.h" @@ -63,7 +65,10 @@ private: vk::PipelineLayout pipeline_layout; vk::DescriptorUpdateTemplateKHR descriptor_update_template; vk::Pipeline pipeline; - std::atomic_flag building_flag{}; + + std::condition_variable build_condvar; + std::mutex build_mutex; + std::atomic_bool is_built{false}; }; } // namespace Vulkan |