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: README.adoc
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,19 @@ The Khronos Vulkan^®^ Tutorial is based on the "link:https://vulkan-tutorial.co
8
8
9
9
This repository hosts the contents of the link:https://docs.vulkan.org/tutorial/latest[Khronos Vulkan Tutorial]. The tutorial is part of the link:https://github.com/KhronosGroup/Vulkan-Site[Vulkan Documentation Project].
10
10
11
+
== Differences
12
+
13
+
Compared to the original tutorial, this version of the tutorial is teaching up-to-date concepts:
14
+
15
+
* Vulkan 1.4 as a baseline
16
+
* Dynamic rendering instead of render passes
17
+
* Timeline semaphores
18
+
* link:https://shader-slang.org/[Slang] as the primary shading language
19
+
* Modern C++ (20) with modules
20
+
* link:https://github.com/KhronosGroup/Vulkan-Hpp[Vulkan-Hpp] with link:https://en.wikipedia.org/wiki/Resource_acquisition_is_initialization[RAII]
21
+
22
+
It also contains Vulkan usage clarifications, improved synchronization and new content.
23
+
11
24
== Project Structure
12
25
13
26
The repository is organized into several important directories:
Copy file name to clipboardExpand all lines: attachments/03_physical_device_selection.cpp
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,12 @@
6
6
#include<memory>
7
7
#include<algorithm>
8
8
9
+
#ifdef __INTELLISENSE__
10
+
#include<vulkan/vulkan_raii.hpp>
11
+
#else
9
12
import vulkan_hpp;
13
+
#endif
14
+
10
15
#include<vulkan/vk_platform.h>
11
16
12
17
#defineGLFW_INCLUDE_VULKAN// REQUIRED only for GLFW CreateWindowSurface.
@@ -166,7 +171,7 @@ class HelloTriangleApplication {
166
171
167
172
auto features = device.templategetFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceVulkan13Features, vk::PhysicalDeviceExtendedDynamicStateFeaturesEXT>();
Copy file name to clipboardExpand all lines: attachments/04_logical_device.cpp
+22-14Lines changed: 22 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
#include<assert.h>
1
2
#include<iostream>
2
3
#include<stdexcept>
3
4
#include<vector>
@@ -6,7 +7,12 @@
6
7
#include<memory>
7
8
#include<algorithm>
8
9
10
+
#ifdef __INTELLISENSE__
11
+
#include<vulkan/vulkan_raii.hpp>
12
+
#else
9
13
import vulkan_hpp;
14
+
#endif
15
+
10
16
#include<vulkan/vk_platform.h>
11
17
12
18
#defineGLFW_INCLUDE_VULKAN// REQUIRED only for GLFW CreateWindowSurface.
@@ -170,7 +176,7 @@ class HelloTriangleApplication {
170
176
171
177
auto features = device.templategetFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceVulkan13Features, vk::PhysicalDeviceExtendedDynamicStateFeaturesEXT>();
@@ -181,7 +182,7 @@ class HelloTriangleApplication {
181
182
182
183
auto features = device.templategetFeatures2<vk::PhysicalDeviceFeatures2, vk::PhysicalDeviceVulkan13Features, vk::PhysicalDeviceExtendedDynamicStateFeaturesEXT>();
0 commit comments