You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the future, FindVulkan.cmake might migrate to the *-config.cmake standard,
98
98
however at the time of writing it is recommended to grab FindVulkan.cmake
99
99
from VulkanSamples, as the one from Kitware is both deprecated and has bugs
100
-
in the macOS build. You will find it in the code directory [FindVulkan.
101
-
cmake](!../code/CMake/FindVulkan.cmake)
100
+
in the macOS build. You will find it in the code directory link:/attachments/CMake/FindVulkan.cmake[FindVulkan.cmake].
102
101
103
102
Using FindVulkan.cmake is a project-specific file, you can take it and make
104
103
changes as necessary to work well in your build environment, and can craft
@@ -112,8 +111,8 @@ To use it, add it to your CMAKE_MODULE_PATH like this:
112
111
----
113
112
114
113
This will allow other projects that distribute via Find*.cmake to be placed
115
-
in that same folder. See the accompanying link:/attachments/CMakeLists
116
-
.txt[Cmakelists.txt] for an example of a working project.
114
+
in that same folder. See the accompanying link:/attachments/CMakeLists.txt[CMakeLists.txt]
115
+
for an example of a working project.
117
116
118
117
Vulkan has support for C{pp} modules which became available with c{pp}20. A
119
118
large advantage of C{pp} modules is they give all the benefits of C{pp} without
@@ -298,7 +297,7 @@ The most important parts you'll need for developing Vulkan applications on
298
297
Linux are the Vulkan loader, validation layers, and a couple of command-line
299
298
utilities to test whether your machine is Vulkan-capable:
300
299
301
-
Download the VulkanSDK tarball from (https://vulkan.lunarg.com/)[LunarG].
300
+
Download the VulkanSDK tarball from https://vulkan.lunarg.com/[LunarG].
302
301
Place the uncompressed VulkanSDK in a convenient path, and create a symbolic
303
302
link to the latest on like so:
304
303
@@ -411,9 +410,9 @@ CMake project for Vulkan and write a little bit of code to make sure that
411
410
everything works.
412
411
413
412
I will assume that you already have some basic experience with CMake, like
414
-
how variables and rules work. If not, you can get up to speed very quickly with (https://cmake.org/cmake/help/book/mastering-cmake/cmake/Help/guide/tutorial/)[this tutorial].
413
+
how variables and rules work. If not, you can get up to speed very quickly with https://cmake.org/cmake/help/book/mastering-cmake/cmake/Help/guide/tutorial/[this tutorial].
415
414
416
-
You can now use the ink:/attachments/[attachments] directory in this tutorial as a template for your
415
+
You can now use the link:/attachments/[attachments] directory in this tutorial as a template for your
417
416
Vulkan projects. Make a copy, rename it to something like `HelloTriangle`
418
417
and remove all the code in `main.cpp`.
419
418
@@ -466,7 +465,7 @@ Most of the instructions here are essentially a lot of "plumbing," so we can get
466
465
Also, keep in mind that during the following instructions whenever we mention the folder `vulkansdk` we are referring to the folder where you extracted the Vulkan SDK.
467
466
468
467
We recommend using CMake everywhere, and Apple is no different. An example
469
-
of how to use CMake for Apple can be found (https://medium.com/practical-coding/migrating-to-cmake-in-c-and-getting-it-working-with-xcode-50b7bb80ae3d)[here]
468
+
of how to use CMake for Apple can be found https://medium.com/practical-coding/migrating-to-cmake-in-c-and-getting-it-working-with-xcode-50b7bb80ae3d[here]
470
469
We also have documentation for using a cmake project in Apple environments
471
470
at the VulkanSamples project. It targets both iOS and Desktop Apple.
Copy file name to clipboardExpand all lines: en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ that order with an 8-bit unsigned integer for a total of 32 bits per pixel. The
158
158
the `VK_COLOR_SPACE_SRGB_NONLINEAR_KHR` flag. Note that this flag used to be
159
159
called `VK_COLORSPACE_SRGB_NONLINEAR_KHR` in old versions of the specification.
160
160
161
-
For the color space we'll use SRGB if it is available, because it [results in more accurate perceived colors](http://stackoverflow.com/questions/12524623/). It is also pretty much the standard color space for images, like the textures we'll use later on.
161
+
For the color space we'll use SRGB if it is available, because it link:http://stackoverflow.com/questions/12524623/[results in more accurate perceived colors]. It is also pretty much the standard color space for images, like the textures we'll use later on.
162
162
Because of that we should also use an SRGB color format, of which one of the most common ones is `VK_FORMAT_B8G8R8A8_SRGB`.
163
163
164
164
Let's go through the list and see if the preferred combination is available:
@@ -267,7 +267,7 @@ resolution that best matches the window within the `minImageExtent` and
267
267
`maxImageExtent` bounds. But we must specify the resolution in the correct unit.
268
268
269
269
GLFW uses two units when measuring sizes: pixels and
0 commit comments