Closed jaebaek closed 5 years ago
shader_runner does the following for GL and GLSL:
[require]
GL >= 4.5
GLSL >= 4.50
Probably something like this is enough:
[require]
vulkan 1.1.70
It might be worth clarifying what this option would do. I guess it would be the following:
VkInstanceCreateInfo.apiVersion
during the context creation.VR_RESULT_SKIP
if it can’t find a device that supports that version.--target-env
option for the GLSL compiler so that it can generate SPIRV-1.3 or use whatever features from Vulkan 1.1.precompile-script.py
With the latest commits vkrunner allows selecting the version in the [require] section like follows:
[require]
vulkan <major>.<minor>.<patch>
and so I am closing this issue.
If we provide users with an option to set the version of vulkan e.g., 1.0 or 1.1 in VkRunner script, it would be nice. For example:
or