Skip to content

Commit e0edf84

Browse files
authored
Merge pull request #83 from gpx1000/intellisense
Intellisense
2 parents 55de0d2 + 9b754c6 commit e0edf84

36 files changed

+174
-0
lines changed

attachments/00_base_code.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#include <memory>
2+
#ifdef __INTELLISENSE__
3+
#include <vulkan/vulkan_raii.hpp>
4+
#else
25
import vulkan_hpp;
6+
#endif
7+
#include <vulkan/vk_platform.h>
38
#include <GLFW/glfw3.h>
49

510
#include <iostream>

attachments/01_instance_creation.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
#include <cstdlib>
55
#include <memory>
66

7+
#ifdef __INTELLISENSE__
8+
#include <vulkan/vulkan_raii.hpp>
9+
#else
710
import vulkan_hpp;
11+
#endif
12+
813
#include <vulkan/vk_platform.h>
914

1015
#define GLFW_INCLUDE_VULKAN // REQUIRED only for GLFW CreateWindowSurface.

attachments/02_validation_layers.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
#include <memory>
77
#include <algorithm>
88

9+
#ifdef __INTELLISENSE__
10+
#include <vulkan/vulkan_raii.hpp>
11+
#else
912
import vulkan_hpp;
13+
#endif
14+
1015
#include <vulkan/vk_platform.h>
1116

1217
#define GLFW_INCLUDE_VULKAN // REQUIRED only for GLFW CreateWindowSurface.

attachments/03_physical_device_selection.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
#include <memory>
77
#include <algorithm>
88

9+
#ifdef __INTELLISENSE__
10+
#include <vulkan/vulkan_raii.hpp>
11+
#else
912
import vulkan_hpp;
13+
#endif
14+
1015
#include <vulkan/vk_platform.h>
1116

1217
#define GLFW_INCLUDE_VULKAN // REQUIRED only for GLFW CreateWindowSurface.

attachments/04_logical_device.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
#include <memory>
88
#include <algorithm>
99

10+
#ifdef __INTELLISENSE__
11+
#include <vulkan/vulkan_raii.hpp>
12+
#else
1013
import vulkan_hpp;
14+
#endif
15+
1116
#include <vulkan/vk_platform.h>
1217

1318
#define GLFW_INCLUDE_VULKAN // REQUIRED only for GLFW CreateWindowSurface.

attachments/05_window_surface.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
#include <memory>
77
#include <algorithm>
88

9+
#ifdef __INTELLISENSE__
10+
#include <vulkan/vulkan_raii.hpp>
11+
#else
912
import vulkan_hpp;
13+
#endif
14+
1015
#include <vulkan/vk_platform.h>
1116

1217
#define GLFW_INCLUDE_VULKAN // REQUIRED only for GLFW CreateWindowSurface.

attachments/06_swap_chain_creation.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
#include <algorithm>
88
#include <limits>
99

10+
#ifdef __INTELLISENSE__
11+
#include <vulkan/vulkan_raii.hpp>
12+
#else
1013
import vulkan_hpp;
14+
#endif
15+
1116
#include <vulkan/vk_platform.h>
1217

1318
#define GLFW_INCLUDE_VULKAN // REQUIRED only for GLFW CreateWindowSurface.

attachments/07_image_views.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
#include <algorithm>
88
#include <limits>
99

10+
#ifdef __INTELLISENSE__
11+
#include <vulkan/vulkan_raii.hpp>
12+
#else
1013
import vulkan_hpp;
14+
#endif
15+
1116
#include <vulkan/vk_platform.h>
1217

1318
#define GLFW_INCLUDE_VULKAN // REQUIRED only for GLFW CreateWindowSurface.

attachments/08_graphics_pipeline.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
#include <algorithm>
88
#include <limits>
99

10+
#ifdef __INTELLISENSE__
11+
#include <vulkan/vulkan_raii.hpp>
12+
#else
1013
import vulkan_hpp;
14+
#endif
15+
1116
#include <vulkan/vk_platform.h>
1217

1318
#define GLFW_INCLUDE_VULKAN // REQUIRED only for GLFW CreateWindowSurface.

attachments/09_shader_modules.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
#include <algorithm>
99
#include <limits>
1010

11+
#ifdef __INTELLISENSE__
12+
#include <vulkan/vulkan_raii.hpp>
13+
#else
1114
import vulkan_hpp;
15+
#endif
16+
1217
#include <vulkan/vk_platform.h>
1318

1419
#define GLFW_INCLUDE_VULKAN // REQUIRED only for GLFW CreateWindowSurface.

0 commit comments

Comments
 (0)