From c3aecd336b6aee4a10103c7e52c9f6b7b8259b86 Mon Sep 17 00:00:00 2001 From: chyyran Date: Sun, 29 Jan 2023 01:25:22 -0500 Subject: [PATCH] vk: remove debug from hello triangle example --- librashader-runtime-vk/src/hello_triangle/vulkan_base.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/librashader-runtime-vk/src/hello_triangle/vulkan_base.rs b/librashader-runtime-vk/src/hello_triangle/vulkan_base.rs index 0ec2ae8..42fb58c 100644 --- a/librashader-runtime-vk/src/hello_triangle/vulkan_base.rs +++ b/librashader-runtime-vk/src/hello_triangle/vulkan_base.rs @@ -17,7 +17,7 @@ pub struct VulkanBase { pub instance: ash::Instance, pub device: Arc, pub graphics_queue: vk::Queue, - pub debug: VulkanDebug, + // pub debug: VulkanDebug, pub physical_device: vk::PhysicalDevice, pub mem_props: vk::PhysicalDeviceMemoryProperties, } @@ -50,7 +50,7 @@ impl VulkanBase { let instance = unsafe { entry.create_instance(&create_info, None)? }; - let debug = VulkanDebug::new(&entry, &instance, Some(vulkan_debug_callback))?; + // let debug = VulkanDebug::new(&entry, &instance, Some(vulkan_debug_callback))?; let physical_device = pick_physical_device(&instance); @@ -68,7 +68,7 @@ impl VulkanBase { graphics_queue: queue, physical_device, mem_props, - debug, + // debug, }) } @@ -101,7 +101,7 @@ impl VulkanBase { let device_create_info = vk::DeviceCreateInfo::builder() .queue_create_infos(&queue_info) - .enabled_layer_names(&debug) + // .enabled_layer_names(&debug) .enabled_extension_names(&extensions) .push_next(&mut physical_device_features) // .enabled_features(&physical_device_features)