KhronosGroup / KhronosGroup/Vulkan-Docs

SurfaceCapabilities invariability

Open
#388 2 comments 0 reactions 1 assignee Claimed by @jjulianoatnv View on GitHub
Resolving Inside Khronos System Integration
Dominant language
JavaScript
Stars
3.3k
Forks
549
Avg merge
5d 5h
Merged PRs (30d)
2

Description

In one of the recent updates it was specified the results from all query commands are by default kept true for the duration of the lifetime of the parameters.

I want to ask if this is intended for `vkGetPhysicalDeviceSurfaceCapabilitiesKHR` too, which doesn't seem to have "lifetime" of its result otherwisely specified.

That would imply `VkSurfaceKHR` is no longer valid and would have to be recreated on suspected change of parameters (e.g. on `VK_ERROR_OUT_OF_DATE_KHR` and window size change). Which doesn't seem intended (with `VK_ERROR_SURFACE_LOST_KHR` also existing).

On the other hand if the results can change any time arbitrarily, Application could not be capable to adhere to Valid Usage of `VkSwapchainCreateInfoKHR`, which require the App to restrict some of its parameters to match the result from `vkGetPhysicalDeviceSurfaceCapabilitiesKHR`.

EDIT: I assume result of `vkGetPhysicalDeviceSurfacePresentModesKHR()` and `vkGetPhysicalDeviceSurfaceFormatsKHR()` never changes, otherwise same problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.