KhronosGroup / KhronosGroup/Vulkan-Loader

Add environment variables to force abd order physical devices

Open
#1,788 0 comments 1 reaction 1 assignee Claimed by @charles-lunarg View on GitHub
enhancement
Dominant language
C
Stars
695
Forks
343
Avg merge
1d 1h
Merged PRs (30d)
17

Description

Vulkan Configurator allows to force a physical device and sort physical devices however using Vulkan Configurator is not convenient for people running script based tests, using environment variables and case we discussed with @artem-lunarg.

It would be great to add environment variables to force a physical device easily. There is currectly a way using the json driver filename which is not trivial to figure out even for Vulkan Configurator

- A first improvment could be to have a force physical driver environment variable that can take an integer identifying the physical device in the list. Sure, the list can change order but this is a rare occurance.
- A second improvement could be to use an identifier that could trivially be generated with Vulkan Configurator and copy pasted to the environment variable.
- A third improvment could be another environment variable used to sort the physical device. If a physical device is not in the list, it's not visible to the Vulkan applications. (matching Vulkan Loader settings file behavior)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.