summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_graphics_pipeline.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-06 03:10:02 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:35 +0200
commit48aad8dc05f027c21aa0e8a68d827006d9f7a196 (patch)
tree3e1fa35387e82636d2d00fd0f56b8bab30d6e385 /src/video_core/renderer_vulkan/vk_graphics_pipeline.h
parentvk_rasterizer: Flush work on clear and dispatches (diff)
downloadyuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar
yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar.gz
yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar.bz2
yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar.lz
yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar.xz
yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar.zst
yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.h6
1 files changed, 5 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 8c81c28a8..3f8895927 100644
--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.h
+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.h
@@ -87,7 +87,7 @@ public:
configure_func(this, is_indexed);
}
- GraphicsPipeline* Next(const GraphicsPipelineCacheKey& current_key) noexcept {
+ [[nodiscard]] GraphicsPipeline* Next(const GraphicsPipelineCacheKey& current_key) noexcept {
if (key == current_key) {
return this;
}
@@ -96,6 +96,10 @@ public:
: nullptr;
}
+ [[nodiscard]] bool IsBuilt() const noexcept {
+ return is_built.load(std::memory_order::relaxed);
+ }
+
template <typename Spec>
static auto MakeConfigureSpecFunc() {
return [](GraphicsPipeline* pipeline, bool is_indexed) {