1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/src/dxgi/dxgi_options.h
Philip Rebohle 2bae3a5c8b
[d3d11] Reintroduce support for dxgi.maxFrameLatency
This option was previously ignored for some reason.
2019-01-14 18:29:25 +01:00

40 lines
891 B
C++

#pragma once
#include "../util/config/config.h"
#include "../dxvk/dxvk_include.h"
#include "dxgi_include.h"
namespace dxvk {
/**
* \brief DXGI options
*
* Per-app options that control the
* behaviour of some DXGI classes.
*/
struct DxgiOptions {
DxgiOptions(const Config& config);
/// Override PCI vendor and device IDs reported to the
/// application. This may make apps think they are running
/// on a different GPU than they do and behave differently.
int32_t customVendorId;
int32_t customDeviceId;
/// Override maximum reported VRAM size. This may be
/// useful for some 64-bit games which do not support
/// more than 4 GiB of VRAM.
VkDeviceSize maxDeviceMemory;
VkDeviceSize maxSharedMemory;
/// Enables D3D10 support
bool d3d10Enable;
/// Enables nvapi workaround
bool nvapiHack;
};
}