diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-09-26 03:20:36 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-09-26 03:33:36 +0200 |
commit | 41e855bd427e07ade6b9292e12bbe5a7c4e76a69 (patch) | |
tree | a270ca94eabc45a52af899e70c1d72e8ab5b18be /src/core/hle/service/nvflinger/nvflinger.h | |
parent | service: vi: Move VI results into its own file (diff) | |
download | yuzu-41e855bd427e07ade6b9292e12bbe5a7c4e76a69.tar yuzu-41e855bd427e07ade6b9292e12bbe5a7c4e76a69.tar.gz yuzu-41e855bd427e07ade6b9292e12bbe5a7c4e76a69.tar.bz2 yuzu-41e855bd427e07ade6b9292e12bbe5a7c4e76a69.tar.lz yuzu-41e855bd427e07ade6b9292e12bbe5a7c4e76a69.tar.xz yuzu-41e855bd427e07ade6b9292e12bbe5a7c4e76a69.tar.zst yuzu-41e855bd427e07ade6b9292e12bbe5a7c4e76a69.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h index 044ac6ac8..3bbe5d92b 100644 --- a/src/core/hle/service/nvflinger/nvflinger.h +++ b/src/core/hle/service/nvflinger/nvflinger.h @@ -11,6 +11,7 @@ #include <vector> #include "common/common_types.h" +#include "core/hle/result.h" #include "core/hle/service/kernel_helpers.h" namespace Common { @@ -71,8 +72,9 @@ public: /// Gets the vsync event for the specified display. /// - /// If an invalid display ID is provided, then nullptr is returned. - [[nodiscard]] Kernel::KReadableEvent* FindVsyncEvent(u64 display_id); + /// If an invalid display ID is provided, then VI::ResultNotFound is returned. + /// If the vsync event has already been retrieved, then VI::ResultPermissionDenied is returned. + [[nodiscard]] ResultVal<Kernel::KReadableEvent*> FindVsyncEvent(u64 display_id); /// Performs a composition request to the emulated nvidia GPU and triggers the vsync events when /// finished. |