Skip to content

Add details for VULKAN_HPP_NO_DEFAULT_DISPATCHER#2586

Open
mbechard wants to merge 1 commit into
KhronosGroup:mainfrom
mbechard:patch-1
Open

Add details for VULKAN_HPP_NO_DEFAULT_DISPATCHER#2586
mbechard wants to merge 1 commit into
KhronosGroup:mainfrom
mbechard:patch-1

Conversation

@mbechard

@mbechard mbechard commented Jun 3, 2026

Copy link
Copy Markdown

No description provided.

@CLAassistant

CLAassistant commented Jun 3, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@asuessenbach asuessenbach left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread docs/Configuration.md

## `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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just almost all?
I think, it's just all but those from the raii-namespace, right?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants