Skip to content

Commit 6bc04dc

Browse files
authored
Merge branch 'main' into address-resize-issue-73
2 parents 6cf1473 + 298a423 commit 6bc04dc

File tree

97 files changed

+178532
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+178532
-226
lines changed

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ temp_ebook.md
99
ebook/*.pdf
1010
ebook/*.epub
1111

12-
convert.py
12+
convert.py
13+
14+
attachments/build/**
15+
attachments/android/.gradle/**
16+
attachments/android/.idea
17+
attachments/android/.gradle/**
18+
attachments/android/app/.cxx/**
19+
attachments/android/app/build/**
20+
local.properties

antora/modules/ROOT/nav.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,13 @@
5252
* xref:15_GLTF_KTX2_Migration.adoc[Migrating to Modern Asset Formats: glTF and KTX2]
5353
* xref:16_Multiple_Objects.adoc[Rendering Multiple Objects]
5454
* xref:17_Multithreading.adoc[Multithreading]
55+
* xref:courses/18_Ray_tracing/00_Overview.adoc[Ray Tracing]
56+
** xref:courses/18_Ray_tracing/00_Overview.adoc[Overview]
57+
** xref:courses/18_Ray_tracing/01_Dynamic_rendering.adoc[Dynamic rendering]
58+
** xref:courses/18_Ray_tracing/02_Acceleration_structures.adoc[Acceleration structures]
59+
** xref:courses/18_Ray_tracing/03_Ray_query_shadows.adoc[Ray query shadows]
60+
** xref:courses/18_Ray_tracing/04_TLAS_animation.adoc[TLAS animation]
61+
** xref:courses/18_Ray_tracing/05_Shadow_transparency.adoc[Shadow transparency]
62+
** xref:courses/18_Ray_tracing/06_Reflections.adoc[Reflections]
63+
** xref:courses/18_Ray_tracing/07_Conclusion.adoc[Conclusion]
5564
* xref:90_FAQ.adoc[FAQ]

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: 2 additions & 2 deletions
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;
@@ -267,7 +267,7 @@ class HelloTriangleApplication {
267267
}
268268

269269
void createImageViews() {
270-
swapChainImageViews.clear();
270+
assert(swapChainImageViews.empty());
271271

272272
vk::ImageViewCreateInfo imageViewCreateInfo{ .viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format,
273273
.subresourceRange = { vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1 } };

0 commit comments

Comments
 (0)