Add details for VULKAN_HPP_NO_DEFAULT_DISPATCHER#2586
Open
mbechard wants to merge 1 commit into
Open
Conversation
asuessenbach
reviewed
Jun 8, 2026
asuessenbach
left a comment
Contributor
There was a problem hiding this comment.
Great text to describe VULKAN_HPP_NO_DEFAULT_DISPATCHER. Thanks a lot!
Could you please add an entry for it in the list at the top of this file?
And we try to keep it alphabetically ordered, so please move it to after the VULKAN_HPP_NO_CONSTRUCTORS entry and text.
|
|
||
| ## `VULKAN_HPP_NO_DEFAULT_DISPATCHER` | ||
|
|
||
| The last argument to almost all function calls in the Vulkan-Hpp header is an argument which defaults to the VULKAN_HPP_DEFAULT_DISPATCHER. For workflows where explicitly providing the DispatchLoader to each function call is desired (such as ones where a DispatchLoader instance is expliclty created per-device), setting this define will cause all functions to require the DispatchLoader to be explicitly passed. This allows compile-time errors for calls that accidentally omitted the DispatchLoader argument. |
Contributor
There was a problem hiding this comment.
Just almost all?
I think, it's just all but those from the raii-namespace, right?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.