summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-01-04 01:40:36 +0100
committerGitHub <noreply@github.com>2022-01-04 01:40:36 +0100
commite7733544779f2706d108682dd027d44e7fa5ff4b (patch)
tree9662605d300e28c2e7722ecdc978b65f97b568cb /src/video_core/gpu.h
parentMerge pull request #7664 from german77/fallback (diff)
parentgpu: Use std::stop_token in WaitFence for VSync thread (diff)
downloadyuzu-e7733544779f2706d108682dd027d44e7fa5ff4b.tar
yuzu-e7733544779f2706d108682dd027d44e7fa5ff4b.tar.gz
yuzu-e7733544779f2706d108682dd027d44e7fa5ff4b.tar.bz2
yuzu-e7733544779f2706d108682dd027d44e7fa5ff4b.tar.lz
yuzu-e7733544779f2706d108682dd027d44e7fa5ff4b.tar.xz
yuzu-e7733544779f2706d108682dd027d44e7fa5ff4b.tar.zst
yuzu-e7733544779f2706d108682dd027d44e7fa5ff4b.zip
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r--src/video_core/gpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 500411176..cc65a7870 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -5,6 +5,7 @@
#pragma once
#include <memory>
+#include <stop_token>
#include "common/bit_field.h"
#include "common/common_types.h"
@@ -209,7 +210,7 @@ public:
[[nodiscard]] const VideoCore::ShaderNotify& ShaderNotify() const;
/// Allows the CPU/NvFlinger to wait on the GPU before presenting a frame.
- void WaitFence(u32 syncpoint_id, u32 value);
+ void WaitFence(u32 syncpoint_id, u32 value, std::stop_token stop_token = {});
void IncrementSyncPoint(u32 syncpoint_id);