Add the Vulkan loader as an optional dependency and use it on Mac

On macOS we can't rely on having the Vulkan loader installed in the
system. So we add the Vulkan loader as an optional dependency of Dawn
and use it on macOS when building Dawn in standalone with Vulkan
support.

Usage of building our own loader might broaden if the loader gains
features that are useful on other OSes. For example the ability to pass
in the "root ICD" entrypoint to the loader so we can have both
Swiftshader and the system driver at the same time.

Bug: dawn:388

Change-Id: I7ade4961cce0463c66846ad17aebf95224f1afcc
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19723
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez
2020-04-17 08:22:25 +00:00
committed by Commit Bot service account
parent 53f694b34a
commit 0925720ecb
8 changed files with 55 additions and 23 deletions

1
.gitignore vendored
View File

@@ -23,6 +23,7 @@ third_party/swiftshader/
third_party/spirv-cross/
third_party/spirv-headers/
third_party/vulkan-headers/
third_party/vulkan-loader/
third_party/vulkan-validation-layers/
tools
out