Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

Persistent mapping for uniform buffers#3

Closed
SaschaWillems wants to merge 7 commits intoKhronosGroup:masterfrom
SaschaWillems:memory_mapping
Closed

Persistent mapping for uniform buffers#3
SaschaWillems wants to merge 7 commits intoKhronosGroup:masterfrom
SaschaWillems:memory_mapping

Conversation

@SaschaWillems
Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Collaborator

@charles-lunarg charles-lunarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look exactly how I'd expect them to.

@SaschaWillems
Copy link
Copy Markdown
Collaborator Author

Since this is a minor PR I have submitted it to the official repository: Overv#310

I've seen several people new to Vulkan adopt the old way of mapping and unmapping per frame, and this PR should hopefully stop people from doing that in the future.

@charles-lunarg
Copy link
Copy Markdown
Collaborator

Going to close this PR since the main one was merged!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants