mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[vulkan] Simplify args to Presenter GetSupported* methods
This commit is contained in:
parent
18b0ef697c
commit
fd661d587e
2 changed files with 8 additions and 8 deletions
|
@ -116,10 +116,10 @@ namespace dxvk::vk {
|
||||||
m_device.adapter, m_surface, &caps)))
|
m_device.adapter, m_surface, &caps)))
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
if ((status = getSupportedFormats(formats, desc)))
|
if ((status = getSupportedFormats(formats, desc.fullScreenExclusive)))
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
if ((status = getSupportedPresentModes(modes, desc)))
|
if ((status = getSupportedPresentModes(modes, desc.fullScreenExclusive)))
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
// Select actual swap chain properties and create swap chain
|
// Select actual swap chain properties and create swap chain
|
||||||
|
@ -225,11 +225,11 @@ namespace dxvk::vk {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VkResult Presenter::getSupportedFormats(std::vector<VkSurfaceFormatKHR>& formats, const PresenterDesc& desc) {
|
VkResult Presenter::getSupportedFormats(std::vector<VkSurfaceFormatKHR>& formats, VkFullScreenExclusiveEXT fullScreenExclusive) const {
|
||||||
uint32_t numFormats = 0;
|
uint32_t numFormats = 0;
|
||||||
|
|
||||||
VkSurfaceFullScreenExclusiveInfoEXT fullScreenInfo = { VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT };
|
VkSurfaceFullScreenExclusiveInfoEXT fullScreenInfo = { VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT };
|
||||||
fullScreenInfo.fullScreenExclusive = desc.fullScreenExclusive;
|
fullScreenInfo.fullScreenExclusive = fullScreenExclusive;
|
||||||
|
|
||||||
VkPhysicalDeviceSurfaceInfo2KHR surfaceInfo = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR, &fullScreenInfo };
|
VkPhysicalDeviceSurfaceInfo2KHR surfaceInfo = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR, &fullScreenInfo };
|
||||||
surfaceInfo.surface = m_surface;
|
surfaceInfo.surface = m_surface;
|
||||||
|
@ -267,11 +267,11 @@ namespace dxvk::vk {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VkResult Presenter::getSupportedPresentModes(std::vector<VkPresentModeKHR>& modes, const PresenterDesc& desc) {
|
VkResult Presenter::getSupportedPresentModes(std::vector<VkPresentModeKHR>& modes, VkFullScreenExclusiveEXT fullScreenExclusive) const {
|
||||||
uint32_t numModes = 0;
|
uint32_t numModes = 0;
|
||||||
|
|
||||||
VkSurfaceFullScreenExclusiveInfoEXT fullScreenInfo = { VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT };
|
VkSurfaceFullScreenExclusiveInfoEXT fullScreenInfo = { VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT };
|
||||||
fullScreenInfo.fullScreenExclusive = desc.fullScreenExclusive;
|
fullScreenInfo.fullScreenExclusive = fullScreenExclusive;
|
||||||
|
|
||||||
VkPhysicalDeviceSurfaceInfo2KHR surfaceInfo = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR, &fullScreenInfo };
|
VkPhysicalDeviceSurfaceInfo2KHR surfaceInfo = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR, &fullScreenInfo };
|
||||||
surfaceInfo.surface = m_surface;
|
surfaceInfo.surface = m_surface;
|
||||||
|
|
|
@ -209,11 +209,11 @@ namespace dxvk::vk {
|
||||||
|
|
||||||
VkResult getSupportedFormats(
|
VkResult getSupportedFormats(
|
||||||
std::vector<VkSurfaceFormatKHR>& formats,
|
std::vector<VkSurfaceFormatKHR>& formats,
|
||||||
const PresenterDesc& desc);
|
VkFullScreenExclusiveEXT fullScreenExclusive) const;
|
||||||
|
|
||||||
VkResult getSupportedPresentModes(
|
VkResult getSupportedPresentModes(
|
||||||
std::vector<VkPresentModeKHR>& modes,
|
std::vector<VkPresentModeKHR>& modes,
|
||||||
const PresenterDesc& desc);
|
VkFullScreenExclusiveEXT fullScreenExclusive) const;
|
||||||
|
|
||||||
VkResult getSwapImages(
|
VkResult getSwapImages(
|
||||||
std::vector<VkImage>& images);
|
std::vector<VkImage>& images);
|
||||||
|
|
Loading…
Add table
Reference in a new issue