mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-14 03:20:22 +00:00
[host] d12: pass back rotation metadata to the client
This commit is contained in:
@@ -59,10 +59,11 @@ struct D12Backend
|
||||
ID3D12CommandQueue * commandQueue);
|
||||
|
||||
ID3D12Resource * (*fetch)(
|
||||
D12Backend * instance,
|
||||
unsigned frameBufferIndex,
|
||||
RECT ** dirtyRects,
|
||||
unsigned * nbDirtyRects);
|
||||
D12Backend * instance,
|
||||
unsigned frameBufferIndex,
|
||||
RECT ** dirtyRects,
|
||||
unsigned * nbDirtyRects,
|
||||
CaptureRotation * rotation);
|
||||
};
|
||||
|
||||
static inline bool d12_backendCreate(const D12Backend * backend,
|
||||
@@ -97,9 +98,10 @@ static inline CaptureResult d12_backendSync(D12Backend * instance,
|
||||
{ return instance->sync(instance, commandQueue); }
|
||||
|
||||
static inline ID3D12Resource * d12_backendFetch(D12Backend * instance,
|
||||
unsigned frameBufferIndex, RECT ** dirtyRects, unsigned * nbDirtyRects)
|
||||
unsigned frameBufferIndex, RECT ** dirtyRects, unsigned * nbDirtyRects,
|
||||
CaptureRotation * rotation)
|
||||
{ return instance->fetch(instance, frameBufferIndex, dirtyRects,
|
||||
nbDirtyRects); }
|
||||
nbDirtyRects, rotation); }
|
||||
|
||||
// Backend defines
|
||||
|
||||
|
Reference in New Issue
Block a user