Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60a5b2c

Browse files
committed
Update the code to reference the new VK_LAYER_KHRONOS_validation validation layer
1 parent 36ffe31 commit 60a5b2c

29 files changed

Lines changed: 30 additions & 32 deletions

03_Drawing_a_triangle/00_Setup/02_Validation_layers.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ device level, which we'll see [later on](!Drawing_a_triangle/Setup/Logical_devic
6868
6969
In this section we'll see how to enable the standard diagnostics layers provided
7070
by the Vulkan SDK. Just like extensions, validation layers need to be enabled by
71-
specifying their name. Instead of having to explicitly specify all of the useful
72-
layers, the SDK allows you to request the `VK_LAYER_LUNARG_standard_validation`
73-
layer that implicitly enables a whole range of useful diagnostics layers.
71+
specifying their name. All of the useful standard validation is bundled into a layer included in the SDK that is known as `VK_LAYER_KHRONOS_validation`.
7472
7573
Let's first add two configuration variables to the program to specify the layers
7674
to enable and whether to enable them or not. I've chosen to base that value on
@@ -82,7 +80,7 @@ const int WIDTH = 800;
8280
const int HEIGHT = 600;
8381
8482
const std::vector<const char*> validationLayers = {
85-
"VK_LAYER_LUNARG_standard_validation"
83+
"VK_LAYER_KHRONOS_validation"
8684
};
8785
8886
#ifdef NDEBUG

code/02_validation_layers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const int WIDTH = 800;
1111
const int HEIGHT = 600;
1212

1313
const std::vector<const char*> validationLayers = {
14-
"VK_LAYER_LUNARG_standard_validation"
14+
"VK_LAYER_KHRONOS_validation"
1515
};
1616

1717
#ifdef NDEBUG

code/03_physical_device_selection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const int WIDTH = 800;
1212
const int HEIGHT = 600;
1313

1414
const std::vector<const char*> validationLayers = {
15-
"VK_LAYER_LUNARG_standard_validation"
15+
"VK_LAYER_KHRONOS_validation"
1616
};
1717

1818
#ifdef NDEBUG

code/04_logical_device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const int WIDTH = 800;
1212
const int HEIGHT = 600;
1313

1414
const std::vector<const char*> validationLayers = {
15-
"VK_LAYER_LUNARG_standard_validation"
15+
"VK_LAYER_KHRONOS_validation"
1616
};
1717

1818
#ifdef NDEBUG

code/05_window_surface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const int WIDTH = 800;
1313
const int HEIGHT = 600;
1414

1515
const std::vector<const char*> validationLayers = {
16-
"VK_LAYER_LUNARG_standard_validation"
16+
"VK_LAYER_KHRONOS_validation"
1717
};
1818

1919
#ifdef NDEBUG

code/06_swap_chain_creation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const int WIDTH = 800;
1414
const int HEIGHT = 600;
1515

1616
const std::vector<const char*> validationLayers = {
17-
"VK_LAYER_LUNARG_standard_validation"
17+
"VK_LAYER_KHRONOS_validation"
1818
};
1919

2020
const std::vector<const char*> deviceExtensions = {

code/07_image_views.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const int WIDTH = 800;
1414
const int HEIGHT = 600;
1515

1616
const std::vector<const char*> validationLayers = {
17-
"VK_LAYER_LUNARG_standard_validation"
17+
"VK_LAYER_KHRONOS_validation"
1818
};
1919

2020
const std::vector<const char*> deviceExtensions = {

code/08_graphics_pipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const int WIDTH = 800;
1414
const int HEIGHT = 600;
1515

1616
const std::vector<const char*> validationLayers = {
17-
"VK_LAYER_LUNARG_standard_validation"
17+
"VK_LAYER_KHRONOS_validation"
1818
};
1919

2020
const std::vector<const char*> deviceExtensions = {

code/09_shader_modules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const int WIDTH = 800;
1515
const int HEIGHT = 600;
1616

1717
const std::vector<const char*> validationLayers = {
18-
"VK_LAYER_LUNARG_standard_validation"
18+
"VK_LAYER_KHRONOS_validation"
1919
};
2020

2121
const std::vector<const char*> deviceExtensions = {

code/10_fixed_functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const int WIDTH = 800;
1515
const int HEIGHT = 600;
1616

1717
const std::vector<const char*> validationLayers = {
18-
"VK_LAYER_LUNARG_standard_validation"
18+
"VK_LAYER_KHRONOS_validation"
1919
};
2020

2121
const std::vector<const char*> deviceExtensions = {

0 commit comments

Comments
 (0)