[host] d12: pass back rotation metadata to the client

This commit is contained in:
Geoffrey McRae
2024-02-28 05:54:40 +11:00
parent 57ac020c8c
commit c7f1aadb9e
3 changed files with 38 additions and 10 deletions

View File

@@ -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