We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2fbb49 commit 6c744abCopy full SHA for 6c744ab
examples/vklTutorialGPU.cpp
@@ -7,6 +7,10 @@
7
#include <iomanip>
8
#include <iostream>
9
10
+#if defined(_MSC_VER)
11
+#include <windows.h> // Sleep
12
+#endif
13
+
14
// setup specialization constant for feature flags
15
static_assert(std::is_trivially_copyable<VKLFeatureFlags>::value);
16
@@ -396,5 +400,11 @@ int main()
396
400
397
401
std::cout << "complete." << std::endl;
398
402
403
404
+ // On Windows, sleep for a few seconds so the terminal window doesn't close
405
+ // immediately.
406
+ Sleep(3000);
407
408
399
409
return 0;
410
}
0 commit comments