mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-04 01:29:26 +01:00
31 lines
702 B
C
31 lines
702 B
C
|
#pragma once
|
||
|
|
||
|
#include "dxgi_include.h"
|
||
|
|
||
|
namespace dxvk {
|
||
|
|
||
|
/**
|
||
|
* \brief DXGI options
|
||
|
*
|
||
|
* Per-app options that control the
|
||
|
* behaviour of some DXGI classes.
|
||
|
*/
|
||
|
enum class DxgiOption : uint64_t {
|
||
|
/// 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.
|
||
|
DeferSurfaceCreation,
|
||
|
};
|
||
|
|
||
|
using DxgiOptions = Flags<DxgiOption>;
|
||
|
|
||
|
/**
|
||
|
* \brief Gets app-specific DXGI options
|
||
|
*
|
||
|
* \param [in] appName Application name
|
||
|
* \returns DXGI options for this application
|
||
|
*/
|
||
|
DxgiOptions getDxgiAppOptions(const std::string& appName);
|
||
|
|
||
|
}
|