Closed Krenodeno closed 5 years ago
Sure, it's possible to create a helper for things like this but I don't think it's worth mentioning in the tutorial.
The main reason for me is reducing code duplication, and it's quite convenient. But if it's not worth mentioning, I'll just close the issue. Thank you.
I didn't intend to come across as rude but instructions about code style are somewhat outside the scope of the tutorial, which is also why the code is one big C++ file. It's more about understanding the Vulkan API and interacting with it.
I get your point, no problem. By the way, the tutorial is great, you do a great job.
Hi, There are several use of the same little piece of code in the case of filling buffer with data, like for staging vertex buffers, uniform buffers and image buffers...
Why not creating a little helper for that matter ? It could look like this: