Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.08k stars 513 forks source link

Code snippet that introduces usage of std::max and std::min does not #include <algorithm> #225

Closed blueskymonster closed 3 years ago

blueskymonster commented 3 years ago

On the swap chain page of the tutorial, the code snippet that shows the implementation of chooseSwapExtent does not have #include <algorithm> at the top of it, even though this snippet introduces the first usage of std::max and std::min.

blueskymonster commented 3 years ago

Ah, just noticed the note after the snippet telling you to add. I leave it up to you whether to include it in the snippet then.