1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[vulkan] Add feature bit for exclusive fullscreen control

This commit is contained in:
Philip Rebohle 2019-12-03 02:03:22 +01:00
parent dc13f48318
commit 9c26fad40e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 9 additions and 0 deletions

View File

@ -412,6 +412,7 @@ namespace dxvk {
presenterDevice.queueFamily = graphicsQueue.queueFamily;
presenterDevice.queue = graphicsQueue.queueHandle;
presenterDevice.adapter = m_device->adapter()->handle();
presenterDevice.features.fullScreenExclusive = m_device->extensions().extFullScreenExclusive;
vk::PresenterDesc presenterDesc;
presenterDesc.imageExtent = { m_desc.Width, m_desc.Height };

View File

@ -41,6 +41,13 @@ namespace dxvk::vk {
VkExtent2D imageExtent;
uint32_t imageCount;
};
/**
* \brief Presenter features
*/
struct PresenterFeatures {
bool fullScreenExclusive : 1;
};
/**
* \brief Adapter and queue
@ -49,6 +56,7 @@ namespace dxvk::vk {
uint32_t queueFamily = 0;
VkQueue queue = VK_NULL_HANDLE;
VkPhysicalDevice adapter = VK_NULL_HANDLE;
PresenterFeatures features = { };
};
/**