[host] allow user to select capture backend

This commit introduces a new option, app:capture, which can be set to
either DXGI or NvFBC to force the host application to use that backend.

This is very useful for testing DXGI on Quadro cards, which would default
to running with NvFBC.
This commit is contained in:
Quantum
2021-02-26 23:35:20 -05:00
committed by Geoffrey McRae
parent 54da11a206
commit f2c0b8c0b4
5 changed files with 39 additions and 1 deletions

View File

@@ -1023,6 +1023,7 @@ static CaptureResult dxgi_releaseFrame(void)
struct CaptureInterface Capture_DXGI =
{
.shortName = "DXGI",
.getName = dxgi_getName,
.initOptions = dxgi_initOptions,
.create = dxgi_create,

View File

@@ -427,6 +427,7 @@ static int pointerThread(void * unused)
struct CaptureInterface Capture_NVFBC =
{
.shortName = "NvFBC",
.getName = nvfbc_getName,
.initOptions = nvfbc_initOptions,