Skip to content

Commit 4b18dac

Browse files
committed
Make hte C++20 Module Optional. Still need to adjust the tutorial text for this change.
1 parent 769e70c commit 4b18dac

39 files changed

+95
-74
lines changed

attachments/00_base_code.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <memory>
2-
#ifdef __INTELLISENSE__
2+
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
33
#include <vulkan/vulkan_raii.hpp>
44
#else
55
import vulkan_hpp;

attachments/01_instance_creation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <cstdlib>
55
#include <memory>
66

7-
#ifdef __INTELLISENSE__
7+
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
88
#include <vulkan/vulkan_raii.hpp>
99
#else
1010
import vulkan_hpp;

attachments/02_validation_layers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <memory>
77
#include <algorithm>
88

9-
#ifdef __INTELLISENSE__
9+
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
1010
#include <vulkan/vulkan_raii.hpp>
1111
#else
1212
import vulkan_hpp;

attachments/03_physical_device_selection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <memory>
77
#include <algorithm>
88

9-
#ifdef __INTELLISENSE__
9+
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
1010
#include <vulkan/vulkan_raii.hpp>
1111
#else
1212
import vulkan_hpp;

attachments/04_logical_device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <memory>
88
#include <algorithm>
99

10-
#ifdef __INTELLISENSE__
10+
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
1111
#include <vulkan/vulkan_raii.hpp>
1212
#else
1313
import vulkan_hpp;

attachments/05_window_surface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <memory>
77
#include <algorithm>
88

9-
#ifdef __INTELLISENSE__
9+
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
1010
#include <vulkan/vulkan_raii.hpp>
1111
#else
1212
import vulkan_hpp;

attachments/06_swap_chain_creation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <algorithm>
99
#include <limits>
1010

11-
#ifdef __INTELLISENSE__
11+
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
1212
#include <vulkan/vulkan_raii.hpp>
1313
#else
1414
import vulkan_hpp;

attachments/07_image_views.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <limits>
99
#include <assert.h>
1010

11-
#ifdef __INTELLISENSE__
11+
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
1212
#include <vulkan/vulkan_raii.hpp>
1313
#else
1414
import vulkan_hpp;

attachments/08_graphics_pipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <limits>
99
#include <assert.h>
1010

11-
#ifdef __INTELLISENSE__
11+
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
1212
#include <vulkan/vulkan_raii.hpp>
1313
#else
1414
import vulkan_hpp;

attachments/09_shader_modules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <limits>
1010
#include <assert.h>
1111

12-
#ifdef __INTELLISENSE__
12+
#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)
1313
#include <vulkan/vulkan_raii.hpp>
1414
#else
1515
import vulkan_hpp;

0 commit comments

Comments
 (0)