Overv / VulkanTutorial

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

Persistent mapping for uniform buffers #310

Closed SaschaWillems closed 1 year ago

SaschaWillems commented 1 year ago

This PR changes how the tutorial maps uniform buffers for updating. Instead of mapping and unmapping each frame, they are now mapped once after creation ("persistent mapping").

The PR updates both the tutorial chapter (that talks about ubos) and all code snippets that make use of ubos.

Overv commented 1 year ago

Sorry for not reviewing earlier, I was on a holiday.