Nabla
Nabla copied to clipboard
Update setWindowSize & other window manager functions to ignore callback
Description
Currently, when resizing the window using the API call (setWindowSize) calls the event callback, but the result is unused as it doesn't stop the resize; Then, the event callback is called again, potentially with a new size including window borders and other possible calculations from Windows.
The maximum size returned by the surface capabilities should be taken into account when recreating the swapchain, as is done in the sister PR.
Sister PR: https://github.com/Devsh-Graphics-Programming/Nabla-Examples-and-Tests/pull/19
Testing
Example 09 was tested to not log the resizes twice.