summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/vi.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-21 23:56:06 +0100
committerGitHub <noreply@github.com>2018-01-21 23:56:06 +0100
commit2403143ff13b67d0fd63c56f45f8a5d395cd5bb9 (patch)
tree540c43ecf8997e3f2bbff7db29ac5ed6e6df1790 /src/core/hle/service/vi/vi.h
parentMerge pull request #123 from bunnei/fs (diff)
parentVI: Implement the Query transaction of IHOSBinderDriver, and stubbed some results. (diff)
downloadyuzu-2403143ff13b67d0fd63c56f45f8a5d395cd5bb9.tar
yuzu-2403143ff13b67d0fd63c56f45f8a5d395cd5bb9.tar.gz
yuzu-2403143ff13b67d0fd63c56f45f8a5d395cd5bb9.tar.bz2
yuzu-2403143ff13b67d0fd63c56f45f8a5d395cd5bb9.tar.lz
yuzu-2403143ff13b67d0fd63c56f45f8a5d395cd5bb9.tar.xz
yuzu-2403143ff13b67d0fd63c56f45f8a5d395cd5bb9.tar.zst
yuzu-2403143ff13b67d0fd63c56f45f8a5d395cd5bb9.zip
Diffstat (limited to 'src/core/hle/service/vi/vi.h')
-rw-r--r--src/core/hle/service/vi/vi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/service/vi/vi.h b/src/core/hle/service/vi/vi.h
index 81d4f3daa..4dd4d1783 100644
--- a/src/core/hle/service/vi/vi.h
+++ b/src/core/hle/service/vi/vi.h
@@ -37,6 +37,12 @@ static_assert(sizeof(IGBPBuffer) == 0x16C, "IGBPBuffer has wrong size");
class BufferQueue {
public:
+ enum class QueryType {
+ NativeWindowWidth = 0,
+ NativeWindowHeight = 1,
+ NativeWindowFormat = 2,
+ };
+
BufferQueue(u32 id, u64 layer_id);
~BufferQueue() = default;
@@ -54,6 +60,7 @@ public:
void QueueBuffer(u32 slot);
boost::optional<const Buffer&> AcquireBuffer();
void ReleaseBuffer(u32 slot);
+ u32 Query(QueryType type);
u32 GetId() const {
return id;