mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-22 08:07:50 +00:00
VI: Implement the Query transaction of IHOSBinderDriver, and stubbed some results.
This commit is contained in:
parent
4f20190c95
commit
bd76a7d7f7
2 changed files with 58 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue