Skip to content

Allow VK_INSTANCE_LAYERS to order implicit layers#1755

Merged
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:order_implicit_layers_in_env_vars
Aug 25, 2025
Merged

Allow VK_INSTANCE_LAYERS to order implicit layers#1755
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:order_implicit_layers_in_env_vars

Conversation

@charles-lunarg

Copy link
Copy Markdown
Collaborator

Implicit layers previously were always loaded closest to the application regardless of whether they appeared in any environment variables. This commit allows users to order implicit layers using VK_INSTANCE_LAYERS, so that if a user has put an implicit layer in that environment variable, that layer will be loaded respecting its order relative to other layers in the env-var. If VK_INSTANCE_LAYERS contains just a single implicit layer, this will cause that implicit layer to be loaded after all other implicit layers, and before any app-enabled layers.

This commit also updates the documentation to reflect the un-deprecated nature of VK_INSTANCE_LAYERS as well as other fixes related to this change.

Implicit layers previously were always loaded closest to the application regardless of
whether they appeared in any environment variables. This commit allows users to order
implicit layers using VK_INSTANCE_LAYERS, so that if a user has put an implicit layer in
that environment variable, that layer will be loaded respecting its order relative to other
layers in the env-var. If VK_INSTANCE_LAYERS contains just a single implicit layer, this
will cause that implicit layer to be loaded after all other implicit layers, and before any
app-enabled layers.

This commit also updates the documentation to reflect the un-deprecated nature of
VK_INSTANCE_LAYERS as well as other fixes related to this change.
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 504525.

@charles-lunarg charles-lunarg linked an issue Aug 8, 2025 that may be closed by this pull request
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 504542.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3146 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3146 passed.

@charles-lunarg

Copy link
Copy Markdown
Collaborator Author

Going ahead with the merge as no issues were found from anyone using it. And after a review, I am content with the state of the changes.

@charles-lunarg charles-lunarg merged commit 5c5cfd4 into KhronosGroup:main Aug 25, 2025
45 checks passed
@charles-lunarg charles-lunarg deleted the order_implicit_layers_in_env_vars branch August 25, 2025 21:35
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.

add VK_LOADER_FORCE_LAYER_ORDER to allow forced layer ordering

2 participants