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:
parent
dc13f48318
commit
9c26fad40e
@ -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 };
|
||||
|
@ -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 = { };
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user