mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] dxgi: d3d12 now writes direclty into ivshmem
This is still incomplete as d3d12 doesn't have any proper sync with the captured frame and as such is still not suggested for general usage. This change though is monumental for this project as it removes a full memory copy reducing bandwidth consumption enormously.
This commit is contained in:
@@ -116,17 +116,18 @@ typedef struct CaptureInterface
|
||||
void (*initOptions )(void);
|
||||
|
||||
bool(*create)(
|
||||
void * ivshmemBase,
|
||||
CaptureGetPointerBuffer getPointerBufferFn,
|
||||
CapturePostPointerBuffer postPointerBufferFn
|
||||
);
|
||||
|
||||
bool (*init )(void);
|
||||
bool (*init )(unsigned * alignSize);
|
||||
bool (*start )(void);
|
||||
void (*stop )(void);
|
||||
bool (*deinit )(void);
|
||||
void (*free )(void);
|
||||
|
||||
CaptureResult (*capture )(void);
|
||||
CaptureResult (*capture )(unsigned frameBufferIndex, FrameBuffer * frame);
|
||||
CaptureResult (*waitFrame )(CaptureFrame * frame, const size_t maxFrameSize);
|
||||
CaptureResult (*getFrame )(FrameBuffer * frame, int frameIndex);
|
||||
}
|
||||
|
Reference in New Issue
Block a user