1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-21 02:52:10 +01:00
dxvk/src/dxgi/dxgi_options.h

37 lines
838 B
C
Raw Normal View History

2018-05-24 12:31:04 +02:00
#pragma once
#include "../util/config/config.h"
#include "../dxvk/dxvk_include.h"
2018-05-24 12:31:04 +02:00
#include "dxgi_include.h"
namespace dxvk {
2018-05-24 12:31:04 +02:00
/**
* \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 nvapi workaround
bool nvapiHack;
2018-05-24 12:31:04 +02:00
};
}