Can't always provide Win32Monitor
handle when full_screen_exclusive
is not FullScreenExclusive::Default
#2477
Labels
Win32Monitor
handle when full_screen_exclusive
is not FullScreenExclusive::Default
#2477
0.34
Windows
NVIDIA GeForce GTX 1080
GeForce Game Ready Driver 536.23
Issue
Currently when a
full_screen_exclusive
value other thanFullScreenExclusive::Default
is provided inSurfaceInfo
orSwapchainCreateInfo
, Vulkan will output a validation error if aWin32Monitor
handle is not provided.Vulkano however expects that if and only if
full_screen_exclusive
isFullScreenExclusive::ApplicationControlled
should aWin32Monitor
handle also be provided.Since Vulkano will not let you provide a
Win32Monitor
handle alongside otherfull_screen_exclusive
values likeFullScreenExclusive::Allowed
orFullScreenExclusive::Disallowed
, it is impossible to use these values without triggering the following validation error:As the Vulkan spec states (for surface capabilities):
Note that it makes no mention of
VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT
specifically.As far as I'm aware, the fix would be to update these conditional checks (these are only the ones that I know of in Vulkano, but maybe there are more?):
https://github.com/vulkano-rs/vulkano/blob/master/vulkano/src/device/physical.rs#L2412
https://github.com/vulkano-rs/vulkano/blob/master/vulkano/src/device/physical.rs#L2683
https://github.com/vulkano-rs/vulkano/blob/master/vulkano/src/swapchain/mod.rs#L609-L610
https://github.com/vulkano-rs/vulkano/blob/master/vulkano/src/swapchain/mod.rs#L633-L634
To instead be:
The text was updated successfully, but these errors were encountered: