blob: e49bb61eddb61c3fc01802099d1e7e53b34bc521 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
#pragma once
#include "../util/config/config.h"
#include "../dxvk/dxvk_device.h"
#include "d3d9_include.h"
namespace dxvk {
struct D3D9Options {
D3D9Options(const Rc<DxvkDevice>& device, 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;
std::string customDeviceDesc;
/// Present interval. Overrides the value
/// in D3DPRESENT_PARAMS used in swapchain present.
int32_t presentInterval;
/// Override maximum frame latency if the app specifies
/// a higher value. May help with frame timing issues.
int32_t maxFrameLatency;
/// Limit frame rate
int32_t maxFrameRate;
/// Set the max shader model the device can support in the caps.
int32_t shaderModel;
/// Whether or not managed resources should stay in memory until unlock, or until manually evicted.
bool evictManagedOnUnlock;
/// Whether or not to set the process as DPI aware in Windows when the API interface is created.
bool dpiAware;
/// True: Copy our constant set into UBO if we are relative indexing ever.
/// False: Copy our constant set into UBO if we are relative indexing at the start of a defined constant
/// Why?: In theory, FXC should never generate code where this would be an issue.
bool strictConstantCopies;
/// Whether or not we should care about pow(0, 0) = 1
bool strictPow;
/// Whether or not to do a fast path clear if we're close enough to the whole render target.
bool lenientClear;
/// Back buffer count for the Vulkan swap chain.
/// Overrides buffer count in present parameters.
int32_t numBackBuffers;
/// Don't create an explicit front buffer in our own swapchain. The Vulkan swapchain is unaffected.
/// Some games don't handle front/backbuffer flipping very well because they don't always redraw
/// each frame completely, and rely on old pixel data from the previous frame to still be there.
/// When this option is set and a game only requests one backbuffer, there will be no flipping in
/// our own swapchain, so the game will always draw to the same buffer and can rely on old pixel
/// data to still be there after a Present call.
/// This means that D3D9SwapChainEx::GetFrontBufferData returns data from the backbuffer of the
/// previous frame, which is the same as the current backbuffer if only 1 backbuffer was requested.
bool noExplicitFrontBuffer;
/// Defer surface creation
bool deferSurfaceCreation;
/// Whether to transition to general
/// for rendering hazards
bool generalHazards;
/// Anisotropic filter override
///
/// Enforces anisotropic filtering with the
/// given anisotropy value for all samplers.
int32_t samplerAnisotropy;
/// Max available memory override
///
/// Changes the max initial value used in
/// tracking and GetAvailableTextureMem
uint32_t maxAvailableMemory;
/// D3D9 Floating Point Emulation (anything * 0 = 0)
bool d3d9FloatEmulation;
/// Support the DF16 & DF24 texture format
bool supportDFFormats;
/// Support X4R4G4B4
bool supportX4R4G4B4;
/// Support D32
bool supportD32;
/// SWVP Constant Limits
int32_t swvpFloatCount;
int32_t swvpIntCount;
int32_t swvpBoolCount;
/// Disable D3DFMT_A8 for render targets.
/// Specifically to work around a game
/// bug in The Sims 2 that happens on native too!
bool disableA8RT;
/// Work around a NV driver quirk
/// Fixes flickering/z-fighting in some games.
bool invariantPosition;
/// Whether or not to respect memory tracking for
/// failing resource allocation.
bool memoryTrackTest;
/// Support VCACHE query
bool supportVCache;
/// Forced aspect ratio, disable other modes
std::string forceAspectRatio;
/// Enable dialog mode (ie. no exclusive fullscreen)
bool enableDialogMode;
/// Always use a spec constant to determine sampler type (instead of just in PS 1.x)
/// Works around a game bug in Halo CE where it gives cube textures to 2d/volume samplers
bool forceSamplerTypeSpecConstants;
/// Forces an MSAA level on the swapchain
int32_t forceSwapchainMSAA;
/// Allow D3DLOCK_DONOTWAIT
bool allowDoNotWait;
/// Allow D3DLOCK_DISCARD
bool allowDiscard;
/// Enumerate adapters by displays
bool enumerateByDisplays;
/// Should we make our Mads a FFma or do it the long way with an FMul and an FAdd?
/// This solves some rendering bugs in games that have z-pass shaders which
/// don't match entirely to the regular vertex shader in this way.
bool longMad;
/// Tear-free mode if vsync is disabled
/// Tearing mode if vsync is enabled
Tristate tearFree;
/// Workaround for games using alpha test == 1.0, etc due to wonky interpolation or
/// misc. imprecision on some vendors
bool alphaTestWiggleRoom;
/// Apitrace mode: Maps all buffers in cached memory.
bool apitraceMode;
/// Use device local memory for constant buffers.
bool deviceLocalConstantBuffers;
};
}
|