diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-19 06:36:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 06:36:53 +0100 |
commit | 8615509c4054f497fbd6ed9a7adee5a998597905 (patch) | |
tree | 293bff8e944c2ca632524e39bbfba33d6475af16 /src/core/hle/service/vi/display.h | |
parent | Merge pull request #13048 from liamwhite/new-shell (diff) | |
parent | nvnflinger: check for layers before compose (diff) | |
download | yuzu-8615509c4054f497fbd6ed9a7adee5a998597905.tar yuzu-8615509c4054f497fbd6ed9a7adee5a998597905.tar.gz yuzu-8615509c4054f497fbd6ed9a7adee5a998597905.tar.bz2 yuzu-8615509c4054f497fbd6ed9a7adee5a998597905.tar.lz yuzu-8615509c4054f497fbd6ed9a7adee5a998597905.tar.xz yuzu-8615509c4054f497fbd6ed9a7adee5a998597905.tar.zst yuzu-8615509c4054f497fbd6ed9a7adee5a998597905.zip |
Diffstat (limited to 'src/core/hle/service/vi/display.h')
-rw-r--r-- | src/core/hle/service/vi/display.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/core/hle/service/vi/display.h b/src/core/hle/service/vi/display.h new file mode 100644 index 000000000..fceda75e3 --- /dev/null +++ b/src/core/hle/service/vi/display.h @@ -0,0 +1,44 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "core/hle/service/vi/vi_types.h" + +namespace Service::VI { + +class Display { +public: + constexpr Display() = default; + + void Initialize(u64 id, const DisplayName& display_name) { + m_id = id; + m_display_name = display_name; + m_is_initialized = true; + } + + void Finalize() { + m_id = {}; + m_display_name = {}; + m_is_initialized = {}; + } + + u64 GetId() const { + return m_id; + } + + const DisplayName& GetDisplayName() const { + return m_display_name; + } + + bool IsInitialized() const { + return m_is_initialized; + } + +private: + u64 m_id{}; + DisplayName m_display_name{}; + bool m_is_initialized{}; +}; + +} // namespace Service::VI |