mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +01:00
[d3d11] Move some DXGI presenter options to D3D11
This commit is contained in:
parent
8cb4852a61
commit
64185d9be4
@ -10,6 +10,10 @@ namespace dxvk {
|
|||||||
this->fakeStreamOutSupport = config.getOption<bool>("d3d11.fakeStreamOutSupport", false);
|
this->fakeStreamOutSupport = config.getOption<bool>("d3d11.fakeStreamOutSupport", false);
|
||||||
this->maxTessFactor = config.getOption<int32_t>("d3d11.maxTessFactor", 0);
|
this->maxTessFactor = config.getOption<int32_t>("d3d11.maxTessFactor", 0);
|
||||||
this->samplerAnisotropy = config.getOption<int32_t>("d3d11.samplerAnisotropy", -1);
|
this->samplerAnisotropy = config.getOption<int32_t>("d3d11.samplerAnisotropy", -1);
|
||||||
|
this->deferSurfaceCreation = config.getOption<bool>("dxgi.deferSurfaceCreation", false);
|
||||||
|
this->numBackBuffers = config.getOption<int32_t>("dxgi.numBackBuffers", 0);
|
||||||
|
this->syncInterval = config.getOption<int32_t>("dxgi.syncInterval", -1);
|
||||||
|
this->syncMode = DxgiSyncMode(config.getOption<int32_t>("dxgi.syncMode", 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include "../util/config/config.h"
|
#include "../util/config/config.h"
|
||||||
|
|
||||||
|
#include "../dxgi/dxgi_options.h"
|
||||||
|
|
||||||
#include "d3d11_include.h"
|
#include "d3d11_include.h"
|
||||||
|
|
||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
@ -43,6 +45,22 @@ namespace dxvk {
|
|||||||
/// Enforces anisotropic filtering with the
|
/// Enforces anisotropic filtering with the
|
||||||
/// given anisotropy value for all samplers.
|
/// given anisotropy value for all samplers.
|
||||||
int32_t samplerAnisotropy;
|
int32_t samplerAnisotropy;
|
||||||
|
|
||||||
|
/// Back buffer count for the Vulkan swap chain.
|
||||||
|
/// Overrides DXGI_SWAP_CHAIN_DESC::BufferCount.
|
||||||
|
int32_t numBackBuffers;
|
||||||
|
|
||||||
|
/// Sync interval. Overrides the value
|
||||||
|
/// passed to IDXGISwapChain::Present.
|
||||||
|
int32_t syncInterval;
|
||||||
|
|
||||||
|
/// 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.
|
||||||
|
bool deferSurfaceCreation;
|
||||||
|
|
||||||
|
/// Vsync mode
|
||||||
|
DxgiSyncMode syncMode;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user