Layers which contain an API version where the variant value is non zero are not
designed for the Vulkan-Loader, so it should be ignored.
props->disable_env_var.value[sizeof(props->disable_env_var.value) - 1] = '\0';
}
+ // Make sure the layer's manifest doesn't contain a non zero variant value
+ if (VK_API_VERSION_VARIANT(props->info.specVersion) != 0) {
+ loader_log(inst, VULKAN_LOADER_INFO_BIT | VULKAN_LOADER_DRIVER_BIT, 0,
+ "Layer %s has an \'api_version\' field which contains a non-zero variant value of %d. "
+ " Skipping Layer.",
+ props->info.layerName, VK_API_VERSION_VARIANT(props->info.specVersion));
+ goto out;
+ }
+
// Now get all optional items and objects and put in list:
// functions
// instance_extensions