diff options
Diffstat (limited to 'src/video_core/host1x/host1x.h')
| -rw-r--r-- | src/video_core/host1x/host1x.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/video_core/host1x/host1x.h b/src/video_core/host1x/host1x.h new file mode 100644 index 000000000..2971be286 --- /dev/null +++ b/src/video_core/host1x/host1x.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | // Copyright 2022 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv3 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "common/common_types.h" | ||
| 8 | |||
| 9 | #include "video_core/host1x/syncpoint_manager.h" | ||
| 10 | |||
| 11 | namespace Tegra { | ||
| 12 | |||
| 13 | namespace Host1x { | ||
| 14 | |||
| 15 | class Host1x { | ||
| 16 | public: | ||
| 17 | Host1x() : syncpoint_manager{} {} | ||
| 18 | |||
| 19 | SyncpointManager& GetSyncpointManager() { | ||
| 20 | return syncpoint_manager; | ||
| 21 | } | ||
| 22 | |||
| 23 | const SyncpointManager& GetSyncpointManager() const { | ||
| 24 | return syncpoint_manager; | ||
| 25 | } | ||
| 26 | |||
| 27 | private: | ||
| 28 | SyncpointManager syncpoint_manager; | ||
| 29 | }; | ||
| 30 | |||
| 31 | } // namespace Host1x | ||
| 32 | |||
| 33 | } // namespace Tegra | ||