KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.23k stars 634 forks source link

[For discussion] Update C++ standard requirement to 20 #1167

Open SaschaWillems opened 2 weeks ago

SaschaWillems commented 2 weeks ago

I think we discussed this in one of our meetings, but wanted to write it down so we won't forget about it. Right now we use C++17, but updating to C++20 would give us e.g. designated initializes. Using them would improve code readability in many places.

Not sure if all our target platforms support C++20 though.

gary-sweet commented 4 days ago

In addition to a recent compiler toolchain, if we are thinking about using modules we would also need to bump the minimum cmake version to 3.28