2018-05-24 12:31:04 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-08-07 14:47:06 +02:00
|
|
|
#include "../util/config/config.h"
|
|
|
|
|
2018-05-24 12:31:04 +02:00
|
|
|
#include "dxgi_include.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief DXGI options
|
|
|
|
*
|
|
|
|
* Per-app options that control the
|
|
|
|
* behaviour of some DXGI classes.
|
|
|
|
*/
|
2018-08-07 14:47:06 +02:00
|
|
|
struct DxgiOptions {
|
|
|
|
DxgiOptions(const Config& config);
|
|
|
|
|
2018-05-24 12:31:04 +02:00
|
|
|
/// Defer surface creation until first present call. This
|
|
|
|
/// fixes issues with games that create multiple swap chains
|
|
|
|
/// for a single window that may interfere with each other.
|
2018-08-07 14:47:06 +02:00
|
|
|
bool deferSurfaceCreation;
|
2018-07-20 13:49:07 +02:00
|
|
|
|
|
|
|
/// Report to the app that Dx10 interfaces are supported,
|
|
|
|
/// even if they are not actually supported. Some apps
|
|
|
|
/// refuse to start without it, some don't work with it.
|
2018-08-07 14:47:06 +02:00
|
|
|
bool fakeDx10Support;
|
|
|
|
|
|
|
|
/// Override maximum frame latency if the app specifies
|
|
|
|
/// a higher value. May help with frame timing issues.
|
|
|
|
int32_t maxFrameLatency;
|
2018-05-24 12:31:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|