Overv / VulkanTutorial

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

Fix indentation of `memcpy()` lines #346

Closed Calinou closed 1 year ago

Calinou commented 1 year ago

These lines weren't aligned with the rest of the code.

Edit: This actually appears to be intentional: https://github.com/Overv/VulkanTutorial/pull/175 I'd suggest wrapping it within a { ... } block in this case, so that indentation is preserved by tools like clang-format (which I always use in my own projects :slightly_smiling_face:).

Overv commented 1 year ago

While I could add the {...} I feel like it would make the code a bit too verbose. I think that if people use an autoformatter anyway, it's better to just remove the indentation in these particular cases.

Calinou commented 1 year ago

Bump :slightly_smiling_face: What should we do about this PR?

Overv commented 1 year ago

I'd say the code should be left as is for now.