From 04a0c2e0390fd57dbaec2d713dbc103c5ff543d8 Mon Sep 17 00:00:00 2001 From: Coddeus Date: Thu, 21 Sep 2023 21:34:38 +0200 Subject: [PATCH] =?UTF-8?q?=E2=86=97=20Updated=20to=20supported=20VK=5FLAY?= =?UTF-8?q?ER=5FKHRONOS=5Fvalidation=20from=20VK=5FLAYER=5FLUNARG=5Fstanda?= =?UTF-8?q?rd=5Fvalidation,=20which=20was=20deprecated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/02_validation_layers.rs | 2 +- src/bin/02_validation_layers.rs.diff | 2 +- src/bin/03_physical_device_selection.rs | 2 +- src/bin/04_logical_device.rs | 2 +- src/bin/05_window_surface.rs | 2 +- src/bin/06_swap_chain_creation.rs | 2 +- src/bin/06_swap_chain_creation.rs.diff | 2 +- src/bin/08_graphics_pipeline.rs | 2 +- src/bin/09_shader_modules.rs | 2 +- src/bin/10_fixed_functions.rs | 2 +- src/bin/11_render_passes.rs | 2 +- src/bin/12_graphics_pipeline_complete.rs | 2 +- src/bin/13_framebuffers.rs | 2 +- src/bin/14_command_buffers.rs | 2 +- src/bin/15_hello_triangle.rs | 2 +- src/bin/16_swap_chain_recreation.rs | 2 +- src/bin/18_vertex_buffer.rs | 2 +- src/bin/19_staging_buffer.rs | 2 +- src/bin/20_index_buffer.rs | 2 +- src/bin/21_descriptor_layout_and_buffer.rs | 2 +- src/main.rs | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/bin/02_validation_layers.rs b/src/bin/02_validation_layers.rs index 2cc4024..f0a6da9 100644 --- a/src/bin/02_validation_layers.rs +++ b/src/bin/02_validation_layers.rs @@ -19,7 +19,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; #[cfg(all(debug_assertions))] diff --git a/src/bin/02_validation_layers.rs.diff b/src/bin/02_validation_layers.rs.diff index bbf3b43..212d301 100644 --- a/src/bin/02_validation_layers.rs.diff +++ b/src/bin/02_validation_layers.rs.diff @@ -12,7 +12,7 @@ const HEIGHT: u32 = 600; +const VALIDATION_LAYERS: &[&str] = &[ -+ "VK_LAYER_LUNARG_standard_validation" ++ "VK_LAYER_KHRONOS_validation" +]; + +#[cfg(all(debug_assertions))] diff --git a/src/bin/03_physical_device_selection.rs b/src/bin/03_physical_device_selection.rs index 4456a44..5837112 100644 --- a/src/bin/03_physical_device_selection.rs +++ b/src/bin/03_physical_device_selection.rs @@ -20,7 +20,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; #[cfg(all(debug_assertions))] diff --git a/src/bin/04_logical_device.rs b/src/bin/04_logical_device.rs index c74b0fe..e485fb6 100644 --- a/src/bin/04_logical_device.rs +++ b/src/bin/04_logical_device.rs @@ -21,7 +21,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; #[cfg(all(debug_assertions))] diff --git a/src/bin/05_window_surface.rs b/src/bin/05_window_surface.rs index b02d00c..9dc4393 100644 --- a/src/bin/05_window_surface.rs +++ b/src/bin/05_window_surface.rs @@ -26,7 +26,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; #[cfg(all(debug_assertions))] diff --git a/src/bin/06_swap_chain_creation.rs b/src/bin/06_swap_chain_creation.rs index 044566d..f0b4474 100644 --- a/src/bin/06_swap_chain_creation.rs +++ b/src/bin/06_swap_chain_creation.rs @@ -35,7 +35,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/06_swap_chain_creation.rs.diff b/src/bin/06_swap_chain_creation.rs.diff index 525e0c6..9c844df 100644 --- a/src/bin/06_swap_chain_creation.rs.diff +++ b/src/bin/06_swap_chain_creation.rs.diff @@ -18,7 +18,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; @@ -29,6 +38,14 @@ const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; +/// Required device extensions diff --git a/src/bin/08_graphics_pipeline.rs b/src/bin/08_graphics_pipeline.rs index a30b410..25cf5c6 100644 --- a/src/bin/08_graphics_pipeline.rs +++ b/src/bin/08_graphics_pipeline.rs @@ -35,7 +35,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/09_shader_modules.rs b/src/bin/09_shader_modules.rs index 29da4dc..f347829 100644 --- a/src/bin/09_shader_modules.rs +++ b/src/bin/09_shader_modules.rs @@ -35,7 +35,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/10_fixed_functions.rs b/src/bin/10_fixed_functions.rs index a86a3e3..54098f7 100644 --- a/src/bin/10_fixed_functions.rs +++ b/src/bin/10_fixed_functions.rs @@ -40,7 +40,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/11_render_passes.rs b/src/bin/11_render_passes.rs index 5cac78e..910b08b 100644 --- a/src/bin/11_render_passes.rs +++ b/src/bin/11_render_passes.rs @@ -44,7 +44,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/12_graphics_pipeline_complete.rs b/src/bin/12_graphics_pipeline_complete.rs index 41795be..9eb6cf9 100644 --- a/src/bin/12_graphics_pipeline_complete.rs +++ b/src/bin/12_graphics_pipeline_complete.rs @@ -46,7 +46,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/13_framebuffers.rs b/src/bin/13_framebuffers.rs index 1de5b6b..89964c8 100644 --- a/src/bin/13_framebuffers.rs +++ b/src/bin/13_framebuffers.rs @@ -48,7 +48,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/14_command_buffers.rs b/src/bin/14_command_buffers.rs index f2b2144..ce55837 100644 --- a/src/bin/14_command_buffers.rs +++ b/src/bin/14_command_buffers.rs @@ -54,7 +54,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/15_hello_triangle.rs b/src/bin/15_hello_triangle.rs index fdd4e34..06e6fca 100644 --- a/src/bin/15_hello_triangle.rs +++ b/src/bin/15_hello_triangle.rs @@ -55,7 +55,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/16_swap_chain_recreation.rs b/src/bin/16_swap_chain_recreation.rs index bab788b..e4e5f4b 100644 --- a/src/bin/16_swap_chain_recreation.rs +++ b/src/bin/16_swap_chain_recreation.rs @@ -56,7 +56,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/18_vertex_buffer.rs b/src/bin/18_vertex_buffer.rs index a73cd7c..2811f0a 100644 --- a/src/bin/18_vertex_buffer.rs +++ b/src/bin/18_vertex_buffer.rs @@ -59,7 +59,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/19_staging_buffer.rs b/src/bin/19_staging_buffer.rs index 5c93ffc..c8e9837 100644 --- a/src/bin/19_staging_buffer.rs +++ b/src/bin/19_staging_buffer.rs @@ -59,7 +59,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/20_index_buffer.rs b/src/bin/20_index_buffer.rs index 715a636..458d4a2 100644 --- a/src/bin/20_index_buffer.rs +++ b/src/bin/20_index_buffer.rs @@ -60,7 +60,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/bin/21_descriptor_layout_and_buffer.rs b/src/bin/21_descriptor_layout_and_buffer.rs index 960d742..6c2d152 100644 --- a/src/bin/21_descriptor_layout_and_buffer.rs +++ b/src/bin/21_descriptor_layout_and_buffer.rs @@ -70,7 +70,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions diff --git a/src/main.rs b/src/main.rs index 715a636..458d4a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,7 +60,7 @@ const WIDTH: u32 = 800; const HEIGHT: u32 = 600; const VALIDATION_LAYERS: &[&str] = &[ - "VK_LAYER_LUNARG_standard_validation" + "VK_LAYER_KHRONOS_validation" ]; /// Required device extensions