commit | 18664450a11cbd8d42be051df69c7d9f9954c5b8 | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit+github@google.com> | Tue Nov 19 18:52:26 2019 +0100 |
committer | Lenny Komow <lenny@lunarg.com> | Thu Nov 21 09:44:22 2019 -0700 |
tree | f468c3b8ab7127cd4e5c1d682f7df768258a3db0 | |
parent | 79e03670c2a328bea3c1a3f80ea913f296a487e6 [diff] |
build: Fix Vulkan headers detection with CMake. The logic used to find the location of the Vulkan headers and registry used simple find_path() calls with HINTS. Unfortunately, this doesn't work when using a custom toolchain file that sets CMAKE_FIND_ROOT_PATH_INCLUDE to ONLY, which can happen when cross-compiling with a custom sysroot. This patch changes the logic so that: - If VULKAN_HEADERS_INSTALL_DIR is specified on the command-line, or if it is set in the environment, or if VULKAN_SDK is set in the environment, the corresponding paths will be searched for the Vulkan headers and register, ignoring the CMAKE_FIND_ROOT_PATH. This does not affect other parts of the build. - Otherwise, use a regular find_path() call which may be restricted to the CMAKE_FIND_ROOT_PATH depending on previous configuration settings. This should be equivalent to the previous behaviour, except when CMAKE_FIND_ROOT_PATH_INCLUDE is set to ONLY.
This project provides the Khronos official Vulkan ICD desktop loader for Windows, Linux, and MacOS.
Platform | Build Status |
---|---|
Linux/MacOS | |
Windows |
Vulkan is an explicit API, enabling direct control over how GPUs actually work. As such, Vulkan supports systems that have multiple GPUs, each running with a different driver, or ICD (Installable Client Driver). Vulkan also supports multiple global contexts (instances, in Vulkan terminology). The ICD loader is a library that is placed between a Vulkan application and any number of Vulkan drivers, in order to support multiple drivers and the instance-level functionality that works across these drivers. Additionally, the loader manages inserting Vulkan layer libraries, such as validation layers, between an application and the drivers.
This repository contains the Vulkan loader that is used for Linux, Windows, MacOS, and iOS. There is also a separate loader, maintained by Google, which is used on Android.
The following components are available in this repository:
Please see the CONTRIBUTING.md file in this repository for more details. Please see the GOVERNANCE.md file in this repository for repository management details.
BUILD.md Includes directions for building all components.
Architecture and interface information for the loader is in loader/LoaderAndLayerInterface.md.
Updates to the Vulkan-Loader
repository which correspond to a new Vulkan specification release are tagged using the following format: v<
version
>
(e.g., v1.1.96
).
Note: Marked version releases have undergone thorough testing but do not imply the same quality level as SDK tags. SDK tags follow the sdk-<
version
>.<
patch
>
format (e.g., sdk-1.1.92.0
).
This scheme was adopted following the 1.1.96 Vulkan specification release.
This work is released as open source under a Apache-style license from Khronos including a Khronos copyright.
See COPYRIGHT.txt for a full list of licenses used in this repository.
While this project has been developed primarily by LunarG, Inc., there are many other companies and individuals making this possible: Valve Corporation, funding project development; Khronos providing oversight and hosting of the project.