1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00

[d3d11] Move some DXGI presenter options to D3D11

This commit is contained in:
Philip Rebohle 2018-10-22 22:41:54 +02:00
parent 8cb4852a61
commit 64185d9be4
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 22 additions and 0 deletions

View File

@ -10,6 +10,10 @@ namespace dxvk {
this->fakeStreamOutSupport = config.getOption<bool>("d3d11.fakeStreamOutSupport", false);
this->maxTessFactor = config.getOption<int32_t>("d3d11.maxTessFactor", 0);
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));
}
}

View File

@ -2,6 +2,8 @@
#include "../util/config/config.h"
#include "../dxgi/dxgi_options.h"
#include "d3d11_include.h"
namespace dxvk {
@ -43,6 +45,22 @@ namespace dxvk {
/// Enforces anisotropic filtering with the
/// given anisotropy value for all samplers.
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;
};
}