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
Copy file name to clipboardExpand all lines: bldsys/cmake/global_options.cmake
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -33,11 +33,13 @@ endif()
33
33
34
34
if(APPLE)
35
35
cmake_minimum_required(VERSION3.24)
36
-
set(VKB_ENABLE_PORTABILITY ONCACHEBOOL"Enable portability enumeration and subset features in the framework. This is required to be set when running on Apple platforms."FORCE)
36
+
option(VKB_ENABLE_PORTABILITY"Enable portability enumeration and subset features in the framework. This is default ON for Apple platforms."ON)
37
37
38
+
# the following assumes MoltenVK is used for these cases: a) standalone deployment on macOS (i.e. set USE_MoltenVK=ON), and b) for iOS deployment
39
+
# if this assumption changes (e.g. KosmicKrisp adds standalone or iOS support), then this section will require modification to handle optionality
Copy file name to clipboardExpand all lines: docs/build.adoc
+3-22Lines changed: 3 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,33 +182,14 @@ Please make sure, when running any sample, that you either:
182
182
* Run Command Prompt or Visual Studio as administrator
183
183
____
184
184
185
-
`Step 1.` The following command will generate the VS project
186
-
187
-
----
188
-
cmake -G "Visual Studio 15 2017 Win64" -S . -Bbuild/windows
189
-
----
190
-
191
-
(Prior to CMake v3.13)
192
-
193
-
----
194
-
cmake -G "Visual Studio 15 2017 Win64" . -Bbuild/windows
195
-
----
196
-
197
-
(New in CMake v3.14.
198
-
Visual Studio 2019 must be installed)
199
-
200
-
----
201
-
cmake -G "Visual Studio 16 2019" -A x64 -S . -Bbuild/windows
202
-
----
203
-
204
-
(New in CMake v3.21.
205
-
Visual Studio 2022 must be installed)
185
+
`Step 1.` Generate the VS solution from the root of the repository
206
186
187
+
(For other VS versions please refer to https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#id15[CMake Generators])
207
188
----
208
189
cmake -G "Visual Studio 17 2022" -A x64 -S . -Bbuild/windows
209
190
----
210
191
211
-
Open the *vulkan_samples.sln* VS project inside build/windows and build with Ctrl-Shift-B. To run Vulkan Samples, use Visual Studio's Debug Properties selection and set the Debugging Command Arguments to --help. Click the "Local Windows Debugger" button and you should see the help output in the terminal. For convenience, the default setting is to run the hello_triangle sample; just edit that to your desired sample to run.
192
+
Open the *vulkan_samples.sln* or *vulkan_samples.slnx* VS solution inside *build/windows* and build with Ctrl-Shift-B. To run Vulkan Samples, use Visual Studio's Debug Properties selection and set the Debugging Command Arguments to --help. Click the "Local Windows Debugger" button and you should see the help output in the terminal. For convenience, the default setting is to run the hello_triangle sample; just edit that to your desired sample to run.
212
193
213
194
Alternatively, for command line builds use the steps below:
0 commit comments