forked from ruslo/hunter
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add 'Vulkan-Headers' package * Update version * Update PR number * fix docs for Vulkan and SPIRV Headers
- Loading branch information
Showing
6 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) 2019, Rahul Sheth | ||
# All rights reserved. | ||
|
||
# !!! DO NOT PLACE HEADER GUARDS HERE !!! | ||
|
||
include(hunter_add_version) | ||
include(hunter_cacheable) | ||
include(hunter_cmake_args) | ||
include(hunter_download) | ||
include(hunter_pick_scheme) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
Vulkan-Headers | ||
VERSION | ||
1.1.127-p0 | ||
URL | ||
"https://github.com/cpp-pm/Vulkan-Headers/archive/v1.1.127-p0.tar.gz" | ||
SHA1 | ||
6dc8553af090daafa19ccb823d6e137ec89df4bd | ||
) | ||
|
||
hunter_cmake_args( | ||
Vulkan-Headers | ||
CMAKE_ARGS | ||
VULKAN_HEADERS_SKIP_INSTALL=OFF | ||
) | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(Vulkan-Headers) | ||
hunter_download(PACKAGE_NAME Vulkan-Headers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.. spelling:: | ||
|
||
SPIRV-Headers | ||
SPIRV | ||
|
||
.. index:: | ||
single: unsorted ; SPIRV-Headers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. spelling:: | ||
|
||
Vulkan | ||
|
||
.. index:: | ||
single: graphics ; Vulkan-Headers | ||
|
||
.. _pkg.Vulkan-Headers: | ||
|
||
Vulkan-Headers | ||
============== | ||
|
||
- `Official <https://github.com/KhronosGroup/Vulkan-Headers>`__ | ||
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/Vulkan-Headers/CMakeLists.txt>`__ | ||
- Added by `Rahul Sheth <https://github.com/rbsheth>`__ (`pr-67 <https://github.com/cpp-pm/hunter/pull/67>`__) | ||
|
||
.. literalinclude:: /../examples/Vulkan-Headers/CMakeLists.txt | ||
:language: cmake | ||
:start-after: # DOCUMENTATION_START { | ||
:end-before: # DOCUMENTATION_END } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 2016-2019, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
cmake_minimum_required(VERSION 3.2) | ||
|
||
# Emulate HunterGate: | ||
# * https://github.com/hunter-packages/gate | ||
include("../common.cmake") | ||
|
||
project(download-Vulkan-Headers) | ||
|
||
# DOCUMENTATION_START { | ||
hunter_add_package(Vulkan-Headers) | ||
find_package(Vulkan-Headers CONFIG REQUIRED) | ||
|
||
add_executable(boo boo.cpp) | ||
target_link_libraries(boo PUBLIC Vulkan-Headers::Vulkan-Headers) | ||
# DOCUMENTATION_END } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <vulkan/vulkan.h> | ||
|
||
// Vertex buffer and attributes | ||
struct { | ||
VkDeviceMemory memory; | ||
VkBuffer buffer; | ||
} vertices; | ||
|
||
int main() { | ||
} |