diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b8cd2937..e67c54bf3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,11 @@ jobs: - run: cargo check --workspace --all-targets --all-features check_msrv: - name: Check ash, ash-window and ash-rewrite MSRV (1.69.0) + name: Check ash, ash-window and ash-rewrite MSRV (1.77.0) runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@1.69.0 + - uses: dtolnay/rust-toolchain@1.77.0 - name: Check ash, ash-window and ash-rewrite run: cargo check -p ash -p ash-rewrite -p ash-window --all-features - name: Check ash with no_std diff --git a/ash-examples/src/bin/texture.rs b/ash-examples/src/bin/texture.rs index aed7fe602..26af741d3 100644 --- a/ash-examples/src/bin/texture.rs +++ b/ash-examples/src/bin/texture.rs @@ -2,7 +2,6 @@ use std::default::Default; use std::error::Error; -use std::ffi; use std::io::Cursor; use std::mem; use std::os::raw::c_void; @@ -567,7 +566,7 @@ fn main() -> Result<(), Box> { .create_pipeline_layout(&layout_create_info, None) .unwrap(); - let shader_entry_name = ffi::CStr::from_bytes_with_nul_unchecked(b"main\0"); + let shader_entry_name = c"main"; let shader_stage_create_infos = [ vk::PipelineShaderStageCreateInfo { module: vertex_shader_module, diff --git a/ash-examples/src/bin/triangle.rs b/ash-examples/src/bin/triangle.rs index dde9c1574..455afe2cc 100644 --- a/ash-examples/src/bin/triangle.rs +++ b/ash-examples/src/bin/triangle.rs @@ -2,7 +2,6 @@ use std::default::Default; use std::error::Error; -use std::ffi; use std::io::Cursor; use std::mem; @@ -229,7 +228,7 @@ fn main() -> Result<(), Box> { .create_pipeline_layout(&layout_create_info, None) .unwrap(); - let shader_entry_name = ffi::CStr::from_bytes_with_nul_unchecked(b"main\0"); + let shader_entry_name = c"main"; let shader_stage_create_infos = [ vk::PipelineShaderStageCreateInfo { module: vertex_shader_module, diff --git a/ash-examples/src/lib.rs b/ash-examples/src/lib.rs index e1c2e2670..5b7e5eb78 100644 --- a/ash-examples/src/lib.rs +++ b/ash-examples/src/lib.rs @@ -212,11 +212,9 @@ impl ExampleBase { .build(&event_loop) .unwrap(); let entry = Entry::linked(); - let app_name = ffi::CStr::from_bytes_with_nul_unchecked(b"VulkanTriangle\0"); + let app_name = c"VulkanTriangle"; - let layer_names = [ffi::CStr::from_bytes_with_nul_unchecked( - b"VK_LAYER_KHRONOS_validation\0", - )]; + let layer_names = [c"VK_LAYER_KHRONOS_validation"]; let layers_names_raw: Vec<*const c_char> = layer_names .iter() .map(|raw_name| raw_name.as_ptr()) diff --git a/ash-window/Cargo.toml b/ash-window/Cargo.toml index fc04e14a1..ebb2f1e9d 100644 --- a/ash-window/Cargo.toml +++ b/ash-window/Cargo.toml @@ -16,7 +16,7 @@ categories = [ "rendering::graphics-api" ] edition = "2021" -rust-version = "1.69.0" +rust-version = "1.77.0" [dependencies] ash = { path = "../ash", version = "0.38", default-features = false, features = ["std"] } diff --git a/ash/Cargo.toml b/ash/Cargo.toml index faa67d4af..9121f3f89 100644 --- a/ash/Cargo.toml +++ b/ash/Cargo.toml @@ -19,7 +19,7 @@ categories = [ "rendering::graphics-api" ] edition = "2021" -rust-version = "1.69.0" +rust-version = "1.77.0" [dependencies] libloading = { version = "0.8", optional = true } diff --git a/ash/src/entry.rs b/ash/src/entry.rs index 3a26b18a9..58044216d 100644 --- a/ash/src/entry.rs +++ b/ash/src/entry.rs @@ -221,7 +221,7 @@ impl Entry { #[inline] pub unsafe fn try_enumerate_instance_version(&self) -> VkResult> { let enumerate_instance_version: Option = { - let name = ffi::CStr::from_bytes_with_nul_unchecked(b"vkEnumerateInstanceVersion\0"); + let name = c"vkEnumerateInstanceVersion"; mem::transmute((self.static_fn.get_instance_proc_addr)( vk::Instance::null(), name.as_ptr(), @@ -333,7 +333,7 @@ impl crate::StaticFn { { Ok(Self { get_instance_proc_addr: unsafe { - let cname = ffi::CStr::from_bytes_with_nul_unchecked(b"vkGetInstanceProcAddr\0"); + let cname = c"vkGetInstanceProcAddr"; let val = _f(cname); if val.is_null() { return Err(MissingEntryPoint); diff --git a/ash/src/extensions_generated.rs b/ash/src/extensions_generated.rs index e831437d5..5105daf49 100644 --- a/ash/src/extensions_generated.rs +++ b/ash/src/extensions_generated.rs @@ -94,9 +94,7 @@ pub mod amd { stringify!(cmd_draw_indirect_count_amd) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawIndirectCountAMD\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawIndirectCountAMD"); if val.is_null() { cmd_draw_indirect_count_amd } else { @@ -118,10 +116,7 @@ pub mod amd { stringify!(cmd_draw_indexed_indirect_count_amd) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdDrawIndexedIndirectCountAMD\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdDrawIndexedIndirectCountAMD"); if val.is_null() { cmd_draw_indexed_indirect_count_amd } else { @@ -218,8 +213,7 @@ pub mod amd { ) -> Result { panic!(concat!("Unable to load ", stringify!(get_shader_info_amd))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetShaderInfoAMD\0"); - let val = _f(cname); + let val = _f(c"vkGetShaderInfoAMD"); if val.is_null() { get_shader_info_amd } else { @@ -318,9 +312,7 @@ pub mod amd { stringify!(cmd_write_buffer_marker_amd) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdWriteBufferMarkerAMD\0"); - let val = _f(cname); + let val = _f(c"vkCmdWriteBufferMarkerAMD"); if val.is_null() { cmd_write_buffer_marker_amd } else { @@ -409,8 +401,7 @@ pub mod amd { stringify!(set_local_dimming_amd) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkSetLocalDimmingAMD\0"); - let val = _f(cname); + let val = _f(c"vkSetLocalDimmingAMD"); if val.is_null() { set_local_dimming_amd } else { @@ -513,10 +504,7 @@ pub mod amdx { stringify!(create_execution_graph_pipelines_amdx) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateExecutionGraphPipelinesAMDX\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateExecutionGraphPipelinesAMDX"); if val.is_null() { create_execution_graph_pipelines_amdx } else { @@ -534,10 +522,7 @@ pub mod amdx { stringify!(get_execution_graph_pipeline_scratch_size_amdx) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetExecutionGraphPipelineScratchSizeAMDX\0", - ); - let val = _f(cname); + let val = _f(c"vkGetExecutionGraphPipelineScratchSizeAMDX"); if val.is_null() { get_execution_graph_pipeline_scratch_size_amdx } else { @@ -556,10 +541,7 @@ pub mod amdx { stringify!(get_execution_graph_pipeline_node_index_amdx) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetExecutionGraphPipelineNodeIndexAMDX\0", - ); - let val = _f(cname); + let val = _f(c"vkGetExecutionGraphPipelineNodeIndexAMDX"); if val.is_null() { get_execution_graph_pipeline_node_index_amdx } else { @@ -576,10 +558,7 @@ pub mod amdx { stringify!(cmd_initialize_graph_scratch_memory_amdx) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdInitializeGraphScratchMemoryAMDX\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdInitializeGraphScratchMemoryAMDX"); if val.is_null() { cmd_initialize_graph_scratch_memory_amdx } else { @@ -597,9 +576,7 @@ pub mod amdx { stringify!(cmd_dispatch_graph_amdx) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDispatchGraphAMDX\0"); - let val = _f(cname); + let val = _f(c"vkCmdDispatchGraphAMDX"); if val.is_null() { cmd_dispatch_graph_amdx } else { @@ -617,10 +594,7 @@ pub mod amdx { stringify!(cmd_dispatch_graph_indirect_amdx) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdDispatchGraphIndirectAMDX\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdDispatchGraphIndirectAMDX"); if val.is_null() { cmd_dispatch_graph_indirect_amdx } else { @@ -638,10 +612,7 @@ pub mod amdx { stringify!(cmd_dispatch_graph_indirect_count_amdx) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdDispatchGraphIndirectCountAMDX\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdDispatchGraphIndirectCountAMDX"); if val.is_null() { cmd_dispatch_graph_indirect_count_amdx } else { @@ -713,10 +684,7 @@ pub mod android { stringify!(get_swapchain_gralloc_usage_android) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetSwapchainGrallocUsageANDROID\0", - ); - let val = _f(cname); + let val = _f(c"vkGetSwapchainGrallocUsageANDROID"); if val.is_null() { get_swapchain_gralloc_usage_android } else { @@ -736,8 +704,7 @@ pub mod android { stringify!(acquire_image_android) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkAcquireImageANDROID\0"); - let val = _f(cname); + let val = _f(c"vkAcquireImageANDROID"); if val.is_null() { acquire_image_android } else { @@ -757,10 +724,7 @@ pub mod android { stringify!(queue_signal_release_image_android) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkQueueSignalReleaseImageANDROID\0", - ); - let val = _f(cname); + let val = _f(c"vkQueueSignalReleaseImageANDROID"); if val.is_null() { queue_signal_release_image_android } else { @@ -781,10 +745,7 @@ pub mod android { stringify!(get_swapchain_gralloc_usage2_android) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetSwapchainGrallocUsage2ANDROID\0", - ); - let val = _f(cname); + let val = _f(c"vkGetSwapchainGrallocUsage2ANDROID"); if val.is_null() { get_swapchain_gralloc_usage2_android } else { @@ -852,10 +813,7 @@ pub mod android { stringify!(get_android_hardware_buffer_properties_android) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetAndroidHardwareBufferPropertiesANDROID\0", - ); - let val = _f(cname); + let val = _f(c"vkGetAndroidHardwareBufferPropertiesANDROID"); if val.is_null() { get_android_hardware_buffer_properties_android } else { @@ -873,10 +831,7 @@ pub mod android { stringify!(get_memory_android_hardware_buffer_android) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetMemoryAndroidHardwareBufferANDROID\0", - ); - let val = _f(cname); + let val = _f(c"vkGetMemoryAndroidHardwareBufferANDROID"); if val.is_null() { get_memory_android_hardware_buffer_android } else { @@ -998,10 +953,7 @@ pub mod ext { stringify!(create_debug_report_callback_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateDebugReportCallbackEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateDebugReportCallbackEXT"); if val.is_null() { create_debug_report_callback_ext } else { @@ -1019,10 +971,7 @@ pub mod ext { stringify!(destroy_debug_report_callback_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkDestroyDebugReportCallbackEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkDestroyDebugReportCallbackEXT"); if val.is_null() { destroy_debug_report_callback_ext } else { @@ -1045,9 +994,7 @@ pub mod ext { stringify!(debug_report_message_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDebugReportMessageEXT\0"); - let val = _f(cname); + let val = _f(c"vkDebugReportMessageEXT"); if val.is_null() { debug_report_message_ext } else { @@ -1123,9 +1070,7 @@ pub mod ext { stringify!(debug_marker_set_object_tag_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDebugMarkerSetObjectTagEXT\0"); - let val = _f(cname); + let val = _f(c"vkDebugMarkerSetObjectTagEXT"); if val.is_null() { debug_marker_set_object_tag_ext } else { @@ -1142,9 +1087,7 @@ pub mod ext { stringify!(debug_marker_set_object_name_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDebugMarkerSetObjectNameEXT\0"); - let val = _f(cname); + let val = _f(c"vkDebugMarkerSetObjectNameEXT"); if val.is_null() { debug_marker_set_object_name_ext } else { @@ -1161,9 +1104,7 @@ pub mod ext { stringify!(cmd_debug_marker_begin_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDebugMarkerBeginEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdDebugMarkerBeginEXT"); if val.is_null() { cmd_debug_marker_begin_ext } else { @@ -1179,9 +1120,7 @@ pub mod ext { stringify!(cmd_debug_marker_end_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDebugMarkerEndEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdDebugMarkerEndEXT"); if val.is_null() { cmd_debug_marker_end_ext } else { @@ -1198,9 +1137,7 @@ pub mod ext { stringify!(cmd_debug_marker_insert_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDebugMarkerInsertEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdDebugMarkerInsertEXT"); if val.is_null() { cmd_debug_marker_insert_ext } else { @@ -1273,10 +1210,7 @@ pub mod ext { stringify!(cmd_bind_transform_feedback_buffers_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdBindTransformFeedbackBuffersEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdBindTransformFeedbackBuffersEXT"); if val.is_null() { cmd_bind_transform_feedback_buffers_ext } else { @@ -1296,10 +1230,7 @@ pub mod ext { stringify!(cmd_begin_transform_feedback_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdBeginTransformFeedbackEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdBeginTransformFeedbackEXT"); if val.is_null() { cmd_begin_transform_feedback_ext } else { @@ -1319,9 +1250,7 @@ pub mod ext { stringify!(cmd_end_transform_feedback_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdEndTransformFeedbackEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdEndTransformFeedbackEXT"); if val.is_null() { cmd_end_transform_feedback_ext } else { @@ -1341,9 +1270,7 @@ pub mod ext { stringify!(cmd_begin_query_indexed_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBeginQueryIndexedEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdBeginQueryIndexedEXT"); if val.is_null() { cmd_begin_query_indexed_ext } else { @@ -1362,9 +1289,7 @@ pub mod ext { stringify!(cmd_end_query_indexed_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdEndQueryIndexedEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdEndQueryIndexedEXT"); if val.is_null() { cmd_end_query_indexed_ext } else { @@ -1386,9 +1311,7 @@ pub mod ext { stringify!(cmd_draw_indirect_byte_count_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawIndirectByteCountEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawIndirectByteCountEXT"); if val.is_null() { cmd_draw_indirect_byte_count_ext } else { @@ -1503,10 +1426,7 @@ pub mod ext { stringify!(cmd_begin_conditional_rendering_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdBeginConditionalRenderingEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdBeginConditionalRenderingEXT"); if val.is_null() { cmd_begin_conditional_rendering_ext } else { @@ -1522,10 +1442,7 @@ pub mod ext { stringify!(cmd_end_conditional_rendering_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdEndConditionalRenderingEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdEndConditionalRenderingEXT"); if val.is_null() { cmd_end_conditional_rendering_ext } else { @@ -1586,8 +1503,7 @@ pub mod ext { ) -> Result { panic!(concat!("Unable to load ", stringify!(release_display_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkReleaseDisplayEXT\0"); - let val = _f(cname); + let val = _f(c"vkReleaseDisplayEXT"); if val.is_null() { release_display_ext } else { @@ -1653,9 +1569,7 @@ pub mod ext { stringify!(acquire_xlib_display_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkAcquireXlibDisplayEXT\0"); - let val = _f(cname); + let val = _f(c"vkAcquireXlibDisplayEXT"); if val.is_null() { acquire_xlib_display_ext } else { @@ -1674,9 +1588,7 @@ pub mod ext { stringify!(get_rand_r_output_display_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetRandROutputDisplayEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetRandROutputDisplayEXT"); if val.is_null() { get_rand_r_output_display_ext } else { @@ -1742,10 +1654,7 @@ pub mod ext { stringify!(get_physical_device_surface_capabilities2_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSurfaceCapabilities2EXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSurfaceCapabilities2EXT"); if val.is_null() { get_physical_device_surface_capabilities2_ext } else { @@ -1813,9 +1722,7 @@ pub mod ext { stringify!(display_power_control_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDisplayPowerControlEXT\0"); - let val = _f(cname); + let val = _f(c"vkDisplayPowerControlEXT"); if val.is_null() { display_power_control_ext } else { @@ -1834,9 +1741,7 @@ pub mod ext { stringify!(register_device_event_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkRegisterDeviceEventEXT\0"); - let val = _f(cname); + let val = _f(c"vkRegisterDeviceEventEXT"); if val.is_null() { register_device_event_ext } else { @@ -1856,9 +1761,7 @@ pub mod ext { stringify!(register_display_event_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkRegisterDisplayEventEXT\0"); - let val = _f(cname); + let val = _f(c"vkRegisterDisplayEventEXT"); if val.is_null() { register_display_event_ext } else { @@ -1877,9 +1780,7 @@ pub mod ext { stringify!(get_swapchain_counter_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetSwapchainCounterEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetSwapchainCounterEXT"); if val.is_null() { get_swapchain_counter_ext } else { @@ -1947,9 +1848,7 @@ pub mod ext { stringify!(cmd_set_discard_rectangle_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDiscardRectangleEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDiscardRectangleEXT"); if val.is_null() { cmd_set_discard_rectangle_ext } else { @@ -1966,10 +1865,7 @@ pub mod ext { stringify!(cmd_set_discard_rectangle_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetDiscardRectangleEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetDiscardRectangleEnableEXT"); if val.is_null() { cmd_set_discard_rectangle_enable_ext } else { @@ -1986,10 +1882,7 @@ pub mod ext { stringify!(cmd_set_discard_rectangle_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetDiscardRectangleModeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetDiscardRectangleModeEXT"); if val.is_null() { cmd_set_discard_rectangle_mode_ext } else { @@ -2076,8 +1969,7 @@ pub mod ext { ) { panic!(concat!("Unable to load ", stringify!(set_hdr_metadata_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkSetHdrMetadataEXT\0"); - let val = _f(cname); + let val = _f(c"vkSetHdrMetadataEXT"); if val.is_null() { set_hdr_metadata_ext } else { @@ -2161,10 +2053,7 @@ pub mod ext { stringify!(create_debug_utils_messenger_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateDebugUtilsMessengerEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateDebugUtilsMessengerEXT"); if val.is_null() { create_debug_utils_messenger_ext } else { @@ -2182,10 +2071,7 @@ pub mod ext { stringify!(destroy_debug_utils_messenger_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkDestroyDebugUtilsMessengerEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkDestroyDebugUtilsMessengerEXT"); if val.is_null() { destroy_debug_utils_messenger_ext } else { @@ -2204,9 +2090,7 @@ pub mod ext { stringify!(submit_debug_utils_message_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkSubmitDebugUtilsMessageEXT\0"); - let val = _f(cname); + let val = _f(c"vkSubmitDebugUtilsMessageEXT"); if val.is_null() { submit_debug_utils_message_ext } else { @@ -2269,9 +2153,7 @@ pub mod ext { stringify!(set_debug_utils_object_name_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkSetDebugUtilsObjectNameEXT\0"); - let val = _f(cname); + let val = _f(c"vkSetDebugUtilsObjectNameEXT"); if val.is_null() { set_debug_utils_object_name_ext } else { @@ -2288,9 +2170,7 @@ pub mod ext { stringify!(set_debug_utils_object_tag_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkSetDebugUtilsObjectTagEXT\0"); - let val = _f(cname); + let val = _f(c"vkSetDebugUtilsObjectTagEXT"); if val.is_null() { set_debug_utils_object_tag_ext } else { @@ -2307,10 +2187,7 @@ pub mod ext { stringify!(queue_begin_debug_utils_label_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkQueueBeginDebugUtilsLabelEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkQueueBeginDebugUtilsLabelEXT"); if val.is_null() { queue_begin_debug_utils_label_ext } else { @@ -2324,9 +2201,7 @@ pub mod ext { stringify!(queue_end_debug_utils_label_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkQueueEndDebugUtilsLabelEXT\0"); - let val = _f(cname); + let val = _f(c"vkQueueEndDebugUtilsLabelEXT"); if val.is_null() { queue_end_debug_utils_label_ext } else { @@ -2343,10 +2218,7 @@ pub mod ext { stringify!(queue_insert_debug_utils_label_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkQueueInsertDebugUtilsLabelEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkQueueInsertDebugUtilsLabelEXT"); if val.is_null() { queue_insert_debug_utils_label_ext } else { @@ -2363,9 +2235,7 @@ pub mod ext { stringify!(cmd_begin_debug_utils_label_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBeginDebugUtilsLabelEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdBeginDebugUtilsLabelEXT"); if val.is_null() { cmd_begin_debug_utils_label_ext } else { @@ -2381,9 +2251,7 @@ pub mod ext { stringify!(cmd_end_debug_utils_label_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdEndDebugUtilsLabelEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdEndDebugUtilsLabelEXT"); if val.is_null() { cmd_end_debug_utils_label_ext } else { @@ -2400,9 +2268,7 @@ pub mod ext { stringify!(cmd_insert_debug_utils_label_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdInsertDebugUtilsLabelEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdInsertDebugUtilsLabelEXT"); if val.is_null() { cmd_insert_debug_utils_label_ext } else { @@ -2492,10 +2358,7 @@ pub mod ext { stringify!(get_physical_device_multisample_properties_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceMultisamplePropertiesEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceMultisamplePropertiesEXT"); if val.is_null() { get_physical_device_multisample_properties_ext } else { @@ -2551,9 +2414,7 @@ pub mod ext { stringify!(cmd_set_sample_locations_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetSampleLocationsEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetSampleLocationsEXT"); if val.is_null() { cmd_set_sample_locations_ext } else { @@ -2635,10 +2496,7 @@ pub mod ext { stringify!(get_image_drm_format_modifier_properties_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetImageDrmFormatModifierPropertiesEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetImageDrmFormatModifierPropertiesEXT"); if val.is_null() { get_image_drm_format_modifier_properties_ext } else { @@ -2707,9 +2565,7 @@ pub mod ext { stringify!(create_validation_cache_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateValidationCacheEXT\0"); - let val = _f(cname); + let val = _f(c"vkCreateValidationCacheEXT"); if val.is_null() { create_validation_cache_ext } else { @@ -2727,9 +2583,7 @@ pub mod ext { stringify!(destroy_validation_cache_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDestroyValidationCacheEXT\0"); - let val = _f(cname); + let val = _f(c"vkDestroyValidationCacheEXT"); if val.is_null() { destroy_validation_cache_ext } else { @@ -2748,9 +2602,7 @@ pub mod ext { stringify!(merge_validation_caches_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkMergeValidationCachesEXT\0"); - let val = _f(cname); + let val = _f(c"vkMergeValidationCachesEXT"); if val.is_null() { merge_validation_caches_ext } else { @@ -2769,9 +2621,7 @@ pub mod ext { stringify!(get_validation_cache_data_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetValidationCacheDataEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetValidationCacheDataEXT"); if val.is_null() { get_validation_cache_data_ext } else { @@ -2871,10 +2721,7 @@ pub mod ext { stringify!(get_memory_host_pointer_properties_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetMemoryHostPointerPropertiesEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetMemoryHostPointerPropertiesEXT"); if val.is_null() { get_memory_host_pointer_properties_ext } else { @@ -2940,10 +2787,7 @@ pub mod ext { stringify!(get_physical_device_calibrateable_time_domains_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceCalibrateableTimeDomainsEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceCalibrateableTimeDomainsEXT"); if val.is_null() { get_physical_device_calibrateable_time_domains_ext } else { @@ -3002,9 +2846,7 @@ pub mod ext { stringify!(get_calibrated_timestamps_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetCalibratedTimestampsEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetCalibratedTimestampsEXT"); if val.is_null() { get_calibrated_timestamps_ext } else { @@ -3094,9 +2936,7 @@ pub mod ext { stringify!(create_metal_surface_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateMetalSurfaceEXT\0"); - let val = _f(cname); + let val = _f(c"vkCreateMetalSurfaceEXT"); if val.is_null() { create_metal_surface_ext } else { @@ -3208,9 +3048,7 @@ pub mod ext { stringify!(get_buffer_device_address_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetBufferDeviceAddressEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetBufferDeviceAddressEXT"); if val.is_null() { get_buffer_device_address_ext } else { @@ -3275,10 +3113,7 @@ pub mod ext { stringify!(get_physical_device_tool_properties_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceToolPropertiesEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceToolPropertiesEXT"); if val.is_null() { get_physical_device_tool_properties_ext } else { @@ -3385,10 +3220,7 @@ pub mod ext { stringify!(get_physical_device_surface_present_modes2_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSurfacePresentModes2EXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSurfacePresentModes2EXT"); if val.is_null() { get_physical_device_surface_present_modes2_ext } else { @@ -3447,10 +3279,7 @@ pub mod ext { stringify!(acquire_full_screen_exclusive_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkAcquireFullScreenExclusiveModeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkAcquireFullScreenExclusiveModeEXT"); if val.is_null() { acquire_full_screen_exclusive_mode_ext } else { @@ -3467,10 +3296,7 @@ pub mod ext { stringify!(release_full_screen_exclusive_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkReleaseFullScreenExclusiveModeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkReleaseFullScreenExclusiveModeEXT"); if val.is_null() { release_full_screen_exclusive_mode_ext } else { @@ -3488,10 +3314,7 @@ pub mod ext { stringify!(get_device_group_surface_present_modes2_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceGroupSurfacePresentModes2EXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceGroupSurfacePresentModes2EXT"); if val.is_null() { get_device_group_surface_present_modes2_ext } else { @@ -3557,9 +3380,7 @@ pub mod ext { stringify!(create_headless_surface_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateHeadlessSurfaceEXT\0"); - let val = _f(cname); + let val = _f(c"vkCreateHeadlessSurfaceEXT"); if val.is_null() { create_headless_surface_ext } else { @@ -3624,9 +3445,7 @@ pub mod ext { stringify!(cmd_set_line_stipple_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetLineStippleEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetLineStippleEXT"); if val.is_null() { cmd_set_line_stipple_ext } else { @@ -3697,8 +3516,7 @@ pub mod ext { ) { panic!(concat!("Unable to load ", stringify!(reset_query_pool_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkResetQueryPoolEXT\0"); - let val = _f(cname); + let val = _f(c"vkResetQueryPoolEXT"); if val.is_null() { reset_query_pool_ext } else { @@ -3781,8 +3599,7 @@ pub mod ext { stringify!(cmd_set_cull_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetCullModeEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetCullModeEXT"); if val.is_null() { cmd_set_cull_mode_ext } else { @@ -3799,8 +3616,7 @@ pub mod ext { stringify!(cmd_set_front_face_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetFrontFaceEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetFrontFaceEXT"); if val.is_null() { cmd_set_front_face_ext } else { @@ -3817,9 +3633,7 @@ pub mod ext { stringify!(cmd_set_primitive_topology_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetPrimitiveTopologyEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetPrimitiveTopologyEXT"); if val.is_null() { cmd_set_primitive_topology_ext } else { @@ -3837,9 +3651,7 @@ pub mod ext { stringify!(cmd_set_viewport_with_count_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetViewportWithCountEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetViewportWithCountEXT"); if val.is_null() { cmd_set_viewport_with_count_ext } else { @@ -3857,9 +3669,7 @@ pub mod ext { stringify!(cmd_set_scissor_with_count_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetScissorWithCountEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetScissorWithCountEXT"); if val.is_null() { cmd_set_scissor_with_count_ext } else { @@ -3881,9 +3691,7 @@ pub mod ext { stringify!(cmd_bind_vertex_buffers2_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBindVertexBuffers2EXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindVertexBuffers2EXT"); if val.is_null() { cmd_bind_vertex_buffers2_ext } else { @@ -3900,9 +3708,7 @@ pub mod ext { stringify!(cmd_set_depth_test_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthTestEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthTestEnableEXT"); if val.is_null() { cmd_set_depth_test_enable_ext } else { @@ -3919,9 +3725,7 @@ pub mod ext { stringify!(cmd_set_depth_write_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthWriteEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthWriteEnableEXT"); if val.is_null() { cmd_set_depth_write_enable_ext } else { @@ -3938,9 +3742,7 @@ pub mod ext { stringify!(cmd_set_depth_compare_op_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthCompareOpEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthCompareOpEXT"); if val.is_null() { cmd_set_depth_compare_op_ext } else { @@ -3957,10 +3759,7 @@ pub mod ext { stringify!(cmd_set_depth_bounds_test_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetDepthBoundsTestEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthBoundsTestEnableEXT"); if val.is_null() { cmd_set_depth_bounds_test_enable_ext } else { @@ -3977,9 +3776,7 @@ pub mod ext { stringify!(cmd_set_stencil_test_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetStencilTestEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetStencilTestEnableEXT"); if val.is_null() { cmd_set_stencil_test_enable_ext } else { @@ -4000,8 +3797,7 @@ pub mod ext { stringify!(cmd_set_stencil_op_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetStencilOpEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetStencilOpEXT"); if val.is_null() { cmd_set_stencil_op_ext } else { @@ -4069,9 +3865,7 @@ pub mod ext { stringify!(copy_memory_to_image_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCopyMemoryToImageEXT\0"); - let val = _f(cname); + let val = _f(c"vkCopyMemoryToImageEXT"); if val.is_null() { copy_memory_to_image_ext } else { @@ -4088,9 +3882,7 @@ pub mod ext { stringify!(copy_image_to_memory_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCopyImageToMemoryEXT\0"); - let val = _f(cname); + let val = _f(c"vkCopyImageToMemoryEXT"); if val.is_null() { copy_image_to_memory_ext } else { @@ -4107,8 +3899,7 @@ pub mod ext { stringify!(copy_image_to_image_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCopyImageToImageEXT\0"); - let val = _f(cname); + let val = _f(c"vkCopyImageToImageEXT"); if val.is_null() { copy_image_to_image_ext } else { @@ -4126,9 +3917,7 @@ pub mod ext { stringify!(transition_image_layout_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkTransitionImageLayoutEXT\0"); - let val = _f(cname); + let val = _f(c"vkTransitionImageLayoutEXT"); if val.is_null() { transition_image_layout_ext } else { @@ -4147,10 +3936,7 @@ pub mod ext { stringify!(get_image_subresource_layout2_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetImageSubresourceLayout2EXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetImageSubresourceLayout2EXT"); if val.is_null() { get_image_subresource_layout2_ext } else { @@ -4238,9 +4024,7 @@ pub mod ext { stringify!(release_swapchain_images_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkReleaseSwapchainImagesEXT\0"); - let val = _f(cname); + let val = _f(c"vkReleaseSwapchainImagesEXT"); if val.is_null() { release_swapchain_images_ext } else { @@ -4320,8 +4104,7 @@ pub mod ext { stringify!(cmd_set_depth_bias2_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthBias2EXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthBias2EXT"); if val.is_null() { cmd_set_depth_bias2_ext } else { @@ -4395,9 +4178,7 @@ pub mod ext { stringify!(acquire_drm_display_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkAcquireDrmDisplayEXT\0"); - let val = _f(cname); + let val = _f(c"vkAcquireDrmDisplayEXT"); if val.is_null() { acquire_drm_display_ext } else { @@ -4413,8 +4194,7 @@ pub mod ext { ) -> Result { panic!(concat!("Unable to load ", stringify!(get_drm_display_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetDrmDisplayEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetDrmDisplayEXT"); if val.is_null() { get_drm_display_ext } else { @@ -4499,9 +4279,7 @@ pub mod ext { stringify!(create_private_data_slot_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreatePrivateDataSlotEXT\0"); - let val = _f(cname); + let val = _f(c"vkCreatePrivateDataSlotEXT"); if val.is_null() { create_private_data_slot_ext } else { @@ -4519,9 +4297,7 @@ pub mod ext { stringify!(destroy_private_data_slot_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDestroyPrivateDataSlotEXT\0"); - let val = _f(cname); + let val = _f(c"vkDestroyPrivateDataSlotEXT"); if val.is_null() { destroy_private_data_slot_ext } else { @@ -4538,8 +4314,7 @@ pub mod ext { ) -> Result { panic!(concat!("Unable to load ", stringify!(set_private_data_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkSetPrivateDataEXT\0"); - let val = _f(cname); + let val = _f(c"vkSetPrivateDataEXT"); if val.is_null() { set_private_data_ext } else { @@ -4556,8 +4331,7 @@ pub mod ext { ) { panic!(concat!("Unable to load ", stringify!(get_private_data_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetPrivateDataEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetPrivateDataEXT"); if val.is_null() { get_private_data_ext } else { @@ -4629,9 +4403,7 @@ pub mod ext { stringify!(export_metal_objects_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkExportMetalObjectsEXT\0"); - let val = _f(cname); + let val = _f(c"vkExportMetalObjectsEXT"); if val.is_null() { export_metal_objects_ext } else { @@ -4713,10 +4485,7 @@ pub mod ext { stringify!(get_descriptor_set_layout_size_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDescriptorSetLayoutSizeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDescriptorSetLayoutSizeEXT"); if val.is_null() { get_descriptor_set_layout_size_ext } else { @@ -4735,10 +4504,7 @@ pub mod ext { stringify!(get_descriptor_set_layout_binding_offset_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDescriptorSetLayoutBindingOffsetEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDescriptorSetLayoutBindingOffsetEXT"); if val.is_null() { get_descriptor_set_layout_binding_offset_ext } else { @@ -4754,8 +4520,7 @@ pub mod ext { ) { panic!(concat!("Unable to load ", stringify!(get_descriptor_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetDescriptorEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetDescriptorEXT"); if val.is_null() { get_descriptor_ext } else { @@ -4773,9 +4538,7 @@ pub mod ext { stringify!(cmd_bind_descriptor_buffers_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBindDescriptorBuffersEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindDescriptorBuffersEXT"); if val.is_null() { cmd_bind_descriptor_buffers_ext } else { @@ -4797,10 +4560,7 @@ pub mod ext { stringify!(cmd_set_descriptor_buffer_offsets_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetDescriptorBufferOffsetsEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetDescriptorBufferOffsetsEXT"); if val.is_null() { cmd_set_descriptor_buffer_offsets_ext } else { @@ -4819,10 +4579,7 @@ pub mod ext { stringify!(cmd_bind_descriptor_buffer_embedded_samplers_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdBindDescriptorBufferEmbeddedSamplersEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdBindDescriptorBufferEmbeddedSamplersEXT"); if val.is_null() { cmd_bind_descriptor_buffer_embedded_samplers_ext } else { @@ -4840,10 +4597,7 @@ pub mod ext { stringify!(get_buffer_opaque_capture_descriptor_data_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetBufferOpaqueCaptureDescriptorDataEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetBufferOpaqueCaptureDescriptorDataEXT"); if val.is_null() { get_buffer_opaque_capture_descriptor_data_ext } else { @@ -4861,10 +4615,7 @@ pub mod ext { stringify!(get_image_opaque_capture_descriptor_data_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetImageOpaqueCaptureDescriptorDataEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetImageOpaqueCaptureDescriptorDataEXT"); if val.is_null() { get_image_opaque_capture_descriptor_data_ext } else { @@ -4882,10 +4633,7 @@ pub mod ext { stringify!(get_image_view_opaque_capture_descriptor_data_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetImageViewOpaqueCaptureDescriptorDataEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetImageViewOpaqueCaptureDescriptorDataEXT"); if val.is_null() { get_image_view_opaque_capture_descriptor_data_ext } else { @@ -4903,10 +4651,7 @@ pub mod ext { stringify!(get_sampler_opaque_capture_descriptor_data_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetSamplerOpaqueCaptureDescriptorDataEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetSamplerOpaqueCaptureDescriptorDataEXT"); if val.is_null() { get_sampler_opaque_capture_descriptor_data_ext } else { @@ -4926,10 +4671,7 @@ pub mod ext { ) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT"); if val.is_null() { get_acceleration_structure_opaque_capture_descriptor_data_ext } else { @@ -5005,8 +4747,7 @@ pub mod ext { stringify!(cmd_draw_mesh_tasks_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawMeshTasksEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawMeshTasksEXT"); if val.is_null() { cmd_draw_mesh_tasks_ext } else { @@ -5026,9 +4767,7 @@ pub mod ext { stringify!(cmd_draw_mesh_tasks_indirect_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawMeshTasksIndirectEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawMeshTasksIndirectEXT"); if val.is_null() { cmd_draw_mesh_tasks_indirect_ext } else { @@ -5050,10 +4789,7 @@ pub mod ext { stringify!(cmd_draw_mesh_tasks_indirect_count_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdDrawMeshTasksIndirectCountEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdDrawMeshTasksIndirectCountEXT"); if val.is_null() { cmd_draw_mesh_tasks_indirect_count_ext } else { @@ -5143,10 +4879,7 @@ pub mod ext { stringify!(get_image_subresource_layout2_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetImageSubresourceLayout2EXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetImageSubresourceLayout2EXT"); if val.is_null() { get_image_subresource_layout2_ext } else { @@ -5227,9 +4960,7 @@ pub mod ext { stringify!(get_device_fault_info_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetDeviceFaultInfoEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetDeviceFaultInfoEXT"); if val.is_null() { get_device_fault_info_ext } else { @@ -5305,9 +5036,7 @@ pub mod ext { stringify!(create_direct_fb_surface_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateDirectFBSurfaceEXT\0"); - let val = _f(cname); + let val = _f(c"vkCreateDirectFBSurfaceEXT"); if val.is_null() { create_direct_fb_surface_ext } else { @@ -5325,10 +5054,7 @@ pub mod ext { stringify!(get_physical_device_direct_fb_presentation_support_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceDirectFBPresentationSupportEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceDirectFBPresentationSupportEXT"); if val.is_null() { get_physical_device_direct_fb_presentation_support_ext } else { @@ -5395,9 +5121,7 @@ pub mod ext { stringify!(cmd_set_vertex_input_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetVertexInputEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetVertexInputEXT"); if val.is_null() { cmd_set_vertex_input_ext } else { @@ -5501,9 +5225,7 @@ pub mod ext { stringify!(get_pipeline_properties_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetPipelinePropertiesEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetPipelinePropertiesEXT"); if val.is_null() { get_pipeline_properties_ext } else { @@ -5587,9 +5309,7 @@ pub mod ext { stringify!(cmd_set_patch_control_points_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetPatchControlPointsEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetPatchControlPointsEXT"); if val.is_null() { cmd_set_patch_control_points_ext } else { @@ -5606,10 +5326,7 @@ pub mod ext { stringify!(cmd_set_rasterizer_discard_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRasterizerDiscardEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRasterizerDiscardEnableEXT"); if val.is_null() { cmd_set_rasterizer_discard_enable_ext } else { @@ -5626,9 +5343,7 @@ pub mod ext { stringify!(cmd_set_depth_bias_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthBiasEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthBiasEnableEXT"); if val.is_null() { cmd_set_depth_bias_enable_ext } else { @@ -5642,8 +5357,7 @@ pub mod ext { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_logic_op_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetLogicOpEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetLogicOpEXT"); if val.is_null() { cmd_set_logic_op_ext } else { @@ -5660,10 +5374,7 @@ pub mod ext { stringify!(cmd_set_primitive_restart_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetPrimitiveRestartEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetPrimitiveRestartEnableEXT"); if val.is_null() { cmd_set_primitive_restart_enable_ext } else { @@ -5728,9 +5439,7 @@ pub mod ext { stringify!(cmd_set_color_write_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetColorWriteEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetColorWriteEnableEXT"); if val.is_null() { cmd_set_color_write_enable_ext } else { @@ -5820,8 +5529,7 @@ pub mod ext { ) { panic!(concat!("Unable to load ", stringify!(cmd_draw_multi_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawMultiEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawMultiEXT"); if val.is_null() { cmd_draw_multi_ext } else { @@ -5843,9 +5551,7 @@ pub mod ext { stringify!(cmd_draw_multi_indexed_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawMultiIndexedEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawMultiIndexedEXT"); if val.is_null() { cmd_draw_multi_indexed_ext } else { @@ -5937,8 +5643,7 @@ pub mod ext { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_micromap_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateMicromapEXT\0"); - let val = _f(cname); + let val = _f(c"vkCreateMicromapEXT"); if val.is_null() { create_micromap_ext } else { @@ -5953,8 +5658,7 @@ pub mod ext { ) { panic!(concat!("Unable to load ", stringify!(destroy_micromap_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyMicromapEXT\0"); - let val = _f(cname); + let val = _f(c"vkDestroyMicromapEXT"); if val.is_null() { destroy_micromap_ext } else { @@ -5972,9 +5676,7 @@ pub mod ext { stringify!(cmd_build_micromaps_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBuildMicromapsEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdBuildMicromapsEXT"); if val.is_null() { cmd_build_micromaps_ext } else { @@ -5990,8 +5692,7 @@ pub mod ext { ) -> Result { panic!(concat!("Unable to load ", stringify!(build_micromaps_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkBuildMicromapsEXT\0"); - let val = _f(cname); + let val = _f(c"vkBuildMicromapsEXT"); if val.is_null() { build_micromaps_ext } else { @@ -6006,8 +5707,7 @@ pub mod ext { ) -> Result { panic!(concat!("Unable to load ", stringify!(copy_micromap_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCopyMicromapEXT\0"); - let val = _f(cname); + let val = _f(c"vkCopyMicromapEXT"); if val.is_null() { copy_micromap_ext } else { @@ -6025,9 +5725,7 @@ pub mod ext { stringify!(copy_micromap_to_memory_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCopyMicromapToMemoryEXT\0"); - let val = _f(cname); + let val = _f(c"vkCopyMicromapToMemoryEXT"); if val.is_null() { copy_micromap_to_memory_ext } else { @@ -6045,9 +5743,7 @@ pub mod ext { stringify!(copy_memory_to_micromap_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCopyMemoryToMicromapEXT\0"); - let val = _f(cname); + let val = _f(c"vkCopyMemoryToMicromapEXT"); if val.is_null() { copy_memory_to_micromap_ext } else { @@ -6069,9 +5765,7 @@ pub mod ext { stringify!(write_micromaps_properties_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkWriteMicromapsPropertiesEXT\0"); - let val = _f(cname); + let val = _f(c"vkWriteMicromapsPropertiesEXT"); if val.is_null() { write_micromaps_properties_ext } else { @@ -6088,8 +5782,7 @@ pub mod ext { stringify!(cmd_copy_micromap_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyMicromapEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyMicromapEXT"); if val.is_null() { cmd_copy_micromap_ext } else { @@ -6106,9 +5799,7 @@ pub mod ext { stringify!(cmd_copy_micromap_to_memory_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyMicromapToMemoryEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyMicromapToMemoryEXT"); if val.is_null() { cmd_copy_micromap_to_memory_ext } else { @@ -6125,9 +5816,7 @@ pub mod ext { stringify!(cmd_copy_memory_to_micromap_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyMemoryToMicromapEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyMemoryToMicromapEXT"); if val.is_null() { cmd_copy_memory_to_micromap_ext } else { @@ -6148,10 +5837,7 @@ pub mod ext { stringify!(cmd_write_micromaps_properties_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdWriteMicromapsPropertiesEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdWriteMicromapsPropertiesEXT"); if val.is_null() { cmd_write_micromaps_properties_ext } else { @@ -6169,10 +5855,7 @@ pub mod ext { stringify!(get_device_micromap_compatibility_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceMicromapCompatibilityEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceMicromapCompatibilityEXT"); if val.is_null() { get_device_micromap_compatibility_ext } else { @@ -6191,9 +5874,7 @@ pub mod ext { stringify!(get_micromap_build_sizes_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetMicromapBuildSizesEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetMicromapBuildSizesEXT"); if val.is_null() { get_micromap_build_sizes_ext } else { @@ -6274,9 +5955,7 @@ pub mod ext { stringify!(set_device_memory_priority_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkSetDeviceMemoryPriorityEXT\0"); - let val = _f(cname); + let val = _f(c"vkSetDeviceMemoryPriorityEXT"); if val.is_null() { set_device_memory_priority_ext } else { @@ -6423,9 +6102,7 @@ pub mod ext { stringify!(cmd_set_depth_clamp_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthClampEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthClampEnableEXT"); if val.is_null() { cmd_set_depth_clamp_enable_ext } else { @@ -6442,9 +6119,7 @@ pub mod ext { stringify!(cmd_set_polygon_mode_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetPolygonModeEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetPolygonModeEXT"); if val.is_null() { cmd_set_polygon_mode_ext } else { @@ -6461,10 +6136,7 @@ pub mod ext { stringify!(cmd_set_rasterization_samples_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRasterizationSamplesEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRasterizationSamplesEXT"); if val.is_null() { cmd_set_rasterization_samples_ext } else { @@ -6482,8 +6154,7 @@ pub mod ext { stringify!(cmd_set_sample_mask_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetSampleMaskEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetSampleMaskEXT"); if val.is_null() { cmd_set_sample_mask_ext } else { @@ -6500,10 +6171,7 @@ pub mod ext { stringify!(cmd_set_alpha_to_coverage_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetAlphaToCoverageEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetAlphaToCoverageEnableEXT"); if val.is_null() { cmd_set_alpha_to_coverage_enable_ext } else { @@ -6520,9 +6188,7 @@ pub mod ext { stringify!(cmd_set_alpha_to_one_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetAlphaToOneEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetAlphaToOneEnableEXT"); if val.is_null() { cmd_set_alpha_to_one_enable_ext } else { @@ -6539,9 +6205,7 @@ pub mod ext { stringify!(cmd_set_logic_op_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetLogicOpEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetLogicOpEnableEXT"); if val.is_null() { cmd_set_logic_op_enable_ext } else { @@ -6560,9 +6224,7 @@ pub mod ext { stringify!(cmd_set_color_blend_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetColorBlendEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetColorBlendEnableEXT"); if val.is_null() { cmd_set_color_blend_enable_ext } else { @@ -6581,9 +6243,7 @@ pub mod ext { stringify!(cmd_set_color_blend_equation_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetColorBlendEquationEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetColorBlendEquationEXT"); if val.is_null() { cmd_set_color_blend_equation_ext } else { @@ -6602,9 +6262,7 @@ pub mod ext { stringify!(cmd_set_color_write_mask_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetColorWriteMaskEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetColorWriteMaskEXT"); if val.is_null() { cmd_set_color_write_mask_ext } else { @@ -6621,10 +6279,7 @@ pub mod ext { stringify!(cmd_set_tessellation_domain_origin_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetTessellationDomainOriginEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetTessellationDomainOriginEXT"); if val.is_null() { cmd_set_tessellation_domain_origin_ext } else { @@ -6641,10 +6296,7 @@ pub mod ext { stringify!(cmd_set_rasterization_stream_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRasterizationStreamEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRasterizationStreamEXT"); if val.is_null() { cmd_set_rasterization_stream_ext } else { @@ -6661,10 +6313,7 @@ pub mod ext { stringify!(cmd_set_conservative_rasterization_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetConservativeRasterizationModeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetConservativeRasterizationModeEXT"); if val.is_null() { cmd_set_conservative_rasterization_mode_ext } else { @@ -6681,10 +6330,7 @@ pub mod ext { stringify!(cmd_set_extra_primitive_overestimation_size_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetExtraPrimitiveOverestimationSizeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetExtraPrimitiveOverestimationSizeEXT"); if val.is_null() { cmd_set_extra_primitive_overestimation_size_ext } else { @@ -6701,9 +6347,7 @@ pub mod ext { stringify!(cmd_set_depth_clip_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthClipEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthClipEnableEXT"); if val.is_null() { cmd_set_depth_clip_enable_ext } else { @@ -6720,10 +6364,7 @@ pub mod ext { stringify!(cmd_set_sample_locations_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetSampleLocationsEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetSampleLocationsEnableEXT"); if val.is_null() { cmd_set_sample_locations_enable_ext } else { @@ -6742,9 +6383,7 @@ pub mod ext { stringify!(cmd_set_color_blend_advanced_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetColorBlendAdvancedEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetColorBlendAdvancedEXT"); if val.is_null() { cmd_set_color_blend_advanced_ext } else { @@ -6761,10 +6400,7 @@ pub mod ext { stringify!(cmd_set_provoking_vertex_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetProvokingVertexModeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetProvokingVertexModeEXT"); if val.is_null() { cmd_set_provoking_vertex_mode_ext } else { @@ -6781,10 +6417,7 @@ pub mod ext { stringify!(cmd_set_line_rasterization_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetLineRasterizationModeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetLineRasterizationModeEXT"); if val.is_null() { cmd_set_line_rasterization_mode_ext } else { @@ -6801,9 +6434,7 @@ pub mod ext { stringify!(cmd_set_line_stipple_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetLineStippleEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetLineStippleEnableEXT"); if val.is_null() { cmd_set_line_stipple_enable_ext } else { @@ -6820,10 +6451,7 @@ pub mod ext { stringify!(cmd_set_depth_clip_negative_one_to_one_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetDepthClipNegativeOneToOneEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthClipNegativeOneToOneEXT"); if val.is_null() { cmd_set_depth_clip_negative_one_to_one_ext } else { @@ -6840,10 +6468,7 @@ pub mod ext { stringify!(cmd_set_viewport_w_scaling_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetViewportWScalingEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetViewportWScalingEnableNV"); if val.is_null() { cmd_set_viewport_w_scaling_enable_nv } else { @@ -6862,9 +6487,7 @@ pub mod ext { stringify!(cmd_set_viewport_swizzle_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetViewportSwizzleNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetViewportSwizzleNV"); if val.is_null() { cmd_set_viewport_swizzle_nv } else { @@ -6881,10 +6504,7 @@ pub mod ext { stringify!(cmd_set_coverage_to_color_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageToColorEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageToColorEnableNV"); if val.is_null() { cmd_set_coverage_to_color_enable_nv } else { @@ -6901,10 +6521,7 @@ pub mod ext { stringify!(cmd_set_coverage_to_color_location_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageToColorLocationNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageToColorLocationNV"); if val.is_null() { cmd_set_coverage_to_color_location_nv } else { @@ -6921,10 +6538,7 @@ pub mod ext { stringify!(cmd_set_coverage_modulation_mode_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageModulationModeNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageModulationModeNV"); if val.is_null() { cmd_set_coverage_modulation_mode_nv } else { @@ -6941,10 +6555,7 @@ pub mod ext { stringify!(cmd_set_coverage_modulation_table_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageModulationTableEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageModulationTableEnableNV"); if val.is_null() { cmd_set_coverage_modulation_table_enable_nv } else { @@ -6962,10 +6573,7 @@ pub mod ext { stringify!(cmd_set_coverage_modulation_table_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageModulationTableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageModulationTableNV"); if val.is_null() { cmd_set_coverage_modulation_table_nv } else { @@ -6982,10 +6590,7 @@ pub mod ext { stringify!(cmd_set_shading_rate_image_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetShadingRateImageEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetShadingRateImageEnableNV"); if val.is_null() { cmd_set_shading_rate_image_enable_nv } else { @@ -7002,10 +6607,7 @@ pub mod ext { stringify!(cmd_set_representative_fragment_test_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRepresentativeFragmentTestEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRepresentativeFragmentTestEnableNV"); if val.is_null() { cmd_set_representative_fragment_test_enable_nv } else { @@ -7022,10 +6624,7 @@ pub mod ext { stringify!(cmd_set_coverage_reduction_mode_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageReductionModeNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageReductionModeNV"); if val.is_null() { cmd_set_coverage_reduction_mode_nv } else { @@ -7100,10 +6699,7 @@ pub mod ext { stringify!(get_shader_module_identifier_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetShaderModuleIdentifierEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetShaderModuleIdentifierEXT"); if val.is_null() { get_shader_module_identifier_ext } else { @@ -7121,10 +6717,7 @@ pub mod ext { stringify!(get_shader_module_create_info_identifier_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetShaderModuleCreateInfoIdentifierEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkGetShaderModuleCreateInfoIdentifierEXT"); if val.is_null() { get_shader_module_create_info_identifier_ext } else { @@ -7269,8 +6862,7 @@ pub mod ext { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_shaders_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateShadersEXT\0"); - let val = _f(cname); + let val = _f(c"vkCreateShadersEXT"); if val.is_null() { create_shaders_ext } else { @@ -7285,8 +6877,7 @@ pub mod ext { ) { panic!(concat!("Unable to load ", stringify!(destroy_shader_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyShaderEXT\0"); - let val = _f(cname); + let val = _f(c"vkDestroyShaderEXT"); if val.is_null() { destroy_shader_ext } else { @@ -7305,9 +6896,7 @@ pub mod ext { stringify!(get_shader_binary_data_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetShaderBinaryDataEXT\0"); - let val = _f(cname); + let val = _f(c"vkGetShaderBinaryDataEXT"); if val.is_null() { get_shader_binary_data_ext } else { @@ -7323,8 +6912,7 @@ pub mod ext { ) { panic!(concat!("Unable to load ", stringify!(cmd_bind_shaders_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBindShadersEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindShadersEXT"); if val.is_null() { cmd_bind_shaders_ext } else { @@ -7341,8 +6929,7 @@ pub mod ext { stringify!(cmd_set_cull_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetCullModeEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetCullModeEXT"); if val.is_null() { cmd_set_cull_mode_ext } else { @@ -7359,8 +6946,7 @@ pub mod ext { stringify!(cmd_set_front_face_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetFrontFaceEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetFrontFaceEXT"); if val.is_null() { cmd_set_front_face_ext } else { @@ -7377,9 +6963,7 @@ pub mod ext { stringify!(cmd_set_primitive_topology_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetPrimitiveTopologyEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetPrimitiveTopologyEXT"); if val.is_null() { cmd_set_primitive_topology_ext } else { @@ -7397,9 +6981,7 @@ pub mod ext { stringify!(cmd_set_viewport_with_count_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetViewportWithCountEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetViewportWithCountEXT"); if val.is_null() { cmd_set_viewport_with_count_ext } else { @@ -7417,9 +6999,7 @@ pub mod ext { stringify!(cmd_set_scissor_with_count_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetScissorWithCountEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetScissorWithCountEXT"); if val.is_null() { cmd_set_scissor_with_count_ext } else { @@ -7441,9 +7021,7 @@ pub mod ext { stringify!(cmd_bind_vertex_buffers2_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBindVertexBuffers2EXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindVertexBuffers2EXT"); if val.is_null() { cmd_bind_vertex_buffers2_ext } else { @@ -7460,9 +7038,7 @@ pub mod ext { stringify!(cmd_set_depth_test_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthTestEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthTestEnableEXT"); if val.is_null() { cmd_set_depth_test_enable_ext } else { @@ -7479,9 +7055,7 @@ pub mod ext { stringify!(cmd_set_depth_write_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthWriteEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthWriteEnableEXT"); if val.is_null() { cmd_set_depth_write_enable_ext } else { @@ -7498,9 +7072,7 @@ pub mod ext { stringify!(cmd_set_depth_compare_op_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthCompareOpEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthCompareOpEXT"); if val.is_null() { cmd_set_depth_compare_op_ext } else { @@ -7517,10 +7089,7 @@ pub mod ext { stringify!(cmd_set_depth_bounds_test_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetDepthBoundsTestEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthBoundsTestEnableEXT"); if val.is_null() { cmd_set_depth_bounds_test_enable_ext } else { @@ -7537,9 +7106,7 @@ pub mod ext { stringify!(cmd_set_stencil_test_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetStencilTestEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetStencilTestEnableEXT"); if val.is_null() { cmd_set_stencil_test_enable_ext } else { @@ -7560,8 +7127,7 @@ pub mod ext { stringify!(cmd_set_stencil_op_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetStencilOpEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetStencilOpEXT"); if val.is_null() { cmd_set_stencil_op_ext } else { @@ -7581,9 +7147,7 @@ pub mod ext { stringify!(cmd_set_vertex_input_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetVertexInputEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetVertexInputEXT"); if val.is_null() { cmd_set_vertex_input_ext } else { @@ -7600,9 +7164,7 @@ pub mod ext { stringify!(cmd_set_patch_control_points_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetPatchControlPointsEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetPatchControlPointsEXT"); if val.is_null() { cmd_set_patch_control_points_ext } else { @@ -7619,10 +7181,7 @@ pub mod ext { stringify!(cmd_set_rasterizer_discard_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRasterizerDiscardEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRasterizerDiscardEnableEXT"); if val.is_null() { cmd_set_rasterizer_discard_enable_ext } else { @@ -7639,9 +7198,7 @@ pub mod ext { stringify!(cmd_set_depth_bias_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthBiasEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthBiasEnableEXT"); if val.is_null() { cmd_set_depth_bias_enable_ext } else { @@ -7655,8 +7212,7 @@ pub mod ext { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_logic_op_ext))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetLogicOpEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetLogicOpEXT"); if val.is_null() { cmd_set_logic_op_ext } else { @@ -7673,10 +7229,7 @@ pub mod ext { stringify!(cmd_set_primitive_restart_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetPrimitiveRestartEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetPrimitiveRestartEnableEXT"); if val.is_null() { cmd_set_primitive_restart_enable_ext } else { @@ -7693,10 +7246,7 @@ pub mod ext { stringify!(cmd_set_tessellation_domain_origin_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetTessellationDomainOriginEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetTessellationDomainOriginEXT"); if val.is_null() { cmd_set_tessellation_domain_origin_ext } else { @@ -7713,9 +7263,7 @@ pub mod ext { stringify!(cmd_set_depth_clamp_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthClampEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthClampEnableEXT"); if val.is_null() { cmd_set_depth_clamp_enable_ext } else { @@ -7732,9 +7280,7 @@ pub mod ext { stringify!(cmd_set_polygon_mode_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetPolygonModeEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetPolygonModeEXT"); if val.is_null() { cmd_set_polygon_mode_ext } else { @@ -7751,10 +7297,7 @@ pub mod ext { stringify!(cmd_set_rasterization_samples_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRasterizationSamplesEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRasterizationSamplesEXT"); if val.is_null() { cmd_set_rasterization_samples_ext } else { @@ -7772,8 +7315,7 @@ pub mod ext { stringify!(cmd_set_sample_mask_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetSampleMaskEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetSampleMaskEXT"); if val.is_null() { cmd_set_sample_mask_ext } else { @@ -7790,10 +7332,7 @@ pub mod ext { stringify!(cmd_set_alpha_to_coverage_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetAlphaToCoverageEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetAlphaToCoverageEnableEXT"); if val.is_null() { cmd_set_alpha_to_coverage_enable_ext } else { @@ -7810,9 +7349,7 @@ pub mod ext { stringify!(cmd_set_alpha_to_one_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetAlphaToOneEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetAlphaToOneEnableEXT"); if val.is_null() { cmd_set_alpha_to_one_enable_ext } else { @@ -7829,9 +7366,7 @@ pub mod ext { stringify!(cmd_set_logic_op_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetLogicOpEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetLogicOpEnableEXT"); if val.is_null() { cmd_set_logic_op_enable_ext } else { @@ -7850,9 +7385,7 @@ pub mod ext { stringify!(cmd_set_color_blend_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetColorBlendEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetColorBlendEnableEXT"); if val.is_null() { cmd_set_color_blend_enable_ext } else { @@ -7871,9 +7404,7 @@ pub mod ext { stringify!(cmd_set_color_blend_equation_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetColorBlendEquationEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetColorBlendEquationEXT"); if val.is_null() { cmd_set_color_blend_equation_ext } else { @@ -7892,9 +7423,7 @@ pub mod ext { stringify!(cmd_set_color_write_mask_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetColorWriteMaskEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetColorWriteMaskEXT"); if val.is_null() { cmd_set_color_write_mask_ext } else { @@ -7911,10 +7440,7 @@ pub mod ext { stringify!(cmd_set_rasterization_stream_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRasterizationStreamEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRasterizationStreamEXT"); if val.is_null() { cmd_set_rasterization_stream_ext } else { @@ -7931,10 +7457,7 @@ pub mod ext { stringify!(cmd_set_conservative_rasterization_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetConservativeRasterizationModeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetConservativeRasterizationModeEXT"); if val.is_null() { cmd_set_conservative_rasterization_mode_ext } else { @@ -7951,10 +7474,7 @@ pub mod ext { stringify!(cmd_set_extra_primitive_overestimation_size_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetExtraPrimitiveOverestimationSizeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetExtraPrimitiveOverestimationSizeEXT"); if val.is_null() { cmd_set_extra_primitive_overestimation_size_ext } else { @@ -7971,9 +7491,7 @@ pub mod ext { stringify!(cmd_set_depth_clip_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthClipEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthClipEnableEXT"); if val.is_null() { cmd_set_depth_clip_enable_ext } else { @@ -7990,10 +7508,7 @@ pub mod ext { stringify!(cmd_set_sample_locations_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetSampleLocationsEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetSampleLocationsEnableEXT"); if val.is_null() { cmd_set_sample_locations_enable_ext } else { @@ -8012,9 +7527,7 @@ pub mod ext { stringify!(cmd_set_color_blend_advanced_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetColorBlendAdvancedEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetColorBlendAdvancedEXT"); if val.is_null() { cmd_set_color_blend_advanced_ext } else { @@ -8031,10 +7544,7 @@ pub mod ext { stringify!(cmd_set_provoking_vertex_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetProvokingVertexModeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetProvokingVertexModeEXT"); if val.is_null() { cmd_set_provoking_vertex_mode_ext } else { @@ -8051,10 +7561,7 @@ pub mod ext { stringify!(cmd_set_line_rasterization_mode_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetLineRasterizationModeEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetLineRasterizationModeEXT"); if val.is_null() { cmd_set_line_rasterization_mode_ext } else { @@ -8071,9 +7578,7 @@ pub mod ext { stringify!(cmd_set_line_stipple_enable_ext) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetLineStippleEnableEXT\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetLineStippleEnableEXT"); if val.is_null() { cmd_set_line_stipple_enable_ext } else { @@ -8090,10 +7595,7 @@ pub mod ext { stringify!(cmd_set_depth_clip_negative_one_to_one_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetDepthClipNegativeOneToOneEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthClipNegativeOneToOneEXT"); if val.is_null() { cmd_set_depth_clip_negative_one_to_one_ext } else { @@ -8110,10 +7612,7 @@ pub mod ext { stringify!(cmd_set_viewport_w_scaling_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetViewportWScalingEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetViewportWScalingEnableNV"); if val.is_null() { cmd_set_viewport_w_scaling_enable_nv } else { @@ -8132,9 +7631,7 @@ pub mod ext { stringify!(cmd_set_viewport_swizzle_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetViewportSwizzleNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetViewportSwizzleNV"); if val.is_null() { cmd_set_viewport_swizzle_nv } else { @@ -8151,10 +7648,7 @@ pub mod ext { stringify!(cmd_set_coverage_to_color_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageToColorEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageToColorEnableNV"); if val.is_null() { cmd_set_coverage_to_color_enable_nv } else { @@ -8171,10 +7665,7 @@ pub mod ext { stringify!(cmd_set_coverage_to_color_location_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageToColorLocationNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageToColorLocationNV"); if val.is_null() { cmd_set_coverage_to_color_location_nv } else { @@ -8191,10 +7682,7 @@ pub mod ext { stringify!(cmd_set_coverage_modulation_mode_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageModulationModeNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageModulationModeNV"); if val.is_null() { cmd_set_coverage_modulation_mode_nv } else { @@ -8211,10 +7699,7 @@ pub mod ext { stringify!(cmd_set_coverage_modulation_table_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageModulationTableEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageModulationTableEnableNV"); if val.is_null() { cmd_set_coverage_modulation_table_enable_nv } else { @@ -8232,10 +7717,7 @@ pub mod ext { stringify!(cmd_set_coverage_modulation_table_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageModulationTableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageModulationTableNV"); if val.is_null() { cmd_set_coverage_modulation_table_nv } else { @@ -8252,10 +7734,7 @@ pub mod ext { stringify!(cmd_set_shading_rate_image_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetShadingRateImageEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetShadingRateImageEnableNV"); if val.is_null() { cmd_set_shading_rate_image_enable_nv } else { @@ -8272,10 +7751,7 @@ pub mod ext { stringify!(cmd_set_representative_fragment_test_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRepresentativeFragmentTestEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRepresentativeFragmentTestEnableNV"); if val.is_null() { cmd_set_representative_fragment_test_enable_nv } else { @@ -8292,10 +7768,7 @@ pub mod ext { stringify!(cmd_set_coverage_reduction_mode_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetCoverageReductionModeNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetCoverageReductionModeNV"); if val.is_null() { cmd_set_coverage_reduction_mode_nv } else { @@ -8392,10 +7865,7 @@ pub mod ext { stringify!(cmd_set_attachment_feedback_loop_enable_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetAttachmentFeedbackLoopEnableEXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetAttachmentFeedbackLoopEnableEXT"); if val.is_null() { cmd_set_attachment_feedback_loop_enable_ext } else { @@ -8464,10 +7934,7 @@ pub mod fuchsia { stringify!(create_image_pipe_surface_fuchsia) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateImagePipeSurfaceFUCHSIA\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateImagePipeSurfaceFUCHSIA"); if val.is_null() { create_image_pipe_surface_fuchsia } else { @@ -8534,10 +8001,7 @@ pub mod fuchsia { stringify!(get_memory_zircon_handle_fuchsia) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetMemoryZirconHandleFUCHSIA\0", - ); - let val = _f(cname); + let val = _f(c"vkGetMemoryZirconHandleFUCHSIA"); if val.is_null() { get_memory_zircon_handle_fuchsia } else { @@ -8556,10 +8020,7 @@ pub mod fuchsia { stringify!(get_memory_zircon_handle_properties_fuchsia) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetMemoryZirconHandlePropertiesFUCHSIA\0", - ); - let val = _f(cname); + let val = _f(c"vkGetMemoryZirconHandlePropertiesFUCHSIA"); if val.is_null() { get_memory_zircon_handle_properties_fuchsia } else { @@ -8624,10 +8085,7 @@ pub mod fuchsia { stringify!(import_semaphore_zircon_handle_fuchsia) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkImportSemaphoreZirconHandleFUCHSIA\0", - ); - let val = _f(cname); + let val = _f(c"vkImportSemaphoreZirconHandleFUCHSIA"); if val.is_null() { import_semaphore_zircon_handle_fuchsia } else { @@ -8647,10 +8105,7 @@ pub mod fuchsia { stringify!(get_semaphore_zircon_handle_fuchsia) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetSemaphoreZirconHandleFUCHSIA\0", - ); - let val = _f(cname); + let val = _f(c"vkGetSemaphoreZirconHandleFUCHSIA"); if val.is_null() { get_semaphore_zircon_handle_fuchsia } else { @@ -8723,10 +8178,7 @@ pub mod fuchsia { stringify!(create_buffer_collection_fuchsia) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateBufferCollectionFUCHSIA\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateBufferCollectionFUCHSIA"); if val.is_null() { create_buffer_collection_fuchsia } else { @@ -8744,10 +8196,7 @@ pub mod fuchsia { stringify!(set_buffer_collection_image_constraints_fuchsia) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkSetBufferCollectionImageConstraintsFUCHSIA\0", - ); - let val = _f(cname); + let val = _f(c"vkSetBufferCollectionImageConstraintsFUCHSIA"); if val.is_null() { set_buffer_collection_image_constraints_fuchsia } else { @@ -8765,10 +8214,7 @@ pub mod fuchsia { stringify!(set_buffer_collection_buffer_constraints_fuchsia) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkSetBufferCollectionBufferConstraintsFUCHSIA\0", - ); - let val = _f(cname); + let val = _f(c"vkSetBufferCollectionBufferConstraintsFUCHSIA"); if val.is_null() { set_buffer_collection_buffer_constraints_fuchsia } else { @@ -8786,10 +8232,7 @@ pub mod fuchsia { stringify!(destroy_buffer_collection_fuchsia) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkDestroyBufferCollectionFUCHSIA\0", - ); - let val = _f(cname); + let val = _f(c"vkDestroyBufferCollectionFUCHSIA"); if val.is_null() { destroy_buffer_collection_fuchsia } else { @@ -8807,10 +8250,7 @@ pub mod fuchsia { stringify!(get_buffer_collection_properties_fuchsia) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetBufferCollectionPropertiesFUCHSIA\0", - ); - let val = _f(cname); + let val = _f(c"vkGetBufferCollectionPropertiesFUCHSIA"); if val.is_null() { get_buffer_collection_properties_fuchsia } else { @@ -8879,10 +8319,7 @@ pub mod ggp { stringify!(create_stream_descriptor_surface_ggp) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateStreamDescriptorSurfaceGGP\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateStreamDescriptorSurfaceGGP"); if val.is_null() { create_stream_descriptor_surface_ggp } else { @@ -8959,10 +8396,7 @@ pub mod google { stringify!(get_refresh_cycle_duration_google) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetRefreshCycleDurationGOOGLE\0", - ); - let val = _f(cname); + let val = _f(c"vkGetRefreshCycleDurationGOOGLE"); if val.is_null() { get_refresh_cycle_duration_google } else { @@ -8981,10 +8415,7 @@ pub mod google { stringify!(get_past_presentation_timing_google) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPastPresentationTimingGOOGLE\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPastPresentationTimingGOOGLE"); if val.is_null() { get_past_presentation_timing_google } else { @@ -9086,10 +8517,7 @@ pub mod huawei { stringify!(get_device_subpass_shading_max_workgroup_size_huawei) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI"); if val.is_null() { get_device_subpass_shading_max_workgroup_size_huawei } else { @@ -9105,9 +8533,7 @@ pub mod huawei { stringify!(cmd_subpass_shading_huawei) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSubpassShadingHUAWEI\0"); - let val = _f(cname); + let val = _f(c"vkCmdSubpassShadingHUAWEI"); if val.is_null() { cmd_subpass_shading_huawei } else { @@ -9172,9 +8598,7 @@ pub mod huawei { stringify!(cmd_bind_invocation_mask_huawei) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBindInvocationMaskHUAWEI\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindInvocationMaskHUAWEI"); if val.is_null() { cmd_bind_invocation_mask_huawei } else { @@ -9241,9 +8665,7 @@ pub mod huawei { stringify!(cmd_draw_cluster_huawei) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawClusterHUAWEI\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawClusterHUAWEI"); if val.is_null() { cmd_draw_cluster_huawei } else { @@ -9261,10 +8683,7 @@ pub mod huawei { stringify!(cmd_draw_cluster_indirect_huawei) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdDrawClusterIndirectHUAWEI\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdDrawClusterIndirectHUAWEI"); if val.is_null() { cmd_draw_cluster_indirect_huawei } else { @@ -9375,10 +8794,7 @@ pub mod intel { stringify!(initialize_performance_api_intel) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkInitializePerformanceApiINTEL\0", - ); - let val = _f(cname); + let val = _f(c"vkInitializePerformanceApiINTEL"); if val.is_null() { initialize_performance_api_intel } else { @@ -9394,10 +8810,7 @@ pub mod intel { stringify!(uninitialize_performance_api_intel) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkUninitializePerformanceApiINTEL\0", - ); - let val = _f(cname); + let val = _f(c"vkUninitializePerformanceApiINTEL"); if val.is_null() { uninitialize_performance_api_intel } else { @@ -9414,10 +8827,7 @@ pub mod intel { stringify!(cmd_set_performance_marker_intel) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetPerformanceMarkerINTEL\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetPerformanceMarkerINTEL"); if val.is_null() { cmd_set_performance_marker_intel } else { @@ -9434,10 +8844,7 @@ pub mod intel { stringify!(cmd_set_performance_stream_marker_intel) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetPerformanceStreamMarkerINTEL\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetPerformanceStreamMarkerINTEL"); if val.is_null() { cmd_set_performance_stream_marker_intel } else { @@ -9454,10 +8861,7 @@ pub mod intel { stringify!(cmd_set_performance_override_intel) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetPerformanceOverrideINTEL\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetPerformanceOverrideINTEL"); if val.is_null() { cmd_set_performance_override_intel } else { @@ -9475,10 +8879,7 @@ pub mod intel { stringify!(acquire_performance_configuration_intel) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkAcquirePerformanceConfigurationINTEL\0", - ); - let val = _f(cname); + let val = _f(c"vkAcquirePerformanceConfigurationINTEL"); if val.is_null() { acquire_performance_configuration_intel } else { @@ -9495,10 +8896,7 @@ pub mod intel { stringify!(release_performance_configuration_intel) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkReleasePerformanceConfigurationINTEL\0", - ); - let val = _f(cname); + let val = _f(c"vkReleasePerformanceConfigurationINTEL"); if val.is_null() { release_performance_configuration_intel } else { @@ -9515,10 +8913,7 @@ pub mod intel { stringify!(queue_set_performance_configuration_intel) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkQueueSetPerformanceConfigurationINTEL\0", - ); - let val = _f(cname); + let val = _f(c"vkQueueSetPerformanceConfigurationINTEL"); if val.is_null() { queue_set_performance_configuration_intel } else { @@ -9536,10 +8931,7 @@ pub mod intel { stringify!(get_performance_parameter_intel) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPerformanceParameterINTEL\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPerformanceParameterINTEL"); if val.is_null() { get_performance_parameter_intel } else { @@ -9610,8 +9002,7 @@ pub mod khr { ) { panic!(concat!("Unable to load ", stringify!(destroy_surface_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroySurfaceKHR\0"); - let val = _f(cname); + let val = _f(c"vkDestroySurfaceKHR"); if val.is_null() { destroy_surface_khr } else { @@ -9630,10 +9021,7 @@ pub mod khr { stringify!(get_physical_device_surface_support_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSurfaceSupportKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSurfaceSupportKHR"); if val.is_null() { get_physical_device_surface_support_khr } else { @@ -9651,10 +9039,7 @@ pub mod khr { stringify!(get_physical_device_surface_capabilities_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSurfaceCapabilitiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSurfaceCapabilitiesKHR"); if val.is_null() { get_physical_device_surface_capabilities_khr } else { @@ -9673,10 +9058,7 @@ pub mod khr { stringify!(get_physical_device_surface_formats_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSurfaceFormatsKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSurfaceFormatsKHR"); if val.is_null() { get_physical_device_surface_formats_khr } else { @@ -9695,10 +9077,7 @@ pub mod khr { stringify!(get_physical_device_surface_present_modes_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSurfacePresentModesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSurfacePresentModesKHR"); if val.is_null() { get_physical_device_surface_present_modes_khr } else { @@ -9765,10 +9144,7 @@ pub mod khr { stringify!(get_physical_device_present_rectangles_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDevicePresentRectanglesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDevicePresentRectanglesKHR"); if val.is_null() { get_physical_device_present_rectangles_khr } else { @@ -9832,8 +9208,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_swapchain_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateSwapchainKHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateSwapchainKHR"); if val.is_null() { create_swapchain_khr } else { @@ -9851,8 +9226,7 @@ pub mod khr { stringify!(destroy_swapchain_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroySwapchainKHR\0"); - let val = _f(cname); + let val = _f(c"vkDestroySwapchainKHR"); if val.is_null() { destroy_swapchain_khr } else { @@ -9871,9 +9245,7 @@ pub mod khr { stringify!(get_swapchain_images_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetSwapchainImagesKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetSwapchainImagesKHR"); if val.is_null() { get_swapchain_images_khr } else { @@ -9894,8 +9266,7 @@ pub mod khr { stringify!(acquire_next_image_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkAcquireNextImageKHR\0"); - let val = _f(cname); + let val = _f(c"vkAcquireNextImageKHR"); if val.is_null() { acquire_next_image_khr } else { @@ -9909,8 +9280,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(queue_present_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkQueuePresentKHR\0"); - let val = _f(cname); + let val = _f(c"vkQueuePresentKHR"); if val.is_null() { queue_present_khr } else { @@ -9927,10 +9297,7 @@ pub mod khr { stringify!(get_device_group_present_capabilities_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceGroupPresentCapabilitiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceGroupPresentCapabilitiesKHR"); if val.is_null() { get_device_group_present_capabilities_khr } else { @@ -9948,10 +9315,7 @@ pub mod khr { stringify!(get_device_group_surface_present_modes_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceGroupSurfacePresentModesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceGroupSurfacePresentModesKHR"); if val.is_null() { get_device_group_surface_present_modes_khr } else { @@ -9969,9 +9333,7 @@ pub mod khr { stringify!(acquire_next_image2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkAcquireNextImage2KHR\0"); - let val = _f(cname); + let val = _f(c"vkAcquireNextImage2KHR"); if val.is_null() { acquire_next_image2_khr } else { @@ -10044,10 +9406,7 @@ pub mod khr { stringify!(get_physical_device_display_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceDisplayPropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceDisplayPropertiesKHR"); if val.is_null() { get_physical_device_display_properties_khr } else { @@ -10065,10 +9424,7 @@ pub mod khr { stringify!(get_physical_device_display_plane_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceDisplayPlanePropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceDisplayPlanePropertiesKHR"); if val.is_null() { get_physical_device_display_plane_properties_khr } else { @@ -10087,10 +9443,7 @@ pub mod khr { stringify!(get_display_plane_supported_displays_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDisplayPlaneSupportedDisplaysKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDisplayPlaneSupportedDisplaysKHR"); if val.is_null() { get_display_plane_supported_displays_khr } else { @@ -10109,9 +9462,7 @@ pub mod khr { stringify!(get_display_mode_properties_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetDisplayModePropertiesKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetDisplayModePropertiesKHR"); if val.is_null() { get_display_mode_properties_khr } else { @@ -10131,9 +9482,7 @@ pub mod khr { stringify!(create_display_mode_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateDisplayModeKHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateDisplayModeKHR"); if val.is_null() { create_display_mode_khr } else { @@ -10152,10 +9501,7 @@ pub mod khr { stringify!(get_display_plane_capabilities_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDisplayPlaneCapabilitiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDisplayPlaneCapabilitiesKHR"); if val.is_null() { get_display_plane_capabilities_khr } else { @@ -10174,10 +9520,7 @@ pub mod khr { stringify!(create_display_plane_surface_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateDisplayPlaneSurfaceKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateDisplayPlaneSurfaceKHR"); if val.is_null() { create_display_plane_surface_khr } else { @@ -10244,9 +9587,7 @@ pub mod khr { stringify!(create_shared_swapchains_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateSharedSwapchainsKHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateSharedSwapchainsKHR"); if val.is_null() { create_shared_swapchains_khr } else { @@ -10314,9 +9655,7 @@ pub mod khr { stringify!(create_xlib_surface_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateXlibSurfaceKHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateXlibSurfaceKHR"); if val.is_null() { create_xlib_surface_khr } else { @@ -10335,10 +9674,7 @@ pub mod khr { stringify!(get_physical_device_xlib_presentation_support_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceXlibPresentationSupportKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceXlibPresentationSupportKHR"); if val.is_null() { get_physical_device_xlib_presentation_support_khr } else { @@ -10406,8 +9742,7 @@ pub mod khr { stringify!(create_xcb_surface_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateXcbSurfaceKHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateXcbSurfaceKHR"); if val.is_null() { create_xcb_surface_khr } else { @@ -10426,10 +9761,7 @@ pub mod khr { stringify!(get_physical_device_xcb_presentation_support_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceXcbPresentationSupportKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceXcbPresentationSupportKHR"); if val.is_null() { get_physical_device_xcb_presentation_support_khr } else { @@ -10497,9 +9829,7 @@ pub mod khr { stringify!(create_wayland_surface_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateWaylandSurfaceKHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateWaylandSurfaceKHR"); if val.is_null() { create_wayland_surface_khr } else { @@ -10517,10 +9847,7 @@ pub mod khr { stringify!(get_physical_device_wayland_presentation_support_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceWaylandPresentationSupportKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceWaylandPresentationSupportKHR"); if val.is_null() { get_physical_device_wayland_presentation_support_khr } else { @@ -10586,9 +9913,7 @@ pub mod khr { stringify!(create_android_surface_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateAndroidSurfaceKHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateAndroidSurfaceKHR"); if val.is_null() { create_android_surface_khr } else { @@ -10656,9 +9981,7 @@ pub mod khr { stringify!(create_win32_surface_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateWin32SurfaceKHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateWin32SurfaceKHR"); if val.is_null() { create_win32_surface_khr } else { @@ -10675,10 +9998,7 @@ pub mod khr { stringify!(get_physical_device_win32_presentation_support_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceWin32PresentationSupportKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceWin32PresentationSupportKHR"); if val.is_null() { get_physical_device_win32_presentation_support_khr } else { @@ -10754,10 +10074,7 @@ pub mod khr { stringify!(get_physical_device_video_capabilities_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceVideoCapabilitiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceVideoCapabilitiesKHR"); if val.is_null() { get_physical_device_video_capabilities_khr } else { @@ -10776,10 +10093,7 @@ pub mod khr { stringify!(get_physical_device_video_format_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceVideoFormatPropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceVideoFormatPropertiesKHR"); if val.is_null() { get_physical_device_video_format_properties_khr } else { @@ -10847,9 +10161,7 @@ pub mod khr { stringify!(create_video_session_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateVideoSessionKHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateVideoSessionKHR"); if val.is_null() { create_video_session_khr } else { @@ -10867,9 +10179,7 @@ pub mod khr { stringify!(destroy_video_session_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDestroyVideoSessionKHR\0"); - let val = _f(cname); + let val = _f(c"vkDestroyVideoSessionKHR"); if val.is_null() { destroy_video_session_khr } else { @@ -10888,10 +10198,7 @@ pub mod khr { stringify!(get_video_session_memory_requirements_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetVideoSessionMemoryRequirementsKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetVideoSessionMemoryRequirementsKHR"); if val.is_null() { get_video_session_memory_requirements_khr } else { @@ -10910,9 +10217,7 @@ pub mod khr { stringify!(bind_video_session_memory_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkBindVideoSessionMemoryKHR\0"); - let val = _f(cname); + let val = _f(c"vkBindVideoSessionMemoryKHR"); if val.is_null() { bind_video_session_memory_khr } else { @@ -10931,10 +10236,7 @@ pub mod khr { stringify!(create_video_session_parameters_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateVideoSessionParametersKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateVideoSessionParametersKHR"); if val.is_null() { create_video_session_parameters_khr } else { @@ -10952,10 +10254,7 @@ pub mod khr { stringify!(update_video_session_parameters_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkUpdateVideoSessionParametersKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkUpdateVideoSessionParametersKHR"); if val.is_null() { update_video_session_parameters_khr } else { @@ -10973,10 +10272,7 @@ pub mod khr { stringify!(destroy_video_session_parameters_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkDestroyVideoSessionParametersKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkDestroyVideoSessionParametersKHR"); if val.is_null() { destroy_video_session_parameters_khr } else { @@ -10993,9 +10289,7 @@ pub mod khr { stringify!(cmd_begin_video_coding_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBeginVideoCodingKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdBeginVideoCodingKHR"); if val.is_null() { cmd_begin_video_coding_khr } else { @@ -11012,9 +10306,7 @@ pub mod khr { stringify!(cmd_end_video_coding_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdEndVideoCodingKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdEndVideoCodingKHR"); if val.is_null() { cmd_end_video_coding_khr } else { @@ -11031,9 +10323,7 @@ pub mod khr { stringify!(cmd_control_video_coding_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdControlVideoCodingKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdControlVideoCodingKHR"); if val.is_null() { cmd_control_video_coding_khr } else { @@ -11094,8 +10384,7 @@ pub mod khr { ) { panic!(concat!("Unable to load ", stringify!(cmd_decode_video_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDecodeVideoKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdDecodeVideoKHR"); if val.is_null() { cmd_decode_video_khr } else { @@ -11184,9 +10473,7 @@ pub mod khr { stringify!(cmd_begin_rendering_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBeginRenderingKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdBeginRenderingKHR"); if val.is_null() { cmd_begin_rendering_khr } else { @@ -11202,8 +10489,7 @@ pub mod khr { stringify!(cmd_end_rendering_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdEndRenderingKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdEndRenderingKHR"); if val.is_null() { cmd_end_rendering_khr } else { @@ -11286,10 +10572,7 @@ pub mod khr { stringify!(get_physical_device_features2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceFeatures2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceFeatures2KHR"); if val.is_null() { get_physical_device_features2_khr } else { @@ -11306,10 +10589,7 @@ pub mod khr { stringify!(get_physical_device_properties2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceProperties2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceProperties2KHR"); if val.is_null() { get_physical_device_properties2_khr } else { @@ -11327,10 +10607,7 @@ pub mod khr { stringify!(get_physical_device_format_properties2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceFormatProperties2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceFormatProperties2KHR"); if val.is_null() { get_physical_device_format_properties2_khr } else { @@ -11348,10 +10625,7 @@ pub mod khr { stringify!(get_physical_device_image_format_properties2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceImageFormatProperties2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceImageFormatProperties2KHR"); if val.is_null() { get_physical_device_image_format_properties2_khr } else { @@ -11369,10 +10643,7 @@ pub mod khr { stringify!(get_physical_device_queue_family_properties2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceQueueFamilyProperties2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceQueueFamilyProperties2KHR"); if val.is_null() { get_physical_device_queue_family_properties2_khr } else { @@ -11389,10 +10660,7 @@ pub mod khr { stringify!(get_physical_device_memory_properties2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceMemoryProperties2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceMemoryProperties2KHR"); if val.is_null() { get_physical_device_memory_properties2_khr } else { @@ -11411,10 +10679,7 @@ pub mod khr { stringify!(get_physical_device_sparse_image_format_properties2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSparseImageFormatProperties2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSparseImageFormatProperties2KHR"); if val.is_null() { get_physical_device_sparse_image_format_properties2_khr } else { @@ -11481,10 +10746,7 @@ pub mod khr { stringify!(get_physical_device_present_rectangles_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDevicePresentRectanglesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDevicePresentRectanglesKHR"); if val.is_null() { get_physical_device_present_rectangles_khr } else { @@ -11550,10 +10812,7 @@ pub mod khr { stringify!(get_device_group_peer_memory_features_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceGroupPeerMemoryFeaturesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceGroupPeerMemoryFeaturesKHR"); if val.is_null() { get_device_group_peer_memory_features_khr } else { @@ -11570,8 +10829,7 @@ pub mod khr { stringify!(cmd_set_device_mask_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDeviceMaskKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDeviceMaskKHR"); if val.is_null() { cmd_set_device_mask_khr } else { @@ -11593,8 +10851,7 @@ pub mod khr { stringify!(cmd_dispatch_base_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDispatchBaseKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdDispatchBaseKHR"); if val.is_null() { cmd_dispatch_base_khr } else { @@ -11611,10 +10868,7 @@ pub mod khr { stringify!(get_device_group_present_capabilities_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceGroupPresentCapabilitiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceGroupPresentCapabilitiesKHR"); if val.is_null() { get_device_group_present_capabilities_khr } else { @@ -11632,10 +10886,7 @@ pub mod khr { stringify!(get_device_group_surface_present_modes_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceGroupSurfacePresentModesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceGroupSurfacePresentModesKHR"); if val.is_null() { get_device_group_surface_present_modes_khr } else { @@ -11653,9 +10904,7 @@ pub mod khr { stringify!(acquire_next_image2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkAcquireNextImage2KHR\0"); - let val = _f(cname); + let val = _f(c"vkAcquireNextImage2KHR"); if val.is_null() { acquire_next_image2_khr } else { @@ -11728,8 +10977,7 @@ pub mod khr { stringify!(trim_command_pool_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkTrimCommandPoolKHR\0"); - let val = _f(cname); + let val = _f(c"vkTrimCommandPoolKHR"); if val.is_null() { trim_command_pool_khr } else { @@ -11796,10 +11044,7 @@ pub mod khr { stringify!(enumerate_physical_device_groups_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkEnumeratePhysicalDeviceGroupsKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkEnumeratePhysicalDeviceGroupsKHR"); if val.is_null() { enumerate_physical_device_groups_khr } else { @@ -11865,10 +11110,7 @@ pub mod khr { stringify!(get_physical_device_external_buffer_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceExternalBufferPropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceExternalBufferPropertiesKHR"); if val.is_null() { get_physical_device_external_buffer_properties_khr } else { @@ -11942,9 +11184,7 @@ pub mod khr { stringify!(get_memory_win32_handle_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetMemoryWin32HandleKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetMemoryWin32HandleKHR"); if val.is_null() { get_memory_win32_handle_khr } else { @@ -11965,10 +11205,7 @@ pub mod khr { stringify!(get_memory_win32_handle_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetMemoryWin32HandlePropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetMemoryWin32HandlePropertiesKHR"); if val.is_null() { get_memory_win32_handle_properties_khr } else { @@ -12031,8 +11268,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(get_memory_fd_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetMemoryFdKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetMemoryFdKHR"); if val.is_null() { get_memory_fd_khr } else { @@ -12051,9 +11287,7 @@ pub mod khr { stringify!(get_memory_fd_properties_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetMemoryFdPropertiesKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetMemoryFdPropertiesKHR"); if val.is_null() { get_memory_fd_properties_khr } else { @@ -12129,10 +11363,7 @@ pub mod khr { stringify!(get_physical_device_external_semaphore_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceExternalSemaphorePropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceExternalSemaphorePropertiesKHR"); if val.is_null() { get_physical_device_external_semaphore_properties_khr } else { @@ -12205,10 +11436,7 @@ pub mod khr { stringify!(import_semaphore_win32_handle_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkImportSemaphoreWin32HandleKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkImportSemaphoreWin32HandleKHR"); if val.is_null() { import_semaphore_win32_handle_khr } else { @@ -12226,9 +11454,7 @@ pub mod khr { stringify!(get_semaphore_win32_handle_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetSemaphoreWin32HandleKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetSemaphoreWin32HandleKHR"); if val.is_null() { get_semaphore_win32_handle_khr } else { @@ -12293,9 +11519,7 @@ pub mod khr { stringify!(import_semaphore_fd_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkImportSemaphoreFdKHR\0"); - let val = _f(cname); + let val = _f(c"vkImportSemaphoreFdKHR"); if val.is_null() { import_semaphore_fd_khr } else { @@ -12310,8 +11534,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(get_semaphore_fd_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetSemaphoreFdKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetSemaphoreFdKHR"); if val.is_null() { get_semaphore_fd_khr } else { @@ -12381,9 +11604,7 @@ pub mod khr { stringify!(cmd_push_descriptor_set_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdPushDescriptorSetKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdPushDescriptorSetKHR"); if val.is_null() { cmd_push_descriptor_set_khr } else { @@ -12403,10 +11624,7 @@ pub mod khr { stringify!(cmd_push_descriptor_set_with_template_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdPushDescriptorSetWithTemplateKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdPushDescriptorSetWithTemplateKHR"); if val.is_null() { cmd_push_descriptor_set_with_template_khr } else { @@ -12500,10 +11718,7 @@ pub mod khr { stringify!(create_descriptor_update_template_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateDescriptorUpdateTemplateKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateDescriptorUpdateTemplateKHR"); if val.is_null() { create_descriptor_update_template_khr } else { @@ -12521,10 +11736,7 @@ pub mod khr { stringify!(destroy_descriptor_update_template_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkDestroyDescriptorUpdateTemplateKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkDestroyDescriptorUpdateTemplateKHR"); if val.is_null() { destroy_descriptor_update_template_khr } else { @@ -12543,10 +11755,7 @@ pub mod khr { stringify!(update_descriptor_set_with_template_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkUpdateDescriptorSetWithTemplateKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkUpdateDescriptorSetWithTemplateKHR"); if val.is_null() { update_descriptor_set_with_template_khr } else { @@ -12566,10 +11775,7 @@ pub mod khr { stringify!(cmd_push_descriptor_set_with_template_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdPushDescriptorSetWithTemplateKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdPushDescriptorSetWithTemplateKHR"); if val.is_null() { cmd_push_descriptor_set_with_template_khr } else { @@ -12646,9 +11852,7 @@ pub mod khr { stringify!(create_render_pass2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateRenderPass2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateRenderPass2KHR"); if val.is_null() { create_render_pass2_khr } else { @@ -12666,9 +11870,7 @@ pub mod khr { stringify!(cmd_begin_render_pass2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBeginRenderPass2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdBeginRenderPass2KHR"); if val.is_null() { cmd_begin_render_pass2_khr } else { @@ -12686,8 +11888,7 @@ pub mod khr { stringify!(cmd_next_subpass2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdNextSubpass2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdNextSubpass2KHR"); if val.is_null() { cmd_next_subpass2_khr } else { @@ -12704,9 +11905,7 @@ pub mod khr { stringify!(cmd_end_render_pass2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdEndRenderPass2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdEndRenderPass2KHR"); if val.is_null() { cmd_end_render_pass2_khr } else { @@ -12770,9 +11969,7 @@ pub mod khr { stringify!(get_swapchain_status_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetSwapchainStatusKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetSwapchainStatusKHR"); if val.is_null() { get_swapchain_status_khr } else { @@ -12838,10 +12035,7 @@ pub mod khr { stringify!(get_physical_device_external_fence_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceExternalFencePropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceExternalFencePropertiesKHR"); if val.is_null() { get_physical_device_external_fence_properties_khr } else { @@ -12916,9 +12110,7 @@ pub mod khr { stringify!(import_fence_win32_handle_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkImportFenceWin32HandleKHR\0"); - let val = _f(cname); + let val = _f(c"vkImportFenceWin32HandleKHR"); if val.is_null() { import_fence_win32_handle_khr } else { @@ -12936,9 +12128,7 @@ pub mod khr { stringify!(get_fence_win32_handle_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetFenceWin32HandleKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetFenceWin32HandleKHR"); if val.is_null() { get_fence_win32_handle_khr } else { @@ -13000,8 +12190,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(import_fence_fd_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkImportFenceFdKHR\0"); - let val = _f(cname); + let val = _f(c"vkImportFenceFdKHR"); if val.is_null() { import_fence_fd_khr } else { @@ -13016,8 +12205,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(get_fence_fd_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetFenceFdKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetFenceFdKHR"); if val.is_null() { get_fence_fd_khr } else { @@ -13084,10 +12272,8 @@ pub mod khr { ) -> Result { panic ! (concat ! ("Unable to load " , stringify ! (enumerate_physical_device_queue_family_performance_query_counters_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR\0", - ); - let val = _f(cname); + let val = + _f(c"vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR"); if val.is_null() { enumerate_physical_device_queue_family_performance_query_counters_khr } else { @@ -13107,10 +12293,7 @@ pub mod khr { ) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR"); if val.is_null() { get_physical_device_queue_family_performance_query_passes_khr } else { @@ -13167,9 +12350,7 @@ pub mod khr { stringify!(acquire_profiling_lock_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkAcquireProfilingLockKHR\0"); - let val = _f(cname); + let val = _f(c"vkAcquireProfilingLockKHR"); if val.is_null() { acquire_profiling_lock_khr } else { @@ -13185,9 +12366,7 @@ pub mod khr { stringify!(release_profiling_lock_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkReleaseProfilingLockKHR\0"); - let val = _f(cname); + let val = _f(c"vkReleaseProfilingLockKHR"); if val.is_null() { release_profiling_lock_khr } else { @@ -13262,10 +12441,7 @@ pub mod khr { stringify!(get_physical_device_surface_capabilities2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSurfaceCapabilities2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSurfaceCapabilities2KHR"); if val.is_null() { get_physical_device_surface_capabilities2_khr } else { @@ -13284,10 +12460,7 @@ pub mod khr { stringify!(get_physical_device_surface_formats2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSurfaceFormats2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSurfaceFormats2KHR"); if val.is_null() { get_physical_device_surface_formats2_khr } else { @@ -13365,10 +12538,7 @@ pub mod khr { stringify!(get_physical_device_display_properties2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceDisplayProperties2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceDisplayProperties2KHR"); if val.is_null() { get_physical_device_display_properties2_khr } else { @@ -13386,10 +12556,7 @@ pub mod khr { stringify!(get_physical_device_display_plane_properties2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceDisplayPlaneProperties2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceDisplayPlaneProperties2KHR"); if val.is_null() { get_physical_device_display_plane_properties2_khr } else { @@ -13408,10 +12575,7 @@ pub mod khr { stringify!(get_display_mode_properties2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDisplayModeProperties2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDisplayModeProperties2KHR"); if val.is_null() { get_display_mode_properties2_khr } else { @@ -13429,10 +12593,7 @@ pub mod khr { stringify!(get_display_plane_capabilities2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDisplayPlaneCapabilities2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDisplayPlaneCapabilities2KHR"); if val.is_null() { get_display_plane_capabilities2_khr } else { @@ -13523,10 +12684,7 @@ pub mod khr { stringify!(get_image_memory_requirements2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetImageMemoryRequirements2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetImageMemoryRequirements2KHR"); if val.is_null() { get_image_memory_requirements2_khr } else { @@ -13544,10 +12702,7 @@ pub mod khr { stringify!(get_buffer_memory_requirements2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetBufferMemoryRequirements2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetBufferMemoryRequirements2KHR"); if val.is_null() { get_buffer_memory_requirements2_khr } else { @@ -13566,10 +12721,7 @@ pub mod khr { stringify!(get_image_sparse_memory_requirements2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetImageSparseMemoryRequirements2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetImageSparseMemoryRequirements2KHR"); if val.is_null() { get_image_sparse_memory_requirements2_khr } else { @@ -13668,10 +12820,7 @@ pub mod khr { stringify!(create_acceleration_structure_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateAccelerationStructureKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateAccelerationStructureKHR"); if val.is_null() { create_acceleration_structure_khr } else { @@ -13689,10 +12838,7 @@ pub mod khr { stringify!(destroy_acceleration_structure_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkDestroyAccelerationStructureKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkDestroyAccelerationStructureKHR"); if val.is_null() { destroy_acceleration_structure_khr } else { @@ -13711,10 +12857,7 @@ pub mod khr { stringify!(cmd_build_acceleration_structures_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdBuildAccelerationStructuresKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdBuildAccelerationStructuresKHR"); if val.is_null() { cmd_build_acceleration_structures_khr } else { @@ -13735,10 +12878,7 @@ pub mod khr { stringify!(cmd_build_acceleration_structures_indirect_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdBuildAccelerationStructuresIndirectKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdBuildAccelerationStructuresIndirectKHR"); if val.is_null() { cmd_build_acceleration_structures_indirect_khr } else { @@ -13758,10 +12898,7 @@ pub mod khr { stringify!(build_acceleration_structures_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkBuildAccelerationStructuresKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkBuildAccelerationStructuresKHR"); if val.is_null() { build_acceleration_structures_khr } else { @@ -13779,10 +12916,7 @@ pub mod khr { stringify!(copy_acceleration_structure_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCopyAccelerationStructureKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCopyAccelerationStructureKHR"); if val.is_null() { copy_acceleration_structure_khr } else { @@ -13800,10 +12934,7 @@ pub mod khr { stringify!(copy_acceleration_structure_to_memory_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCopyAccelerationStructureToMemoryKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCopyAccelerationStructureToMemoryKHR"); if val.is_null() { copy_acceleration_structure_to_memory_khr } else { @@ -13821,10 +12952,7 @@ pub mod khr { stringify!(copy_memory_to_acceleration_structure_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCopyMemoryToAccelerationStructureKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCopyMemoryToAccelerationStructureKHR"); if val.is_null() { copy_memory_to_acceleration_structure_khr } else { @@ -13846,10 +12974,7 @@ pub mod khr { stringify!(write_acceleration_structures_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkWriteAccelerationStructuresPropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkWriteAccelerationStructuresPropertiesKHR"); if val.is_null() { write_acceleration_structures_properties_khr } else { @@ -13866,10 +12991,7 @@ pub mod khr { stringify!(cmd_copy_acceleration_structure_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdCopyAccelerationStructureKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdCopyAccelerationStructureKHR"); if val.is_null() { cmd_copy_acceleration_structure_khr } else { @@ -13886,10 +13008,7 @@ pub mod khr { stringify!(cmd_copy_acceleration_structure_to_memory_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdCopyAccelerationStructureToMemoryKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdCopyAccelerationStructureToMemoryKHR"); if val.is_null() { cmd_copy_acceleration_structure_to_memory_khr } else { @@ -13906,10 +13025,7 @@ pub mod khr { stringify!(cmd_copy_memory_to_acceleration_structure_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdCopyMemoryToAccelerationStructureKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdCopyMemoryToAccelerationStructureKHR"); if val.is_null() { cmd_copy_memory_to_acceleration_structure_khr } else { @@ -13926,10 +13042,7 @@ pub mod khr { stringify!(get_acceleration_structure_device_address_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetAccelerationStructureDeviceAddressKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetAccelerationStructureDeviceAddressKHR"); if val.is_null() { get_acceleration_structure_device_address_khr } else { @@ -13950,10 +13063,7 @@ pub mod khr { stringify!(cmd_write_acceleration_structures_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdWriteAccelerationStructuresPropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdWriteAccelerationStructuresPropertiesKHR"); if val.is_null() { cmd_write_acceleration_structures_properties_khr } else { @@ -13971,10 +13081,7 @@ pub mod khr { stringify!(get_device_acceleration_structure_compatibility_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceAccelerationStructureCompatibilityKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceAccelerationStructureCompatibilityKHR"); if val.is_null() { get_device_acceleration_structure_compatibility_khr } else { @@ -13994,10 +13101,7 @@ pub mod khr { stringify!(get_acceleration_structure_build_sizes_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetAccelerationStructureBuildSizesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetAccelerationStructureBuildSizesKHR"); if val.is_null() { get_acceleration_structure_build_sizes_khr } else { @@ -14073,8 +13177,7 @@ pub mod khr { ) { panic!(concat!("Unable to load ", stringify!(cmd_trace_rays_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdTraceRaysKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdTraceRaysKHR"); if val.is_null() { cmd_trace_rays_khr } else { @@ -14096,10 +13199,7 @@ pub mod khr { stringify!(create_ray_tracing_pipelines_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateRayTracingPipelinesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateRayTracingPipelinesKHR"); if val.is_null() { create_ray_tracing_pipelines_khr } else { @@ -14120,10 +13220,7 @@ pub mod khr { stringify!(get_ray_tracing_shader_group_handles_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetRayTracingShaderGroupHandlesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetRayTracingShaderGroupHandlesKHR"); if val.is_null() { get_ray_tracing_shader_group_handles_khr } else { @@ -14144,10 +13241,7 @@ pub mod khr { stringify!(get_ray_tracing_capture_replay_shader_group_handles_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetRayTracingCaptureReplayShaderGroupHandlesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetRayTracingCaptureReplayShaderGroupHandlesKHR"); if val.is_null() { get_ray_tracing_capture_replay_shader_group_handles_khr } else { @@ -14168,9 +13262,7 @@ pub mod khr { stringify!(cmd_trace_rays_indirect_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdTraceRaysIndirectKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdTraceRaysIndirectKHR"); if val.is_null() { cmd_trace_rays_indirect_khr } else { @@ -14189,10 +13281,7 @@ pub mod khr { stringify!(get_ray_tracing_shader_group_stack_size_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetRayTracingShaderGroupStackSizeKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetRayTracingShaderGroupStackSizeKHR"); if val.is_null() { get_ray_tracing_shader_group_stack_size_khr } else { @@ -14209,10 +13298,7 @@ pub mod khr { stringify!(cmd_set_ray_tracing_pipeline_stack_size_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRayTracingPipelineStackSizeKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRayTracingPipelineStackSizeKHR"); if val.is_null() { cmd_set_ray_tracing_pipeline_stack_size_khr } else { @@ -14287,10 +13373,7 @@ pub mod khr { stringify!(create_sampler_ycbcr_conversion_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateSamplerYcbcrConversionKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateSamplerYcbcrConversionKHR"); if val.is_null() { create_sampler_ycbcr_conversion_khr } else { @@ -14308,10 +13391,7 @@ pub mod khr { stringify!(destroy_sampler_ycbcr_conversion_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkDestroySamplerYcbcrConversionKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkDestroySamplerYcbcrConversionKHR"); if val.is_null() { destroy_sampler_ycbcr_conversion_khr } else { @@ -14377,9 +13457,7 @@ pub mod khr { stringify!(bind_buffer_memory2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkBindBufferMemory2KHR\0"); - let val = _f(cname); + let val = _f(c"vkBindBufferMemory2KHR"); if val.is_null() { bind_buffer_memory2_khr } else { @@ -14397,8 +13475,7 @@ pub mod khr { stringify!(bind_image_memory2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkBindImageMemory2KHR\0"); - let val = _f(cname); + let val = _f(c"vkBindImageMemory2KHR"); if val.is_null() { bind_image_memory2_khr } else { @@ -14471,10 +13548,7 @@ pub mod khr { stringify!(get_descriptor_set_layout_support_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDescriptorSetLayoutSupportKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDescriptorSetLayoutSupportKHR"); if val.is_null() { get_descriptor_set_layout_support_khr } else { @@ -14544,9 +13618,7 @@ pub mod khr { stringify!(cmd_draw_indirect_count_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawIndirectCountKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawIndirectCountKHR"); if val.is_null() { cmd_draw_indirect_count_khr } else { @@ -14568,10 +13640,7 @@ pub mod khr { stringify!(cmd_draw_indexed_indirect_count_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdDrawIndexedIndirectCountKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdDrawIndexedIndirectCountKHR"); if val.is_null() { cmd_draw_indexed_indirect_count_khr } else { @@ -14718,9 +13787,7 @@ pub mod khr { stringify!(get_semaphore_counter_value_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetSemaphoreCounterValueKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetSemaphoreCounterValueKHR"); if val.is_null() { get_semaphore_counter_value_khr } else { @@ -14735,8 +13802,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(wait_semaphores_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkWaitSemaphoresKHR\0"); - let val = _f(cname); + let val = _f(c"vkWaitSemaphoresKHR"); if val.is_null() { wait_semaphores_khr } else { @@ -14750,8 +13816,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(signal_semaphore_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkSignalSemaphoreKHR\0"); - let val = _f(cname); + let val = _f(c"vkSignalSemaphoreKHR"); if val.is_null() { signal_semaphore_khr } else { @@ -14835,10 +13900,7 @@ pub mod khr { stringify!(get_physical_device_fragment_shading_rates_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceFragmentShadingRatesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceFragmentShadingRatesKHR"); if val.is_null() { get_physical_device_fragment_shading_rates_khr } else { @@ -14895,10 +13957,7 @@ pub mod khr { stringify!(cmd_set_fragment_shading_rate_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetFragmentShadingRateKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetFragmentShadingRateKHR"); if val.is_null() { cmd_set_fragment_shading_rate_khr } else { @@ -14965,10 +14024,7 @@ pub mod khr { stringify!(cmd_set_rendering_attachment_locations_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRenderingAttachmentLocationsKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRenderingAttachmentLocationsKHR"); if val.is_null() { cmd_set_rendering_attachment_locations_khr } else { @@ -14985,10 +14041,7 @@ pub mod khr { stringify!(cmd_set_rendering_input_attachment_indices_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetRenderingInputAttachmentIndicesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetRenderingInputAttachmentIndicesKHR"); if val.is_null() { cmd_set_rendering_input_attachment_indices_khr } else { @@ -15083,8 +14136,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(wait_for_present_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkWaitForPresentKHR\0"); - let val = _f(cname); + let val = _f(c"vkWaitForPresentKHR"); if val.is_null() { wait_for_present_khr } else { @@ -15159,9 +14211,7 @@ pub mod khr { stringify!(get_buffer_device_address_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetBufferDeviceAddressKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetBufferDeviceAddressKHR"); if val.is_null() { get_buffer_device_address_khr } else { @@ -15178,10 +14228,7 @@ pub mod khr { stringify!(get_buffer_opaque_capture_address_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetBufferOpaqueCaptureAddressKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetBufferOpaqueCaptureAddressKHR"); if val.is_null() { get_buffer_opaque_capture_address_khr } else { @@ -15198,10 +14245,7 @@ pub mod khr { stringify!(get_device_memory_opaque_capture_address_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceMemoryOpaqueCaptureAddressKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceMemoryOpaqueCaptureAddressKHR"); if val.is_null() { get_device_memory_opaque_capture_address_khr } else { @@ -15271,9 +14315,7 @@ pub mod khr { stringify!(create_deferred_operation_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateDeferredOperationKHR\0"); - let val = _f(cname); + let val = _f(c"vkCreateDeferredOperationKHR"); if val.is_null() { create_deferred_operation_khr } else { @@ -15291,9 +14333,7 @@ pub mod khr { stringify!(destroy_deferred_operation_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDestroyDeferredOperationKHR\0"); - let val = _f(cname); + let val = _f(c"vkDestroyDeferredOperationKHR"); if val.is_null() { destroy_deferred_operation_khr } else { @@ -15310,10 +14350,7 @@ pub mod khr { stringify!(get_deferred_operation_max_concurrency_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeferredOperationMaxConcurrencyKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeferredOperationMaxConcurrencyKHR"); if val.is_null() { get_deferred_operation_max_concurrency_khr } else { @@ -15330,10 +14367,7 @@ pub mod khr { stringify!(get_deferred_operation_result_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeferredOperationResultKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeferredOperationResultKHR"); if val.is_null() { get_deferred_operation_result_khr } else { @@ -15350,9 +14384,7 @@ pub mod khr { stringify!(deferred_operation_join_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDeferredOperationJoinKHR\0"); - let val = _f(cname); + let val = _f(c"vkDeferredOperationJoinKHR"); if val.is_null() { deferred_operation_join_khr } else { @@ -15421,10 +14453,7 @@ pub mod khr { stringify!(get_pipeline_executable_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPipelineExecutablePropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPipelineExecutablePropertiesKHR"); if val.is_null() { get_pipeline_executable_properties_khr } else { @@ -15443,10 +14472,7 @@ pub mod khr { stringify!(get_pipeline_executable_statistics_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPipelineExecutableStatisticsKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPipelineExecutableStatisticsKHR"); if val.is_null() { get_pipeline_executable_statistics_khr } else { @@ -15465,10 +14491,7 @@ pub mod khr { stringify!(get_pipeline_executable_internal_representations_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPipelineExecutableInternalRepresentationsKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPipelineExecutableInternalRepresentationsKHR"); if val.is_null() { get_pipeline_executable_internal_representations_khr } else { @@ -15531,8 +14554,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(map_memory2_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkMapMemory2KHR\0"); - let val = _f(cname); + let val = _f(c"vkMapMemory2KHR"); if val.is_null() { map_memory2_khr } else { @@ -15546,8 +14568,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(unmap_memory2_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkUnmapMemory2KHR\0"); - let val = _f(cname); + let val = _f(c"vkUnmapMemory2KHR"); if val.is_null() { unmap_memory2_khr } else { @@ -15649,10 +14670,7 @@ pub mod khr { ) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR"); if val.is_null() { get_physical_device_video_encode_quality_level_properties_khr } else { @@ -15712,10 +14730,7 @@ pub mod khr { stringify!(get_encoded_video_session_parameters_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetEncodedVideoSessionParametersKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetEncodedVideoSessionParametersKHR"); if val.is_null() { get_encoded_video_session_parameters_khr } else { @@ -15729,8 +14744,7 @@ pub mod khr { ) { panic!(concat!("Unable to load ", stringify!(cmd_encode_video_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdEncodeVideoKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdEncodeVideoKHR"); if val.is_null() { cmd_encode_video_khr } else { @@ -15799,8 +14813,7 @@ pub mod khr { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_event2_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetEvent2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetEvent2KHR"); if val.is_null() { cmd_set_event2_khr } else { @@ -15815,8 +14828,7 @@ pub mod khr { ) { panic!(concat!("Unable to load ", stringify!(cmd_reset_event2_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdResetEvent2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdResetEvent2KHR"); if val.is_null() { cmd_reset_event2_khr } else { @@ -15832,8 +14844,7 @@ pub mod khr { ) { panic!(concat!("Unable to load ", stringify!(cmd_wait_events2_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdWaitEvents2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdWaitEvents2KHR"); if val.is_null() { cmd_wait_events2_khr } else { @@ -15850,9 +14861,7 @@ pub mod khr { stringify!(cmd_pipeline_barrier2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdPipelineBarrier2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdPipelineBarrier2KHR"); if val.is_null() { cmd_pipeline_barrier2_khr } else { @@ -15871,9 +14880,7 @@ pub mod khr { stringify!(cmd_write_timestamp2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdWriteTimestamp2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdWriteTimestamp2KHR"); if val.is_null() { cmd_write_timestamp2_khr } else { @@ -15889,8 +14896,7 @@ pub mod khr { ) -> Result { panic!(concat!("Unable to load ", stringify!(queue_submit2_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkQueueSubmit2KHR\0"); - let val = _f(cname); + let val = _f(c"vkQueueSubmit2KHR"); if val.is_null() { queue_submit2_khr } else { @@ -15910,9 +14916,7 @@ pub mod khr { stringify!(cmd_write_buffer_marker2_amd) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdWriteBufferMarker2AMD\0"); - let val = _f(cname); + let val = _f(c"vkCmdWriteBufferMarker2AMD"); if val.is_null() { cmd_write_buffer_marker2_amd } else { @@ -15930,9 +14934,7 @@ pub mod khr { stringify!(get_queue_checkpoint_data2_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetQueueCheckpointData2NV\0"); - let val = _f(cname); + let val = _f(c"vkGetQueueCheckpointData2NV"); if val.is_null() { get_queue_checkpoint_data2_nv } else { @@ -16030,8 +15032,7 @@ pub mod khr { ) { panic!(concat!("Unable to load ", stringify!(cmd_copy_buffer2_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyBuffer2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyBuffer2KHR"); if val.is_null() { cmd_copy_buffer2_khr } else { @@ -16045,8 +15046,7 @@ pub mod khr { ) { panic!(concat!("Unable to load ", stringify!(cmd_copy_image2_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyImage2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyImage2KHR"); if val.is_null() { cmd_copy_image2_khr } else { @@ -16063,9 +15063,7 @@ pub mod khr { stringify!(cmd_copy_buffer_to_image2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyBufferToImage2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyBufferToImage2KHR"); if val.is_null() { cmd_copy_buffer_to_image2_khr } else { @@ -16082,9 +15080,7 @@ pub mod khr { stringify!(cmd_copy_image_to_buffer2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyImageToBuffer2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyImageToBuffer2KHR"); if val.is_null() { cmd_copy_image_to_buffer2_khr } else { @@ -16098,8 +15094,7 @@ pub mod khr { ) { panic!(concat!("Unable to load ", stringify!(cmd_blit_image2_khr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBlitImage2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdBlitImage2KHR"); if val.is_null() { cmd_blit_image2_khr } else { @@ -16116,8 +15111,7 @@ pub mod khr { stringify!(cmd_resolve_image2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdResolveImage2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdResolveImage2KHR"); if val.is_null() { cmd_resolve_image2_khr } else { @@ -16189,9 +15183,7 @@ pub mod khr { stringify!(cmd_trace_rays_indirect2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdTraceRaysIndirect2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdTraceRaysIndirect2KHR"); if val.is_null() { cmd_trace_rays_indirect2_khr } else { @@ -16267,10 +15259,7 @@ pub mod khr { stringify!(get_device_buffer_memory_requirements_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceBufferMemoryRequirementsKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceBufferMemoryRequirementsKHR"); if val.is_null() { get_device_buffer_memory_requirements_khr } else { @@ -16288,10 +15277,7 @@ pub mod khr { stringify!(get_device_image_memory_requirements_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceImageMemoryRequirementsKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceImageMemoryRequirementsKHR"); if val.is_null() { get_device_image_memory_requirements_khr } else { @@ -16310,10 +15296,7 @@ pub mod khr { stringify!(get_device_image_sparse_memory_requirements_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceImageSparseMemoryRequirementsKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceImageSparseMemoryRequirementsKHR"); if val.is_null() { get_device_image_sparse_memory_requirements_khr } else { @@ -16399,9 +15382,7 @@ pub mod khr { stringify!(cmd_bind_index_buffer2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBindIndexBuffer2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindIndexBuffer2KHR"); if val.is_null() { cmd_bind_index_buffer2_khr } else { @@ -16419,10 +15400,7 @@ pub mod khr { stringify!(get_rendering_area_granularity_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetRenderingAreaGranularityKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetRenderingAreaGranularityKHR"); if val.is_null() { get_rendering_area_granularity_khr } else { @@ -16440,10 +15418,7 @@ pub mod khr { stringify!(get_device_image_subresource_layout_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceImageSubresourceLayoutKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceImageSubresourceLayoutKHR"); if val.is_null() { get_device_image_subresource_layout_khr } else { @@ -16462,10 +15437,7 @@ pub mod khr { stringify!(get_image_subresource_layout2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetImageSubresourceLayout2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetImageSubresourceLayout2KHR"); if val.is_null() { get_image_subresource_layout2_khr } else { @@ -16539,10 +15511,7 @@ pub mod khr { stringify!(get_physical_device_cooperative_matrix_properties_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR"); if val.is_null() { get_physical_device_cooperative_matrix_properties_khr } else { @@ -16655,9 +15624,7 @@ pub mod khr { stringify!(cmd_set_line_stipple_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetLineStippleKHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetLineStippleKHR"); if val.is_null() { cmd_set_line_stipple_khr } else { @@ -16723,10 +15690,7 @@ pub mod khr { stringify!(get_physical_device_calibrateable_time_domains_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceCalibrateableTimeDomainsKHR\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceCalibrateableTimeDomainsKHR"); if val.is_null() { get_physical_device_calibrateable_time_domains_khr } else { @@ -16785,9 +15749,7 @@ pub mod khr { stringify!(get_calibrated_timestamps_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetCalibratedTimestampsKHR\0"); - let val = _f(cname); + let val = _f(c"vkGetCalibratedTimestampsKHR"); if val.is_null() { get_calibrated_timestamps_khr } else { @@ -16866,9 +15828,7 @@ pub mod khr { stringify!(cmd_bind_descriptor_sets2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBindDescriptorSets2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindDescriptorSets2KHR"); if val.is_null() { cmd_bind_descriptor_sets2_khr } else { @@ -16885,9 +15845,7 @@ pub mod khr { stringify!(cmd_push_constants2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdPushConstants2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdPushConstants2KHR"); if val.is_null() { cmd_push_constants2_khr } else { @@ -16904,9 +15862,7 @@ pub mod khr { stringify!(cmd_push_descriptor_set2_khr) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdPushDescriptorSet2KHR\0"); - let val = _f(cname); + let val = _f(c"vkCmdPushDescriptorSet2KHR"); if val.is_null() { cmd_push_descriptor_set2_khr } else { @@ -16923,10 +15879,7 @@ pub mod khr { stringify!(cmd_push_descriptor_set_with_template2_khr) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdPushDescriptorSetWithTemplate2KHR\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdPushDescriptorSetWithTemplate2KHR"); if val.is_null() { cmd_push_descriptor_set_with_template2_khr } else { @@ -16943,10 +15896,7 @@ pub mod khr { stringify!(cmd_set_descriptor_buffer_offsets2_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetDescriptorBufferOffsets2EXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetDescriptorBufferOffsets2EXT"); if val.is_null() { cmd_set_descriptor_buffer_offsets2_ext } else { @@ -16963,10 +15913,7 @@ pub mod khr { stringify!(cmd_bind_descriptor_buffer_embedded_samplers2_ext) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdBindDescriptorBufferEmbeddedSamplers2EXT\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdBindDescriptorBufferEmbeddedSamplers2EXT"); if val.is_null() { cmd_bind_descriptor_buffer_embedded_samplers2_ext } else { @@ -17057,8 +16004,7 @@ pub mod mvk { stringify!(create_ios_surface_mvk) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateIOSSurfaceMVK\0"); - let val = _f(cname); + let val = _f(c"vkCreateIOSSurfaceMVK"); if val.is_null() { create_ios_surface_mvk } else { @@ -17124,9 +16070,7 @@ pub mod mvk { stringify!(create_mac_os_surface_mvk) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateMacOSSurfaceMVK\0"); - let val = _f(cname); + let val = _f(c"vkCreateMacOSSurfaceMVK"); if val.is_null() { create_mac_os_surface_mvk } else { @@ -17192,8 +16136,7 @@ pub mod nn { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_vi_surface_nn))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateViSurfaceNN\0"); - let val = _f(cname); + let val = _f(c"vkCreateViSurfaceNN"); if val.is_null() { create_vi_surface_nn } else { @@ -17291,10 +16234,7 @@ pub mod nv { stringify!(get_physical_device_external_image_format_properties_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceExternalImageFormatPropertiesNV\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceExternalImageFormatPropertiesNV"); if val.is_null() { get_physical_device_external_image_format_properties_nv } else { @@ -17368,9 +16308,7 @@ pub mod nv { stringify!(get_memory_win32_handle_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetMemoryWin32HandleNV\0"); - let val = _f(cname); + let val = _f(c"vkGetMemoryWin32HandleNV"); if val.is_null() { get_memory_win32_handle_nv } else { @@ -17444,9 +16382,7 @@ pub mod nv { stringify!(cmd_set_viewport_w_scaling_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetViewportWScalingNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetViewportWScalingNV"); if val.is_null() { cmd_set_viewport_w_scaling_nv } else { @@ -17577,9 +16513,7 @@ pub mod nv { stringify!(cmd_bind_shading_rate_image_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdBindShadingRateImageNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindShadingRateImageNV"); if val.is_null() { cmd_bind_shading_rate_image_nv } else { @@ -17598,10 +16532,7 @@ pub mod nv { stringify!(cmd_set_viewport_shading_rate_palette_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetViewportShadingRatePaletteNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetViewportShadingRatePaletteNV"); if val.is_null() { cmd_set_viewport_shading_rate_palette_nv } else { @@ -17620,9 +16551,7 @@ pub mod nv { stringify!(cmd_set_coarse_sample_order_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetCoarseSampleOrderNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetCoarseSampleOrderNV"); if val.is_null() { cmd_set_coarse_sample_order_nv } else { @@ -17701,10 +16630,7 @@ pub mod nv { stringify!(create_acceleration_structure_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateAccelerationStructureNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateAccelerationStructureNV"); if val.is_null() { create_acceleration_structure_nv } else { @@ -17722,10 +16648,7 @@ pub mod nv { stringify!(destroy_acceleration_structure_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkDestroyAccelerationStructureNV\0", - ); - let val = _f(cname); + let val = _f(c"vkDestroyAccelerationStructureNV"); if val.is_null() { destroy_acceleration_structure_nv } else { @@ -17743,10 +16666,7 @@ pub mod nv { stringify!(get_acceleration_structure_memory_requirements_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetAccelerationStructureMemoryRequirementsNV\0", - ); - let val = _f(cname); + let val = _f(c"vkGetAccelerationStructureMemoryRequirementsNV"); if val.is_null() { get_acceleration_structure_memory_requirements_nv } else { @@ -17764,10 +16684,7 @@ pub mod nv { stringify!(bind_acceleration_structure_memory_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkBindAccelerationStructureMemoryNV\0", - ); - let val = _f(cname); + let val = _f(c"vkBindAccelerationStructureMemoryNV"); if val.is_null() { bind_acceleration_structure_memory_nv } else { @@ -17791,10 +16708,7 @@ pub mod nv { stringify!(cmd_build_acceleration_structure_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdBuildAccelerationStructureNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdBuildAccelerationStructureNV"); if val.is_null() { cmd_build_acceleration_structure_nv } else { @@ -17813,10 +16727,7 @@ pub mod nv { stringify!(cmd_copy_acceleration_structure_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdCopyAccelerationStructureNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdCopyAccelerationStructureNV"); if val.is_null() { cmd_copy_acceleration_structure_nv } else { @@ -17843,8 +16754,7 @@ pub mod nv { ) { panic!(concat!("Unable to load ", stringify!(cmd_trace_rays_nv))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdTraceRaysNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdTraceRaysNV"); if val.is_null() { cmd_trace_rays_nv } else { @@ -17865,9 +16775,7 @@ pub mod nv { stringify!(create_ray_tracing_pipelines_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateRayTracingPipelinesNV\0"); - let val = _f(cname); + let val = _f(c"vkCreateRayTracingPipelinesNV"); if val.is_null() { create_ray_tracing_pipelines_nv } else { @@ -17888,10 +16796,7 @@ pub mod nv { stringify!(get_ray_tracing_shader_group_handles_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetRayTracingShaderGroupHandlesNV\0", - ); - let val = _f(cname); + let val = _f(c"vkGetRayTracingShaderGroupHandlesNV"); if val.is_null() { get_ray_tracing_shader_group_handles_nv } else { @@ -17910,10 +16815,7 @@ pub mod nv { stringify!(get_acceleration_structure_handle_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetAccelerationStructureHandleNV\0", - ); - let val = _f(cname); + let val = _f(c"vkGetAccelerationStructureHandleNV"); if val.is_null() { get_acceleration_structure_handle_nv } else { @@ -17934,10 +16836,7 @@ pub mod nv { stringify!(cmd_write_acceleration_structures_properties_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdWriteAccelerationStructuresPropertiesNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdWriteAccelerationStructuresPropertiesNV"); if val.is_null() { cmd_write_acceleration_structures_properties_nv } else { @@ -17952,8 +16851,7 @@ pub mod nv { ) -> Result { panic!(concat!("Unable to load ", stringify!(compile_deferred_nv))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCompileDeferredNV\0"); - let val = _f(cname); + let val = _f(c"vkCompileDeferredNV"); if val.is_null() { compile_deferred_nv } else { @@ -18044,8 +16942,7 @@ pub mod nv { stringify!(cmd_draw_mesh_tasks_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawMeshTasksNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawMeshTasksNV"); if val.is_null() { cmd_draw_mesh_tasks_nv } else { @@ -18065,9 +16962,7 @@ pub mod nv { stringify!(cmd_draw_mesh_tasks_indirect_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawMeshTasksIndirectNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawMeshTasksIndirectNV"); if val.is_null() { cmd_draw_mesh_tasks_indirect_nv } else { @@ -18089,10 +16984,7 @@ pub mod nv { stringify!(cmd_draw_mesh_tasks_indirect_count_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdDrawMeshTasksIndirectCountNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdDrawMeshTasksIndirectCountNV"); if val.is_null() { cmd_draw_mesh_tasks_indirect_count_nv } else { @@ -18175,10 +17067,7 @@ pub mod nv { stringify!(cmd_set_exclusive_scissor_enable_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetExclusiveScissorEnableNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetExclusiveScissorEnableNV"); if val.is_null() { cmd_set_exclusive_scissor_enable_nv } else { @@ -18197,9 +17086,7 @@ pub mod nv { stringify!(cmd_set_exclusive_scissor_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetExclusiveScissorNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetExclusiveScissorNV"); if val.is_null() { cmd_set_exclusive_scissor_nv } else { @@ -18264,8 +17151,7 @@ pub mod nv { stringify!(cmd_set_checkpoint_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetCheckpointNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetCheckpointNV"); if val.is_null() { cmd_set_checkpoint_nv } else { @@ -18283,9 +17169,7 @@ pub mod nv { stringify!(get_queue_checkpoint_data_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetQueueCheckpointDataNV\0"); - let val = _f(cname); + let val = _f(c"vkGetQueueCheckpointDataNV"); if val.is_null() { get_queue_checkpoint_data_nv } else { @@ -18359,10 +17243,7 @@ pub mod nv { stringify!(get_physical_device_cooperative_matrix_properties_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceCooperativeMatrixPropertiesNV\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceCooperativeMatrixPropertiesNV"); if val.is_null() { get_physical_device_cooperative_matrix_properties_nv } else { @@ -18425,10 +17306,9 @@ pub mod nv { ) -> Result { panic ! (concat ! ("Unable to load " , stringify ! (get_physical_device_supported_framebuffer_mixed_samples_combinations_nv))) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV\0", + let val = _f( + c"vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV", ); - let val = _f(cname); if val.is_null() { get_physical_device_supported_framebuffer_mixed_samples_combinations_nv } else { @@ -18499,10 +17379,7 @@ pub mod nv { stringify!(get_generated_commands_memory_requirements_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetGeneratedCommandsMemoryRequirementsNV\0", - ); - let val = _f(cname); + let val = _f(c"vkGetGeneratedCommandsMemoryRequirementsNV"); if val.is_null() { get_generated_commands_memory_requirements_nv } else { @@ -18519,10 +17396,7 @@ pub mod nv { stringify!(cmd_preprocess_generated_commands_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdPreprocessGeneratedCommandsNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdPreprocessGeneratedCommandsNV"); if val.is_null() { cmd_preprocess_generated_commands_nv } else { @@ -18540,10 +17414,7 @@ pub mod nv { stringify!(cmd_execute_generated_commands_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdExecuteGeneratedCommandsNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdExecuteGeneratedCommandsNV"); if val.is_null() { cmd_execute_generated_commands_nv } else { @@ -18562,10 +17433,7 @@ pub mod nv { stringify!(cmd_bind_pipeline_shader_group_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdBindPipelineShaderGroupNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdBindPipelineShaderGroupNV"); if val.is_null() { cmd_bind_pipeline_shader_group_nv } else { @@ -18584,10 +17452,7 @@ pub mod nv { stringify!(create_indirect_commands_layout_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCreateIndirectCommandsLayoutNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCreateIndirectCommandsLayoutNV"); if val.is_null() { create_indirect_commands_layout_nv } else { @@ -18605,10 +17470,7 @@ pub mod nv { stringify!(destroy_indirect_commands_layout_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkDestroyIndirectCommandsLayoutNV\0", - ); - let val = _f(cname); + let val = _f(c"vkDestroyIndirectCommandsLayoutNV"); if val.is_null() { destroy_indirect_commands_layout_nv } else { @@ -18703,8 +17565,7 @@ pub mod nv { stringify!(create_cuda_module_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateCudaModuleNV\0"); - let val = _f(cname); + let val = _f(c"vkCreateCudaModuleNV"); if val.is_null() { create_cuda_module_nv } else { @@ -18723,9 +17584,7 @@ pub mod nv { stringify!(get_cuda_module_cache_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetCudaModuleCacheNV\0"); - let val = _f(cname); + let val = _f(c"vkGetCudaModuleCacheNV"); if val.is_null() { get_cuda_module_cache_nv } else { @@ -18744,9 +17603,7 @@ pub mod nv { stringify!(create_cuda_function_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateCudaFunctionNV\0"); - let val = _f(cname); + let val = _f(c"vkCreateCudaFunctionNV"); if val.is_null() { create_cuda_function_nv } else { @@ -18764,8 +17621,7 @@ pub mod nv { stringify!(destroy_cuda_module_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyCudaModuleNV\0"); - let val = _f(cname); + let val = _f(c"vkDestroyCudaModuleNV"); if val.is_null() { destroy_cuda_module_nv } else { @@ -18783,9 +17639,7 @@ pub mod nv { stringify!(destroy_cuda_function_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDestroyCudaFunctionNV\0"); - let val = _f(cname); + let val = _f(c"vkDestroyCudaFunctionNV"); if val.is_null() { destroy_cuda_function_nv } else { @@ -18802,9 +17656,7 @@ pub mod nv { stringify!(cmd_cuda_launch_kernel_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdCudaLaunchKernelNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdCudaLaunchKernelNV"); if val.is_null() { cmd_cuda_launch_kernel_nv } else { @@ -18877,10 +17729,7 @@ pub mod nv { stringify!(cmd_set_fragment_shading_rate_enum_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdSetFragmentShadingRateEnumNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdSetFragmentShadingRateEnumNV"); if val.is_null() { cmd_set_fragment_shading_rate_enum_nv } else { @@ -18953,9 +17802,7 @@ pub mod nv { stringify!(acquire_winrt_display_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkAcquireWinrtDisplayNV\0"); - let val = _f(cname); + let val = _f(c"vkAcquireWinrtDisplayNV"); if val.is_null() { acquire_winrt_display_nv } else { @@ -18970,8 +17817,7 @@ pub mod nv { ) -> Result { panic!(concat!("Unable to load ", stringify!(get_winrt_display_nv))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetWinrtDisplayNV\0"); - let val = _f(cname); + let val = _f(c"vkGetWinrtDisplayNV"); if val.is_null() { get_winrt_display_nv } else { @@ -19038,9 +17884,7 @@ pub mod nv { stringify!(get_memory_remote_address_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetMemoryRemoteAddressNV\0"); - let val = _f(cname); + let val = _f(c"vkGetMemoryRemoteAddressNV"); if val.is_null() { get_memory_remote_address_nv } else { @@ -19115,9 +17959,7 @@ pub mod nv { stringify!(cmd_copy_memory_indirect_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyMemoryIndirectNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyMemoryIndirectNV"); if val.is_null() { cmd_copy_memory_indirect_nv } else { @@ -19139,10 +17981,7 @@ pub mod nv { stringify!(cmd_copy_memory_to_image_indirect_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdCopyMemoryToImageIndirectNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdCopyMemoryToImageIndirectNV"); if val.is_null() { cmd_copy_memory_to_image_indirect_nv } else { @@ -19208,9 +18047,7 @@ pub mod nv { stringify!(cmd_decompress_memory_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdDecompressMemoryNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdDecompressMemoryNV"); if val.is_null() { cmd_decompress_memory_nv } else { @@ -19229,10 +18066,7 @@ pub mod nv { stringify!(cmd_decompress_memory_indirect_count_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdDecompressMemoryIndirectCountNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdDecompressMemoryIndirectCountNV"); if val.is_null() { cmd_decompress_memory_indirect_count_nv } else { @@ -19300,10 +18134,7 @@ pub mod nv { stringify!(get_pipeline_indirect_memory_requirements_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPipelineIndirectMemoryRequirementsNV\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPipelineIndirectMemoryRequirementsNV"); if val.is_null() { get_pipeline_indirect_memory_requirements_nv } else { @@ -19321,10 +18152,7 @@ pub mod nv { stringify!(cmd_update_pipeline_indirect_buffer_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkCmdUpdatePipelineIndirectBufferNV\0", - ); - let val = _f(cname); + let val = _f(c"vkCmdUpdatePipelineIndirectBufferNV"); if val.is_null() { cmd_update_pipeline_indirect_buffer_nv } else { @@ -19341,10 +18169,7 @@ pub mod nv { stringify!(get_pipeline_indirect_device_address_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPipelineIndirectDeviceAddressNV\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPipelineIndirectDeviceAddressNV"); if val.is_null() { get_pipeline_indirect_device_address_nv } else { @@ -19421,10 +18246,7 @@ pub mod nv { stringify!(get_physical_device_optical_flow_image_formats_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceOpticalFlowImageFormatsNV\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceOpticalFlowImageFormatsNV"); if val.is_null() { get_physical_device_optical_flow_image_formats_nv } else { @@ -19485,9 +18307,7 @@ pub mod nv { stringify!(create_optical_flow_session_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateOpticalFlowSessionNV\0"); - let val = _f(cname); + let val = _f(c"vkCreateOpticalFlowSessionNV"); if val.is_null() { create_optical_flow_session_nv } else { @@ -19505,9 +18325,7 @@ pub mod nv { stringify!(destroy_optical_flow_session_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDestroyOpticalFlowSessionNV\0"); - let val = _f(cname); + let val = _f(c"vkDestroyOpticalFlowSessionNV"); if val.is_null() { destroy_optical_flow_session_nv } else { @@ -19527,10 +18345,7 @@ pub mod nv { stringify!(bind_optical_flow_session_image_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkBindOpticalFlowSessionImageNV\0", - ); - let val = _f(cname); + let val = _f(c"vkBindOpticalFlowSessionImageNV"); if val.is_null() { bind_optical_flow_session_image_nv } else { @@ -19548,9 +18363,7 @@ pub mod nv { stringify!(cmd_optical_flow_execute_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdOpticalFlowExecuteNV\0"); - let val = _f(cname); + let val = _f(c"vkCmdOpticalFlowExecuteNV"); if val.is_null() { cmd_optical_flow_execute_nv } else { @@ -19635,9 +18448,7 @@ pub mod nv { stringify!(set_latency_sleep_mode_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkSetLatencySleepModeNV\0"); - let val = _f(cname); + let val = _f(c"vkSetLatencySleepModeNV"); if val.is_null() { set_latency_sleep_mode_nv } else { @@ -19652,8 +18463,7 @@ pub mod nv { ) -> Result { panic!(concat!("Unable to load ", stringify!(latency_sleep_nv))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkLatencySleepNV\0"); - let val = _f(cname); + let val = _f(c"vkLatencySleepNV"); if val.is_null() { latency_sleep_nv } else { @@ -19671,8 +18481,7 @@ pub mod nv { stringify!(set_latency_marker_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkSetLatencyMarkerNV\0"); - let val = _f(cname); + let val = _f(c"vkSetLatencyMarkerNV"); if val.is_null() { set_latency_marker_nv } else { @@ -19690,8 +18499,7 @@ pub mod nv { stringify!(get_latency_timings_nv) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetLatencyTimingsNV\0"); - let val = _f(cname); + let val = _f(c"vkGetLatencyTimingsNV"); if val.is_null() { get_latency_timings_nv } else { @@ -19708,9 +18516,7 @@ pub mod nv { stringify!(queue_notify_out_of_band_nv) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkQueueNotifyOutOfBandNV\0"); - let val = _f(cname); + let val = _f(c"vkQueueNotifyOutOfBandNV"); if val.is_null() { queue_notify_out_of_band_nv } else { @@ -19820,8 +18626,7 @@ pub mod nvx { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_cu_module_nvx))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateCuModuleNVX\0"); - let val = _f(cname); + let val = _f(c"vkCreateCuModuleNVX"); if val.is_null() { create_cu_module_nvx } else { @@ -19840,8 +18645,7 @@ pub mod nvx { stringify!(create_cu_function_nvx) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateCuFunctionNVX\0"); - let val = _f(cname); + let val = _f(c"vkCreateCuFunctionNVX"); if val.is_null() { create_cu_function_nvx } else { @@ -19859,8 +18663,7 @@ pub mod nvx { stringify!(destroy_cu_module_nvx) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyCuModuleNVX\0"); - let val = _f(cname); + let val = _f(c"vkDestroyCuModuleNVX"); if val.is_null() { destroy_cu_module_nvx } else { @@ -19878,9 +18681,7 @@ pub mod nvx { stringify!(destroy_cu_function_nvx) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDestroyCuFunctionNVX\0"); - let val = _f(cname); + let val = _f(c"vkDestroyCuFunctionNVX"); if val.is_null() { destroy_cu_function_nvx } else { @@ -19897,9 +18698,7 @@ pub mod nvx { stringify!(cmd_cu_launch_kernel_nvx) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdCuLaunchKernelNVX\0"); - let val = _f(cname); + let val = _f(c"vkCmdCuLaunchKernelNVX"); if val.is_null() { cmd_cu_launch_kernel_nvx } else { @@ -19964,9 +18763,7 @@ pub mod nvx { stringify!(get_image_view_handle_nvx) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetImageViewHandleNVX\0"); - let val = _f(cname); + let val = _f(c"vkGetImageViewHandleNVX"); if val.is_null() { get_image_view_handle_nvx } else { @@ -19984,9 +18781,7 @@ pub mod nvx { stringify!(get_image_view_address_nvx) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetImageViewAddressNVX\0"); - let val = _f(cname); + let val = _f(c"vkGetImageViewAddressNVX"); if val.is_null() { get_image_view_address_nvx } else { @@ -20113,10 +18908,7 @@ pub mod qcom { stringify!(get_framebuffer_tile_properties_qcom) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetFramebufferTilePropertiesQCOM\0", - ); - let val = _f(cname); + let val = _f(c"vkGetFramebufferTilePropertiesQCOM"); if val.is_null() { get_framebuffer_tile_properties_qcom } else { @@ -20134,10 +18926,7 @@ pub mod qcom { stringify!(get_dynamic_rendering_tile_properties_qcom) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDynamicRenderingTilePropertiesQCOM\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDynamicRenderingTilePropertiesQCOM"); if val.is_null() { get_dynamic_rendering_tile_properties_qcom } else { @@ -20256,9 +19045,7 @@ pub mod qnx { stringify!(create_screen_surface_qnx) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateScreenSurfaceQNX\0"); - let val = _f(cname); + let val = _f(c"vkCreateScreenSurfaceQNX"); if val.is_null() { create_screen_surface_qnx } else { @@ -20276,10 +19063,7 @@ pub mod qnx { stringify!(get_physical_device_screen_presentation_support_qnx) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceScreenPresentationSupportQNX\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceScreenPresentationSupportQNX"); if val.is_null() { get_physical_device_screen_presentation_support_qnx } else { @@ -20344,10 +19128,7 @@ pub mod qnx { stringify!(get_screen_buffer_properties_qnx) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetScreenBufferPropertiesQNX\0", - ); - let val = _f(cname); + let val = _f(c"vkGetScreenBufferPropertiesQNX"); if val.is_null() { get_screen_buffer_properties_qnx } else { @@ -20436,10 +19217,7 @@ pub mod valve { stringify!(get_descriptor_set_layout_host_mapping_info_valve) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDescriptorSetLayoutHostMappingInfoVALVE\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDescriptorSetLayoutHostMappingInfoVALVE"); if val.is_null() { get_descriptor_set_layout_host_mapping_info_valve } else { @@ -20457,10 +19235,7 @@ pub mod valve { stringify!(get_descriptor_set_host_mapping_valve) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDescriptorSetHostMappingVALVE\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDescriptorSetHostMappingVALVE"); if val.is_null() { get_descriptor_set_host_mapping_valve } else { diff --git a/ash/src/tables.rs b/ash/src/tables.rs index 142d8334b..b65cb3489 100644 --- a/ash/src/tables.rs +++ b/ash/src/tables.rs @@ -24,8 +24,7 @@ impl StaticFn { stringify!(get_instance_proc_addr) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetInstanceProcAddr\0"); - let val = _f(cname); + let val = _f(c"vkGetInstanceProcAddr"); if val.is_null() { get_instance_proc_addr } else { @@ -58,8 +57,7 @@ impl EntryFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_instance))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateInstance\0"); - let val = _f(cname); + let val = _f(c"vkCreateInstance"); if val.is_null() { create_instance } else { @@ -77,10 +75,7 @@ impl EntryFnV1_0 { stringify!(enumerate_instance_extension_properties) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkEnumerateInstanceExtensionProperties\0", - ); - let val = _f(cname); + let val = _f(c"vkEnumerateInstanceExtensionProperties"); if val.is_null() { enumerate_instance_extension_properties } else { @@ -97,9 +92,7 @@ impl EntryFnV1_0 { stringify!(enumerate_instance_layer_properties) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkEnumerateInstanceLayerProperties\0"); - let val = _f(cname); + let val = _f(c"vkEnumerateInstanceLayerProperties"); if val.is_null() { enumerate_instance_layer_properties } else { @@ -142,8 +135,7 @@ impl InstanceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_instance))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyInstance\0"); - let val = _f(cname); + let val = _f(c"vkDestroyInstance"); if val.is_null() { destroy_instance } else { @@ -161,8 +153,7 @@ impl InstanceFnV1_0 { stringify!(enumerate_physical_devices) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkEnumeratePhysicalDevices\0"); - let val = _f(cname); + let val = _f(c"vkEnumeratePhysicalDevices"); if val.is_null() { enumerate_physical_devices } else { @@ -179,8 +170,7 @@ impl InstanceFnV1_0 { stringify!(get_physical_device_features) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetPhysicalDeviceFeatures\0"); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceFeatures"); if val.is_null() { get_physical_device_features } else { @@ -198,9 +188,7 @@ impl InstanceFnV1_0 { stringify!(get_physical_device_format_properties) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetPhysicalDeviceFormatProperties\0"); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceFormatProperties"); if val.is_null() { get_physical_device_format_properties } else { @@ -222,10 +210,7 @@ impl InstanceFnV1_0 { stringify!(get_physical_device_image_format_properties) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceImageFormatProperties\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceImageFormatProperties"); if val.is_null() { get_physical_device_image_format_properties } else { @@ -242,8 +227,7 @@ impl InstanceFnV1_0 { stringify!(get_physical_device_properties) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetPhysicalDeviceProperties\0"); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceProperties"); if val.is_null() { get_physical_device_properties } else { @@ -261,10 +245,7 @@ impl InstanceFnV1_0 { stringify!(get_physical_device_queue_family_properties) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceQueueFamilyProperties\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceQueueFamilyProperties"); if val.is_null() { get_physical_device_queue_family_properties } else { @@ -281,9 +262,7 @@ impl InstanceFnV1_0 { stringify!(get_physical_device_memory_properties) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetPhysicalDeviceMemoryProperties\0"); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceMemoryProperties"); if val.is_null() { get_physical_device_memory_properties } else { @@ -297,8 +276,7 @@ impl InstanceFnV1_0 { ) -> PFN_vkVoidFunction { panic!(concat!("Unable to load ", stringify!(get_device_proc_addr))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetDeviceProcAddr\0"); - let val = _f(cname); + let val = _f(c"vkGetDeviceProcAddr"); if val.is_null() { get_device_proc_addr } else { @@ -314,8 +292,7 @@ impl InstanceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_device))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateDevice\0"); - let val = _f(cname); + let val = _f(c"vkCreateDevice"); if val.is_null() { create_device } else { @@ -334,9 +311,7 @@ impl InstanceFnV1_0 { stringify!(enumerate_device_extension_properties) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkEnumerateDeviceExtensionProperties\0"); - let val = _f(cname); + let val = _f(c"vkEnumerateDeviceExtensionProperties"); if val.is_null() { enumerate_device_extension_properties } else { @@ -354,9 +329,7 @@ impl InstanceFnV1_0 { stringify!(enumerate_device_layer_properties) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkEnumerateDeviceLayerProperties\0"); - let val = _f(cname); + let val = _f(c"vkEnumerateDeviceLayerProperties"); if val.is_null() { enumerate_device_layer_properties } else { @@ -379,10 +352,7 @@ impl InstanceFnV1_0 { stringify!(get_physical_device_sparse_image_format_properties) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSparseImageFormatProperties\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSparseImageFormatProperties"); if val.is_null() { get_physical_device_sparse_image_format_properties } else { @@ -531,8 +501,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_device))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyDevice\0"); - let val = _f(cname); + let val = _f(c"vkDestroyDevice"); if val.is_null() { destroy_device } else { @@ -548,8 +517,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(get_device_queue))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetDeviceQueue\0"); - let val = _f(cname); + let val = _f(c"vkGetDeviceQueue"); if val.is_null() { get_device_queue } else { @@ -565,8 +533,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(queue_submit))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkQueueSubmit\0"); - let val = _f(cname); + let val = _f(c"vkQueueSubmit"); if val.is_null() { queue_submit } else { @@ -577,8 +544,7 @@ impl DeviceFnV1_0 { unsafe extern "system" fn queue_wait_idle(_queue: Queue) -> Result { panic!(concat!("Unable to load ", stringify!(queue_wait_idle))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkQueueWaitIdle\0"); - let val = _f(cname); + let val = _f(c"vkQueueWaitIdle"); if val.is_null() { queue_wait_idle } else { @@ -589,8 +555,7 @@ impl DeviceFnV1_0 { unsafe extern "system" fn device_wait_idle(_device: crate::vk::Device) -> Result { panic!(concat!("Unable to load ", stringify!(device_wait_idle))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDeviceWaitIdle\0"); - let val = _f(cname); + let val = _f(c"vkDeviceWaitIdle"); if val.is_null() { device_wait_idle } else { @@ -606,8 +571,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(allocate_memory))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkAllocateMemory\0"); - let val = _f(cname); + let val = _f(c"vkAllocateMemory"); if val.is_null() { allocate_memory } else { @@ -622,8 +586,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(free_memory))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkFreeMemory\0"); - let val = _f(cname); + let val = _f(c"vkFreeMemory"); if val.is_null() { free_memory } else { @@ -641,8 +604,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(map_memory))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkMapMemory\0"); - let val = _f(cname); + let val = _f(c"vkMapMemory"); if val.is_null() { map_memory } else { @@ -656,8 +618,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(unmap_memory))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkUnmapMemory\0"); - let val = _f(cname); + let val = _f(c"vkUnmapMemory"); if val.is_null() { unmap_memory } else { @@ -675,8 +636,7 @@ impl DeviceFnV1_0 { stringify!(flush_mapped_memory_ranges) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkFlushMappedMemoryRanges\0"); - let val = _f(cname); + let val = _f(c"vkFlushMappedMemoryRanges"); if val.is_null() { flush_mapped_memory_ranges } else { @@ -694,9 +654,7 @@ impl DeviceFnV1_0 { stringify!(invalidate_mapped_memory_ranges) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkInvalidateMappedMemoryRanges\0"); - let val = _f(cname); + let val = _f(c"vkInvalidateMappedMemoryRanges"); if val.is_null() { invalidate_mapped_memory_ranges } else { @@ -714,8 +672,7 @@ impl DeviceFnV1_0 { stringify!(get_device_memory_commitment) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetDeviceMemoryCommitment\0"); - let val = _f(cname); + let val = _f(c"vkGetDeviceMemoryCommitment"); if val.is_null() { get_device_memory_commitment } else { @@ -731,8 +688,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(bind_buffer_memory))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkBindBufferMemory\0"); - let val = _f(cname); + let val = _f(c"vkBindBufferMemory"); if val.is_null() { bind_buffer_memory } else { @@ -748,8 +704,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(bind_image_memory))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkBindImageMemory\0"); - let val = _f(cname); + let val = _f(c"vkBindImageMemory"); if val.is_null() { bind_image_memory } else { @@ -767,8 +722,7 @@ impl DeviceFnV1_0 { stringify!(get_buffer_memory_requirements) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetBufferMemoryRequirements\0"); - let val = _f(cname); + let val = _f(c"vkGetBufferMemoryRequirements"); if val.is_null() { get_buffer_memory_requirements } else { @@ -786,8 +740,7 @@ impl DeviceFnV1_0 { stringify!(get_image_memory_requirements) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetImageMemoryRequirements\0"); - let val = _f(cname); + let val = _f(c"vkGetImageMemoryRequirements"); if val.is_null() { get_image_memory_requirements } else { @@ -806,9 +759,7 @@ impl DeviceFnV1_0 { stringify!(get_image_sparse_memory_requirements) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetImageSparseMemoryRequirements\0"); - let val = _f(cname); + let val = _f(c"vkGetImageSparseMemoryRequirements"); if val.is_null() { get_image_sparse_memory_requirements } else { @@ -824,8 +775,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(queue_bind_sparse))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkQueueBindSparse\0"); - let val = _f(cname); + let val = _f(c"vkQueueBindSparse"); if val.is_null() { queue_bind_sparse } else { @@ -841,8 +791,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_fence))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateFence\0"); - let val = _f(cname); + let val = _f(c"vkCreateFence"); if val.is_null() { create_fence } else { @@ -857,8 +806,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_fence))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyFence\0"); - let val = _f(cname); + let val = _f(c"vkDestroyFence"); if val.is_null() { destroy_fence } else { @@ -873,8 +821,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(reset_fences))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkResetFences\0"); - let val = _f(cname); + let val = _f(c"vkResetFences"); if val.is_null() { reset_fences } else { @@ -888,8 +835,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(get_fence_status))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetFenceStatus\0"); - let val = _f(cname); + let val = _f(c"vkGetFenceStatus"); if val.is_null() { get_fence_status } else { @@ -906,8 +852,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(wait_for_fences))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkWaitForFences\0"); - let val = _f(cname); + let val = _f(c"vkWaitForFences"); if val.is_null() { wait_for_fences } else { @@ -923,8 +868,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_semaphore))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateSemaphore\0"); - let val = _f(cname); + let val = _f(c"vkCreateSemaphore"); if val.is_null() { create_semaphore } else { @@ -939,8 +883,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_semaphore))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroySemaphore\0"); - let val = _f(cname); + let val = _f(c"vkDestroySemaphore"); if val.is_null() { destroy_semaphore } else { @@ -956,8 +899,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_event))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateEvent\0"); - let val = _f(cname); + let val = _f(c"vkCreateEvent"); if val.is_null() { create_event } else { @@ -972,8 +914,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_event))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyEvent\0"); - let val = _f(cname); + let val = _f(c"vkDestroyEvent"); if val.is_null() { destroy_event } else { @@ -987,8 +928,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(get_event_status))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetEventStatus\0"); - let val = _f(cname); + let val = _f(c"vkGetEventStatus"); if val.is_null() { get_event_status } else { @@ -1002,8 +942,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(set_event))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkSetEvent\0"); - let val = _f(cname); + let val = _f(c"vkSetEvent"); if val.is_null() { set_event } else { @@ -1017,8 +956,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(reset_event))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkResetEvent\0"); - let val = _f(cname); + let val = _f(c"vkResetEvent"); if val.is_null() { reset_event } else { @@ -1034,8 +972,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_query_pool))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateQueryPool\0"); - let val = _f(cname); + let val = _f(c"vkCreateQueryPool"); if val.is_null() { create_query_pool } else { @@ -1050,8 +987,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_query_pool))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyQueryPool\0"); - let val = _f(cname); + let val = _f(c"vkDestroyQueryPool"); if val.is_null() { destroy_query_pool } else { @@ -1074,8 +1010,7 @@ impl DeviceFnV1_0 { stringify!(get_query_pool_results) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetQueryPoolResults\0"); - let val = _f(cname); + let val = _f(c"vkGetQueryPoolResults"); if val.is_null() { get_query_pool_results } else { @@ -1091,8 +1026,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_buffer))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateBuffer\0"); - let val = _f(cname); + let val = _f(c"vkCreateBuffer"); if val.is_null() { create_buffer } else { @@ -1107,8 +1041,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_buffer))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyBuffer\0"); - let val = _f(cname); + let val = _f(c"vkDestroyBuffer"); if val.is_null() { destroy_buffer } else { @@ -1124,8 +1057,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_buffer_view))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateBufferView\0"); - let val = _f(cname); + let val = _f(c"vkCreateBufferView"); if val.is_null() { create_buffer_view } else { @@ -1140,8 +1072,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_buffer_view))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyBufferView\0"); - let val = _f(cname); + let val = _f(c"vkDestroyBufferView"); if val.is_null() { destroy_buffer_view } else { @@ -1157,8 +1088,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_image))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateImage\0"); - let val = _f(cname); + let val = _f(c"vkCreateImage"); if val.is_null() { create_image } else { @@ -1173,8 +1103,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_image))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyImage\0"); - let val = _f(cname); + let val = _f(c"vkDestroyImage"); if val.is_null() { destroy_image } else { @@ -1193,8 +1122,7 @@ impl DeviceFnV1_0 { stringify!(get_image_subresource_layout) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetImageSubresourceLayout\0"); - let val = _f(cname); + let val = _f(c"vkGetImageSubresourceLayout"); if val.is_null() { get_image_subresource_layout } else { @@ -1210,8 +1138,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_image_view))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateImageView\0"); - let val = _f(cname); + let val = _f(c"vkCreateImageView"); if val.is_null() { create_image_view } else { @@ -1226,8 +1153,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_image_view))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyImageView\0"); - let val = _f(cname); + let val = _f(c"vkDestroyImageView"); if val.is_null() { destroy_image_view } else { @@ -1243,8 +1169,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_shader_module))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateShaderModule\0"); - let val = _f(cname); + let val = _f(c"vkCreateShaderModule"); if val.is_null() { create_shader_module } else { @@ -1262,8 +1187,7 @@ impl DeviceFnV1_0 { stringify!(destroy_shader_module) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyShaderModule\0"); - let val = _f(cname); + let val = _f(c"vkDestroyShaderModule"); if val.is_null() { destroy_shader_module } else { @@ -1282,8 +1206,7 @@ impl DeviceFnV1_0 { stringify!(create_pipeline_cache) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreatePipelineCache\0"); - let val = _f(cname); + let val = _f(c"vkCreatePipelineCache"); if val.is_null() { create_pipeline_cache } else { @@ -1301,8 +1224,7 @@ impl DeviceFnV1_0 { stringify!(destroy_pipeline_cache) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyPipelineCache\0"); - let val = _f(cname); + let val = _f(c"vkDestroyPipelineCache"); if val.is_null() { destroy_pipeline_cache } else { @@ -1321,8 +1243,7 @@ impl DeviceFnV1_0 { stringify!(get_pipeline_cache_data) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetPipelineCacheData\0"); - let val = _f(cname); + let val = _f(c"vkGetPipelineCacheData"); if val.is_null() { get_pipeline_cache_data } else { @@ -1341,8 +1262,7 @@ impl DeviceFnV1_0 { stringify!(merge_pipeline_caches) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkMergePipelineCaches\0"); - let val = _f(cname); + let val = _f(c"vkMergePipelineCaches"); if val.is_null() { merge_pipeline_caches } else { @@ -1363,8 +1283,7 @@ impl DeviceFnV1_0 { stringify!(create_graphics_pipelines) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateGraphicsPipelines\0"); - let val = _f(cname); + let val = _f(c"vkCreateGraphicsPipelines"); if val.is_null() { create_graphics_pipelines } else { @@ -1385,8 +1304,7 @@ impl DeviceFnV1_0 { stringify!(create_compute_pipelines) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateComputePipelines\0"); - let val = _f(cname); + let val = _f(c"vkCreateComputePipelines"); if val.is_null() { create_compute_pipelines } else { @@ -1401,8 +1319,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_pipeline))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyPipeline\0"); - let val = _f(cname); + let val = _f(c"vkDestroyPipeline"); if val.is_null() { destroy_pipeline } else { @@ -1421,8 +1338,7 @@ impl DeviceFnV1_0 { stringify!(create_pipeline_layout) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreatePipelineLayout\0"); - let val = _f(cname); + let val = _f(c"vkCreatePipelineLayout"); if val.is_null() { create_pipeline_layout } else { @@ -1440,8 +1356,7 @@ impl DeviceFnV1_0 { stringify!(destroy_pipeline_layout) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyPipelineLayout\0"); - let val = _f(cname); + let val = _f(c"vkDestroyPipelineLayout"); if val.is_null() { destroy_pipeline_layout } else { @@ -1457,8 +1372,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_sampler))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateSampler\0"); - let val = _f(cname); + let val = _f(c"vkCreateSampler"); if val.is_null() { create_sampler } else { @@ -1473,8 +1387,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_sampler))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroySampler\0"); - let val = _f(cname); + let val = _f(c"vkDestroySampler"); if val.is_null() { destroy_sampler } else { @@ -1493,8 +1406,7 @@ impl DeviceFnV1_0 { stringify!(create_descriptor_set_layout) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateDescriptorSetLayout\0"); - let val = _f(cname); + let val = _f(c"vkCreateDescriptorSetLayout"); if val.is_null() { create_descriptor_set_layout } else { @@ -1512,8 +1424,7 @@ impl DeviceFnV1_0 { stringify!(destroy_descriptor_set_layout) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyDescriptorSetLayout\0"); - let val = _f(cname); + let val = _f(c"vkDestroyDescriptorSetLayout"); if val.is_null() { destroy_descriptor_set_layout } else { @@ -1532,8 +1443,7 @@ impl DeviceFnV1_0 { stringify!(create_descriptor_pool) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateDescriptorPool\0"); - let val = _f(cname); + let val = _f(c"vkCreateDescriptorPool"); if val.is_null() { create_descriptor_pool } else { @@ -1551,8 +1461,7 @@ impl DeviceFnV1_0 { stringify!(destroy_descriptor_pool) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyDescriptorPool\0"); - let val = _f(cname); + let val = _f(c"vkDestroyDescriptorPool"); if val.is_null() { destroy_descriptor_pool } else { @@ -1570,8 +1479,7 @@ impl DeviceFnV1_0 { stringify!(reset_descriptor_pool) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkResetDescriptorPool\0"); - let val = _f(cname); + let val = _f(c"vkResetDescriptorPool"); if val.is_null() { reset_descriptor_pool } else { @@ -1589,8 +1497,7 @@ impl DeviceFnV1_0 { stringify!(allocate_descriptor_sets) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkAllocateDescriptorSets\0"); - let val = _f(cname); + let val = _f(c"vkAllocateDescriptorSets"); if val.is_null() { allocate_descriptor_sets } else { @@ -1606,8 +1513,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(free_descriptor_sets))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkFreeDescriptorSets\0"); - let val = _f(cname); + let val = _f(c"vkFreeDescriptorSets"); if val.is_null() { free_descriptor_sets } else { @@ -1627,8 +1533,7 @@ impl DeviceFnV1_0 { stringify!(update_descriptor_sets) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkUpdateDescriptorSets\0"); - let val = _f(cname); + let val = _f(c"vkUpdateDescriptorSets"); if val.is_null() { update_descriptor_sets } else { @@ -1644,8 +1549,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_framebuffer))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateFramebuffer\0"); - let val = _f(cname); + let val = _f(c"vkCreateFramebuffer"); if val.is_null() { create_framebuffer } else { @@ -1660,8 +1564,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_framebuffer))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyFramebuffer\0"); - let val = _f(cname); + let val = _f(c"vkDestroyFramebuffer"); if val.is_null() { destroy_framebuffer } else { @@ -1677,8 +1580,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_render_pass))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateRenderPass\0"); - let val = _f(cname); + let val = _f(c"vkCreateRenderPass"); if val.is_null() { create_render_pass } else { @@ -1693,8 +1595,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_render_pass))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyRenderPass\0"); - let val = _f(cname); + let val = _f(c"vkDestroyRenderPass"); if val.is_null() { destroy_render_pass } else { @@ -1712,8 +1613,7 @@ impl DeviceFnV1_0 { stringify!(get_render_area_granularity) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetRenderAreaGranularity\0"); - let val = _f(cname); + let val = _f(c"vkGetRenderAreaGranularity"); if val.is_null() { get_render_area_granularity } else { @@ -1729,8 +1629,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_command_pool))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateCommandPool\0"); - let val = _f(cname); + let val = _f(c"vkCreateCommandPool"); if val.is_null() { create_command_pool } else { @@ -1745,8 +1644,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(destroy_command_pool))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyCommandPool\0"); - let val = _f(cname); + let val = _f(c"vkDestroyCommandPool"); if val.is_null() { destroy_command_pool } else { @@ -1761,8 +1659,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(reset_command_pool))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkResetCommandPool\0"); - let val = _f(cname); + let val = _f(c"vkResetCommandPool"); if val.is_null() { reset_command_pool } else { @@ -1780,8 +1677,7 @@ impl DeviceFnV1_0 { stringify!(allocate_command_buffers) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkAllocateCommandBuffers\0"); - let val = _f(cname); + let val = _f(c"vkAllocateCommandBuffers"); if val.is_null() { allocate_command_buffers } else { @@ -1797,8 +1693,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(free_command_buffers))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkFreeCommandBuffers\0"); - let val = _f(cname); + let val = _f(c"vkFreeCommandBuffers"); if val.is_null() { free_command_buffers } else { @@ -1812,8 +1707,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(begin_command_buffer))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkBeginCommandBuffer\0"); - let val = _f(cname); + let val = _f(c"vkBeginCommandBuffer"); if val.is_null() { begin_command_buffer } else { @@ -1826,8 +1720,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(end_command_buffer))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkEndCommandBuffer\0"); - let val = _f(cname); + let val = _f(c"vkEndCommandBuffer"); if val.is_null() { end_command_buffer } else { @@ -1841,8 +1734,7 @@ impl DeviceFnV1_0 { ) -> Result { panic!(concat!("Unable to load ", stringify!(reset_command_buffer))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkResetCommandBuffer\0"); - let val = _f(cname); + let val = _f(c"vkResetCommandBuffer"); if val.is_null() { reset_command_buffer } else { @@ -1857,8 +1749,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_bind_pipeline))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBindPipeline\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindPipeline"); if val.is_null() { cmd_bind_pipeline } else { @@ -1874,8 +1765,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_viewport))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetViewport\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetViewport"); if val.is_null() { cmd_set_viewport } else { @@ -1891,8 +1781,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_scissor))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetScissor\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetScissor"); if val.is_null() { cmd_set_scissor } else { @@ -1906,8 +1795,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_line_width))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetLineWidth\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetLineWidth"); if val.is_null() { cmd_set_line_width } else { @@ -1923,8 +1811,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_depth_bias))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthBias\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthBias"); if val.is_null() { cmd_set_depth_bias } else { @@ -1941,8 +1828,7 @@ impl DeviceFnV1_0 { stringify!(cmd_set_blend_constants) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetBlendConstants\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetBlendConstants"); if val.is_null() { cmd_set_blend_constants } else { @@ -1957,8 +1843,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_depth_bounds))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthBounds\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthBounds"); if val.is_null() { cmd_set_depth_bounds } else { @@ -1976,8 +1861,7 @@ impl DeviceFnV1_0 { stringify!(cmd_set_stencil_compare_mask) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetStencilCompareMask\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetStencilCompareMask"); if val.is_null() { cmd_set_stencil_compare_mask } else { @@ -1995,8 +1879,7 @@ impl DeviceFnV1_0 { stringify!(cmd_set_stencil_write_mask) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetStencilWriteMask\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetStencilWriteMask"); if val.is_null() { cmd_set_stencil_write_mask } else { @@ -2014,8 +1897,7 @@ impl DeviceFnV1_0 { stringify!(cmd_set_stencil_reference) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetStencilReference\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetStencilReference"); if val.is_null() { cmd_set_stencil_reference } else { @@ -2038,8 +1920,7 @@ impl DeviceFnV1_0 { stringify!(cmd_bind_descriptor_sets) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBindDescriptorSets\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindDescriptorSets"); if val.is_null() { cmd_bind_descriptor_sets } else { @@ -2058,8 +1939,7 @@ impl DeviceFnV1_0 { stringify!(cmd_bind_index_buffer) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBindIndexBuffer\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindIndexBuffer"); if val.is_null() { cmd_bind_index_buffer } else { @@ -2079,8 +1959,7 @@ impl DeviceFnV1_0 { stringify!(cmd_bind_vertex_buffers) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBindVertexBuffers\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindVertexBuffers"); if val.is_null() { cmd_bind_vertex_buffers } else { @@ -2097,8 +1976,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_draw))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDraw\0"); - let val = _f(cname); + let val = _f(c"vkCmdDraw"); if val.is_null() { cmd_draw } else { @@ -2116,8 +1994,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_draw_indexed))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawIndexed\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawIndexed"); if val.is_null() { cmd_draw_indexed } else { @@ -2134,8 +2011,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_draw_indirect))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawIndirect\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawIndirect"); if val.is_null() { cmd_draw_indirect } else { @@ -2155,8 +2031,7 @@ impl DeviceFnV1_0 { stringify!(cmd_draw_indexed_indirect) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawIndexedIndirect\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawIndexedIndirect"); if val.is_null() { cmd_draw_indexed_indirect } else { @@ -2172,8 +2047,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_dispatch))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDispatch\0"); - let val = _f(cname); + let val = _f(c"vkCmdDispatch"); if val.is_null() { cmd_dispatch } else { @@ -2191,8 +2065,7 @@ impl DeviceFnV1_0 { stringify!(cmd_dispatch_indirect) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDispatchIndirect\0"); - let val = _f(cname); + let val = _f(c"vkCmdDispatchIndirect"); if val.is_null() { cmd_dispatch_indirect } else { @@ -2209,8 +2082,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_copy_buffer))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyBuffer\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyBuffer"); if val.is_null() { cmd_copy_buffer } else { @@ -2229,8 +2101,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_copy_image))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyImage\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyImage"); if val.is_null() { cmd_copy_image } else { @@ -2250,8 +2121,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_blit_image))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBlitImage\0"); - let val = _f(cname); + let val = _f(c"vkCmdBlitImage"); if val.is_null() { cmd_blit_image } else { @@ -2272,8 +2142,7 @@ impl DeviceFnV1_0 { stringify!(cmd_copy_buffer_to_image) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyBufferToImage\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyBufferToImage"); if val.is_null() { cmd_copy_buffer_to_image } else { @@ -2294,8 +2163,7 @@ impl DeviceFnV1_0 { stringify!(cmd_copy_image_to_buffer) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyImageToBuffer\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyImageToBuffer"); if val.is_null() { cmd_copy_image_to_buffer } else { @@ -2312,8 +2180,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_update_buffer))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdUpdateBuffer\0"); - let val = _f(cname); + let val = _f(c"vkCmdUpdateBuffer"); if val.is_null() { cmd_update_buffer } else { @@ -2330,8 +2197,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_fill_buffer))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdFillBuffer\0"); - let val = _f(cname); + let val = _f(c"vkCmdFillBuffer"); if val.is_null() { cmd_fill_buffer } else { @@ -2352,8 +2218,7 @@ impl DeviceFnV1_0 { stringify!(cmd_clear_color_image) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdClearColorImage\0"); - let val = _f(cname); + let val = _f(c"vkCmdClearColorImage"); if val.is_null() { cmd_clear_color_image } else { @@ -2374,8 +2239,7 @@ impl DeviceFnV1_0 { stringify!(cmd_clear_depth_stencil_image) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdClearDepthStencilImage\0"); - let val = _f(cname); + let val = _f(c"vkCmdClearDepthStencilImage"); if val.is_null() { cmd_clear_depth_stencil_image } else { @@ -2395,8 +2259,7 @@ impl DeviceFnV1_0 { stringify!(cmd_clear_attachments) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdClearAttachments\0"); - let val = _f(cname); + let val = _f(c"vkCmdClearAttachments"); if val.is_null() { cmd_clear_attachments } else { @@ -2415,8 +2278,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_resolve_image))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdResolveImage\0"); - let val = _f(cname); + let val = _f(c"vkCmdResolveImage"); if val.is_null() { cmd_resolve_image } else { @@ -2431,8 +2293,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_event))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetEvent\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetEvent"); if val.is_null() { cmd_set_event } else { @@ -2447,8 +2308,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_reset_event))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdResetEvent\0"); - let val = _f(cname); + let val = _f(c"vkCmdResetEvent"); if val.is_null() { cmd_reset_event } else { @@ -2471,8 +2331,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_wait_events))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdWaitEvents\0"); - let val = _f(cname); + let val = _f(c"vkCmdWaitEvents"); if val.is_null() { cmd_wait_events } else { @@ -2494,8 +2353,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_pipeline_barrier))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdPipelineBarrier\0"); - let val = _f(cname); + let val = _f(c"vkCmdPipelineBarrier"); if val.is_null() { cmd_pipeline_barrier } else { @@ -2511,8 +2369,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_begin_query))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBeginQuery\0"); - let val = _f(cname); + let val = _f(c"vkCmdBeginQuery"); if val.is_null() { cmd_begin_query } else { @@ -2527,8 +2384,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_end_query))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdEndQuery\0"); - let val = _f(cname); + let val = _f(c"vkCmdEndQuery"); if val.is_null() { cmd_end_query } else { @@ -2544,8 +2400,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_reset_query_pool))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdResetQueryPool\0"); - let val = _f(cname); + let val = _f(c"vkCmdResetQueryPool"); if val.is_null() { cmd_reset_query_pool } else { @@ -2561,8 +2416,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_write_timestamp))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdWriteTimestamp\0"); - let val = _f(cname); + let val = _f(c"vkCmdWriteTimestamp"); if val.is_null() { cmd_write_timestamp } else { @@ -2585,8 +2439,7 @@ impl DeviceFnV1_0 { stringify!(cmd_copy_query_pool_results) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyQueryPoolResults\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyQueryPoolResults"); if val.is_null() { cmd_copy_query_pool_results } else { @@ -2604,8 +2457,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_push_constants))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdPushConstants\0"); - let val = _f(cname); + let val = _f(c"vkCmdPushConstants"); if val.is_null() { cmd_push_constants } else { @@ -2623,8 +2475,7 @@ impl DeviceFnV1_0 { stringify!(cmd_begin_render_pass) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBeginRenderPass\0"); - let val = _f(cname); + let val = _f(c"vkCmdBeginRenderPass"); if val.is_null() { cmd_begin_render_pass } else { @@ -2638,8 +2489,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_next_subpass))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdNextSubpass\0"); - let val = _f(cname); + let val = _f(c"vkCmdNextSubpass"); if val.is_null() { cmd_next_subpass } else { @@ -2650,8 +2500,7 @@ impl DeviceFnV1_0 { unsafe extern "system" fn cmd_end_render_pass(_command_buffer: CommandBuffer) { panic!(concat!("Unable to load ", stringify!(cmd_end_render_pass))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdEndRenderPass\0"); - let val = _f(cname); + let val = _f(c"vkCmdEndRenderPass"); if val.is_null() { cmd_end_render_pass } else { @@ -2666,8 +2515,7 @@ impl DeviceFnV1_0 { ) { panic!(concat!("Unable to load ", stringify!(cmd_execute_commands))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdExecuteCommands\0"); - let val = _f(cname); + let val = _f(c"vkCmdExecuteCommands"); if val.is_null() { cmd_execute_commands } else { @@ -2699,8 +2547,7 @@ impl EntryFnV1_1 { stringify!(enumerate_instance_version) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkEnumerateInstanceVersion\0"); - let val = _f(cname); + let val = _f(c"vkEnumerateInstanceVersion"); if val.is_null() { enumerate_instance_version } else { @@ -2748,9 +2595,7 @@ impl InstanceFnV1_1 { stringify!(enumerate_physical_device_groups) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkEnumeratePhysicalDeviceGroups\0"); - let val = _f(cname); + let val = _f(c"vkEnumeratePhysicalDeviceGroups"); if val.is_null() { enumerate_physical_device_groups } else { @@ -2767,8 +2612,7 @@ impl InstanceFnV1_1 { stringify!(get_physical_device_features2) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetPhysicalDeviceFeatures2\0"); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceFeatures2"); if val.is_null() { get_physical_device_features2 } else { @@ -2785,9 +2629,7 @@ impl InstanceFnV1_1 { stringify!(get_physical_device_properties2) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetPhysicalDeviceProperties2\0"); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceProperties2"); if val.is_null() { get_physical_device_properties2 } else { @@ -2805,9 +2647,7 @@ impl InstanceFnV1_1 { stringify!(get_physical_device_format_properties2) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetPhysicalDeviceFormatProperties2\0"); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceFormatProperties2"); if val.is_null() { get_physical_device_format_properties2 } else { @@ -2825,10 +2665,7 @@ impl InstanceFnV1_1 { stringify!(get_physical_device_image_format_properties2) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceImageFormatProperties2\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceImageFormatProperties2"); if val.is_null() { get_physical_device_image_format_properties2 } else { @@ -2846,10 +2683,7 @@ impl InstanceFnV1_1 { stringify!(get_physical_device_queue_family_properties2) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceQueueFamilyProperties2\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceQueueFamilyProperties2"); if val.is_null() { get_physical_device_queue_family_properties2 } else { @@ -2866,9 +2700,7 @@ impl InstanceFnV1_1 { stringify!(get_physical_device_memory_properties2) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetPhysicalDeviceMemoryProperties2\0"); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceMemoryProperties2"); if val.is_null() { get_physical_device_memory_properties2 } else { @@ -2887,10 +2719,7 @@ impl InstanceFnV1_1 { stringify!(get_physical_device_sparse_image_format_properties2) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceSparseImageFormatProperties2\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceSparseImageFormatProperties2"); if val.is_null() { get_physical_device_sparse_image_format_properties2 } else { @@ -2908,10 +2737,7 @@ impl InstanceFnV1_1 { stringify!(get_physical_device_external_buffer_properties) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceExternalBufferProperties\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceExternalBufferProperties"); if val.is_null() { get_physical_device_external_buffer_properties } else { @@ -2929,10 +2755,7 @@ impl InstanceFnV1_1 { stringify!(get_physical_device_external_fence_properties) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceExternalFenceProperties\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceExternalFenceProperties"); if val.is_null() { get_physical_device_external_fence_properties } else { @@ -2950,10 +2773,7 @@ impl InstanceFnV1_1 { stringify!(get_physical_device_external_semaphore_properties) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetPhysicalDeviceExternalSemaphoreProperties\0", - ); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceExternalSemaphoreProperties"); if val.is_null() { get_physical_device_external_semaphore_properties } else { @@ -2999,8 +2819,7 @@ impl DeviceFnV1_1 { ) -> Result { panic!(concat!("Unable to load ", stringify!(bind_buffer_memory2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkBindBufferMemory2\0"); - let val = _f(cname); + let val = _f(c"vkBindBufferMemory2"); if val.is_null() { bind_buffer_memory2 } else { @@ -3015,8 +2834,7 @@ impl DeviceFnV1_1 { ) -> Result { panic!(concat!("Unable to load ", stringify!(bind_image_memory2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkBindImageMemory2\0"); - let val = _f(cname); + let val = _f(c"vkBindImageMemory2"); if val.is_null() { bind_image_memory2 } else { @@ -3036,9 +2854,7 @@ impl DeviceFnV1_1 { stringify!(get_device_group_peer_memory_features) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetDeviceGroupPeerMemoryFeatures\0"); - let val = _f(cname); + let val = _f(c"vkGetDeviceGroupPeerMemoryFeatures"); if val.is_null() { get_device_group_peer_memory_features } else { @@ -3052,8 +2868,7 @@ impl DeviceFnV1_1 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_device_mask))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDeviceMask\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDeviceMask"); if val.is_null() { cmd_set_device_mask } else { @@ -3072,8 +2887,7 @@ impl DeviceFnV1_1 { ) { panic!(concat!("Unable to load ", stringify!(cmd_dispatch_base))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDispatchBase\0"); - let val = _f(cname); + let val = _f(c"vkCmdDispatchBase"); if val.is_null() { cmd_dispatch_base } else { @@ -3091,8 +2905,7 @@ impl DeviceFnV1_1 { stringify!(get_image_memory_requirements2) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetImageMemoryRequirements2\0"); - let val = _f(cname); + let val = _f(c"vkGetImageMemoryRequirements2"); if val.is_null() { get_image_memory_requirements2 } else { @@ -3110,9 +2923,7 @@ impl DeviceFnV1_1 { stringify!(get_buffer_memory_requirements2) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetBufferMemoryRequirements2\0"); - let val = _f(cname); + let val = _f(c"vkGetBufferMemoryRequirements2"); if val.is_null() { get_buffer_memory_requirements2 } else { @@ -3131,9 +2942,7 @@ impl DeviceFnV1_1 { stringify!(get_image_sparse_memory_requirements2) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetImageSparseMemoryRequirements2\0"); - let val = _f(cname); + let val = _f(c"vkGetImageSparseMemoryRequirements2"); if val.is_null() { get_image_sparse_memory_requirements2 } else { @@ -3148,8 +2957,7 @@ impl DeviceFnV1_1 { ) { panic!(concat!("Unable to load ", stringify!(trim_command_pool))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkTrimCommandPool\0"); - let val = _f(cname); + let val = _f(c"vkTrimCommandPool"); if val.is_null() { trim_command_pool } else { @@ -3164,8 +2972,7 @@ impl DeviceFnV1_1 { ) { panic!(concat!("Unable to load ", stringify!(get_device_queue2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetDeviceQueue2\0"); - let val = _f(cname); + let val = _f(c"vkGetDeviceQueue2"); if val.is_null() { get_device_queue2 } else { @@ -3184,9 +2991,7 @@ impl DeviceFnV1_1 { stringify!(create_sampler_ycbcr_conversion) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateSamplerYcbcrConversion\0"); - let val = _f(cname); + let val = _f(c"vkCreateSamplerYcbcrConversion"); if val.is_null() { create_sampler_ycbcr_conversion } else { @@ -3204,9 +3009,7 @@ impl DeviceFnV1_1 { stringify!(destroy_sampler_ycbcr_conversion) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDestroySamplerYcbcrConversion\0"); - let val = _f(cname); + let val = _f(c"vkDestroySamplerYcbcrConversion"); if val.is_null() { destroy_sampler_ycbcr_conversion } else { @@ -3225,9 +3028,7 @@ impl DeviceFnV1_1 { stringify!(create_descriptor_update_template) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCreateDescriptorUpdateTemplate\0"); - let val = _f(cname); + let val = _f(c"vkCreateDescriptorUpdateTemplate"); if val.is_null() { create_descriptor_update_template } else { @@ -3245,9 +3046,7 @@ impl DeviceFnV1_1 { stringify!(destroy_descriptor_update_template) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkDestroyDescriptorUpdateTemplate\0"); - let val = _f(cname); + let val = _f(c"vkDestroyDescriptorUpdateTemplate"); if val.is_null() { destroy_descriptor_update_template } else { @@ -3266,9 +3065,7 @@ impl DeviceFnV1_1 { stringify!(update_descriptor_set_with_template) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkUpdateDescriptorSetWithTemplate\0"); - let val = _f(cname); + let val = _f(c"vkUpdateDescriptorSetWithTemplate"); if val.is_null() { update_descriptor_set_with_template } else { @@ -3286,9 +3083,7 @@ impl DeviceFnV1_1 { stringify!(get_descriptor_set_layout_support) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetDescriptorSetLayoutSupport\0"); - let val = _f(cname); + let val = _f(c"vkGetDescriptorSetLayoutSupport"); if val.is_null() { get_descriptor_set_layout_support } else { @@ -3344,8 +3139,7 @@ impl DeviceFnV1_2 { stringify!(cmd_draw_indirect_count) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawIndirectCount\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawIndirectCount"); if val.is_null() { cmd_draw_indirect_count } else { @@ -3367,8 +3161,7 @@ impl DeviceFnV1_2 { stringify!(cmd_draw_indexed_indirect_count) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdDrawIndexedIndirectCount\0"); - let val = _f(cname); + let val = _f(c"vkCmdDrawIndexedIndirectCount"); if val.is_null() { cmd_draw_indexed_indirect_count } else { @@ -3384,8 +3177,7 @@ impl DeviceFnV1_2 { ) -> Result { panic!(concat!("Unable to load ", stringify!(create_render_pass2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreateRenderPass2\0"); - let val = _f(cname); + let val = _f(c"vkCreateRenderPass2"); if val.is_null() { create_render_pass2 } else { @@ -3403,8 +3195,7 @@ impl DeviceFnV1_2 { stringify!(cmd_begin_render_pass2) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBeginRenderPass2\0"); - let val = _f(cname); + let val = _f(c"vkCmdBeginRenderPass2"); if val.is_null() { cmd_begin_render_pass2 } else { @@ -3419,8 +3210,7 @@ impl DeviceFnV1_2 { ) { panic!(concat!("Unable to load ", stringify!(cmd_next_subpass2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdNextSubpass2\0"); - let val = _f(cname); + let val = _f(c"vkCmdNextSubpass2"); if val.is_null() { cmd_next_subpass2 } else { @@ -3434,8 +3224,7 @@ impl DeviceFnV1_2 { ) { panic!(concat!("Unable to load ", stringify!(cmd_end_render_pass2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdEndRenderPass2\0"); - let val = _f(cname); + let val = _f(c"vkCmdEndRenderPass2"); if val.is_null() { cmd_end_render_pass2 } else { @@ -3451,8 +3240,7 @@ impl DeviceFnV1_2 { ) { panic!(concat!("Unable to load ", stringify!(reset_query_pool))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkResetQueryPool\0"); - let val = _f(cname); + let val = _f(c"vkResetQueryPool"); if val.is_null() { reset_query_pool } else { @@ -3470,8 +3258,7 @@ impl DeviceFnV1_2 { stringify!(get_semaphore_counter_value) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetSemaphoreCounterValue\0"); - let val = _f(cname); + let val = _f(c"vkGetSemaphoreCounterValue"); if val.is_null() { get_semaphore_counter_value } else { @@ -3486,8 +3273,7 @@ impl DeviceFnV1_2 { ) -> Result { panic!(concat!("Unable to load ", stringify!(wait_semaphores))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkWaitSemaphores\0"); - let val = _f(cname); + let val = _f(c"vkWaitSemaphores"); if val.is_null() { wait_semaphores } else { @@ -3501,8 +3287,7 @@ impl DeviceFnV1_2 { ) -> Result { panic!(concat!("Unable to load ", stringify!(signal_semaphore))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkSignalSemaphore\0"); - let val = _f(cname); + let val = _f(c"vkSignalSemaphore"); if val.is_null() { signal_semaphore } else { @@ -3519,8 +3304,7 @@ impl DeviceFnV1_2 { stringify!(get_buffer_device_address) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetBufferDeviceAddress\0"); - let val = _f(cname); + let val = _f(c"vkGetBufferDeviceAddress"); if val.is_null() { get_buffer_device_address } else { @@ -3537,9 +3321,7 @@ impl DeviceFnV1_2 { stringify!(get_buffer_opaque_capture_address) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetBufferOpaqueCaptureAddress\0"); - let val = _f(cname); + let val = _f(c"vkGetBufferOpaqueCaptureAddress"); if val.is_null() { get_buffer_opaque_capture_address } else { @@ -3556,9 +3338,7 @@ impl DeviceFnV1_2 { stringify!(get_device_memory_opaque_capture_address) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetDeviceMemoryOpaqueCaptureAddress\0"); - let val = _f(cname); + let val = _f(c"vkGetDeviceMemoryOpaqueCaptureAddress"); if val.is_null() { get_device_memory_opaque_capture_address } else { @@ -3595,9 +3375,7 @@ impl InstanceFnV1_3 { stringify!(get_physical_device_tool_properties) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetPhysicalDeviceToolProperties\0"); - let val = _f(cname); + let val = _f(c"vkGetPhysicalDeviceToolProperties"); if val.is_null() { get_physical_device_tool_properties } else { @@ -3667,8 +3445,7 @@ impl DeviceFnV1_3 { stringify!(create_private_data_slot) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCreatePrivateDataSlot\0"); - let val = _f(cname); + let val = _f(c"vkCreatePrivateDataSlot"); if val.is_null() { create_private_data_slot } else { @@ -3686,8 +3463,7 @@ impl DeviceFnV1_3 { stringify!(destroy_private_data_slot) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkDestroyPrivateDataSlot\0"); - let val = _f(cname); + let val = _f(c"vkDestroyPrivateDataSlot"); if val.is_null() { destroy_private_data_slot } else { @@ -3704,8 +3480,7 @@ impl DeviceFnV1_3 { ) -> Result { panic!(concat!("Unable to load ", stringify!(set_private_data))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkSetPrivateData\0"); - let val = _f(cname); + let val = _f(c"vkSetPrivateData"); if val.is_null() { set_private_data } else { @@ -3722,8 +3497,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(get_private_data))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkGetPrivateData\0"); - let val = _f(cname); + let val = _f(c"vkGetPrivateData"); if val.is_null() { get_private_data } else { @@ -3738,8 +3512,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_event2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetEvent2\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetEvent2"); if val.is_null() { cmd_set_event2 } else { @@ -3754,8 +3527,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_reset_event2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdResetEvent2\0"); - let val = _f(cname); + let val = _f(c"vkCmdResetEvent2"); if val.is_null() { cmd_reset_event2 } else { @@ -3771,8 +3543,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_wait_events2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdWaitEvents2\0"); - let val = _f(cname); + let val = _f(c"vkCmdWaitEvents2"); if val.is_null() { cmd_wait_events2 } else { @@ -3789,8 +3560,7 @@ impl DeviceFnV1_3 { stringify!(cmd_pipeline_barrier2) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdPipelineBarrier2\0"); - let val = _f(cname); + let val = _f(c"vkCmdPipelineBarrier2"); if val.is_null() { cmd_pipeline_barrier2 } else { @@ -3806,8 +3576,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_write_timestamp2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdWriteTimestamp2\0"); - let val = _f(cname); + let val = _f(c"vkCmdWriteTimestamp2"); if val.is_null() { cmd_write_timestamp2 } else { @@ -3823,8 +3592,7 @@ impl DeviceFnV1_3 { ) -> Result { panic!(concat!("Unable to load ", stringify!(queue_submit2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkQueueSubmit2\0"); - let val = _f(cname); + let val = _f(c"vkQueueSubmit2"); if val.is_null() { queue_submit2 } else { @@ -3838,8 +3606,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_copy_buffer2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyBuffer2\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyBuffer2"); if val.is_null() { cmd_copy_buffer2 } else { @@ -3853,8 +3620,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_copy_image2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyImage2\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyImage2"); if val.is_null() { cmd_copy_image2 } else { @@ -3871,8 +3637,7 @@ impl DeviceFnV1_3 { stringify!(cmd_copy_buffer_to_image2) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyBufferToImage2\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyBufferToImage2"); if val.is_null() { cmd_copy_buffer_to_image2 } else { @@ -3889,8 +3654,7 @@ impl DeviceFnV1_3 { stringify!(cmd_copy_image_to_buffer2) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdCopyImageToBuffer2\0"); - let val = _f(cname); + let val = _f(c"vkCmdCopyImageToBuffer2"); if val.is_null() { cmd_copy_image_to_buffer2 } else { @@ -3904,8 +3668,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_blit_image2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBlitImage2\0"); - let val = _f(cname); + let val = _f(c"vkCmdBlitImage2"); if val.is_null() { cmd_blit_image2 } else { @@ -3919,8 +3682,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_resolve_image2))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdResolveImage2\0"); - let val = _f(cname); + let val = _f(c"vkCmdResolveImage2"); if val.is_null() { cmd_resolve_image2 } else { @@ -3934,8 +3696,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_begin_rendering))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBeginRendering\0"); - let val = _f(cname); + let val = _f(c"vkCmdBeginRendering"); if val.is_null() { cmd_begin_rendering } else { @@ -3946,8 +3707,7 @@ impl DeviceFnV1_3 { unsafe extern "system" fn cmd_end_rendering(_command_buffer: CommandBuffer) { panic!(concat!("Unable to load ", stringify!(cmd_end_rendering))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdEndRendering\0"); - let val = _f(cname); + let val = _f(c"vkCmdEndRendering"); if val.is_null() { cmd_end_rendering } else { @@ -3961,8 +3721,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_cull_mode))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetCullMode\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetCullMode"); if val.is_null() { cmd_set_cull_mode } else { @@ -3976,8 +3735,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_front_face))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetFrontFace\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetFrontFace"); if val.is_null() { cmd_set_front_face } else { @@ -3994,8 +3752,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_primitive_topology) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetPrimitiveTopology\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetPrimitiveTopology"); if val.is_null() { cmd_set_primitive_topology } else { @@ -4013,8 +3770,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_viewport_with_count) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetViewportWithCount\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetViewportWithCount"); if val.is_null() { cmd_set_viewport_with_count } else { @@ -4032,8 +3788,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_scissor_with_count) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetScissorWithCount\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetScissorWithCount"); if val.is_null() { cmd_set_scissor_with_count } else { @@ -4055,8 +3810,7 @@ impl DeviceFnV1_3 { stringify!(cmd_bind_vertex_buffers2) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdBindVertexBuffers2\0"); - let val = _f(cname); + let val = _f(c"vkCmdBindVertexBuffers2"); if val.is_null() { cmd_bind_vertex_buffers2 } else { @@ -4073,8 +3827,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_depth_test_enable) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthTestEnable\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthTestEnable"); if val.is_null() { cmd_set_depth_test_enable } else { @@ -4091,8 +3844,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_depth_write_enable) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthWriteEnable\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthWriteEnable"); if val.is_null() { cmd_set_depth_write_enable } else { @@ -4109,8 +3861,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_depth_compare_op) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthCompareOp\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthCompareOp"); if val.is_null() { cmd_set_depth_compare_op } else { @@ -4127,8 +3878,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_depth_bounds_test_enable) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthBoundsTestEnable\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthBoundsTestEnable"); if val.is_null() { cmd_set_depth_bounds_test_enable } else { @@ -4145,8 +3895,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_stencil_test_enable) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetStencilTestEnable\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetStencilTestEnable"); if val.is_null() { cmd_set_stencil_test_enable } else { @@ -4164,8 +3913,7 @@ impl DeviceFnV1_3 { ) { panic!(concat!("Unable to load ", stringify!(cmd_set_stencil_op))) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetStencilOp\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetStencilOp"); if val.is_null() { cmd_set_stencil_op } else { @@ -4182,9 +3930,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_rasterizer_discard_enable) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetRasterizerDiscardEnable\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetRasterizerDiscardEnable"); if val.is_null() { cmd_set_rasterizer_discard_enable } else { @@ -4201,8 +3947,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_depth_bias_enable) )) } - let cname = CStr::from_bytes_with_nul_unchecked(b"vkCmdSetDepthBiasEnable\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetDepthBiasEnable"); if val.is_null() { cmd_set_depth_bias_enable } else { @@ -4219,9 +3964,7 @@ impl DeviceFnV1_3 { stringify!(cmd_set_primitive_restart_enable) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkCmdSetPrimitiveRestartEnable\0"); - let val = _f(cname); + let val = _f(c"vkCmdSetPrimitiveRestartEnable"); if val.is_null() { cmd_set_primitive_restart_enable } else { @@ -4239,9 +3982,7 @@ impl DeviceFnV1_3 { stringify!(get_device_buffer_memory_requirements) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetDeviceBufferMemoryRequirements\0"); - let val = _f(cname); + let val = _f(c"vkGetDeviceBufferMemoryRequirements"); if val.is_null() { get_device_buffer_memory_requirements } else { @@ -4259,9 +4000,7 @@ impl DeviceFnV1_3 { stringify!(get_device_image_memory_requirements) )) } - let cname = - CStr::from_bytes_with_nul_unchecked(b"vkGetDeviceImageMemoryRequirements\0"); - let val = _f(cname); + let val = _f(c"vkGetDeviceImageMemoryRequirements"); if val.is_null() { get_device_image_memory_requirements } else { @@ -4280,10 +4019,7 @@ impl DeviceFnV1_3 { stringify!(get_device_image_sparse_memory_requirements) )) } - let cname = CStr::from_bytes_with_nul_unchecked( - b"vkGetDeviceImageSparseMemoryRequirements\0", - ); - let val = _f(cname); + let val = _f(c"vkGetDeviceImageSparseMemoryRequirements"); if val.is_null() { get_device_image_sparse_memory_requirements } else { diff --git a/ash/src/vk/extensions.rs b/ash/src/vk/extensions.rs index 075883d91..875571e4d 100644 --- a/ash/src/vk/extensions.rs +++ b/ash/src/vk/extensions.rs @@ -3955,8 +3955,7 @@ impl StructureType { impl StructureType { pub const PHYSICAL_DEVICE_RAY_TRACING_VALIDATION_FEATURES_NV: Self = Self(1_000_568_000); } -pub const KHR_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_surface\0") }; +pub const KHR_SURFACE_NAME: &CStr = c"KHR_surface"; pub const KHR_SURFACE_SPEC_VERSION: u32 = 25u32; #[allow(non_camel_case_types)] pub type PFN_vkDestroySurfaceKHR = unsafe extern "system" fn( @@ -3991,8 +3990,7 @@ pub type PFN_vkGetPhysicalDeviceSurfacePresentModesKHR = unsafe extern "system" p_present_mode_count: *mut u32, p_present_modes: *mut PresentModeKHR, ) -> Result; -pub const KHR_SWAPCHAIN_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_swapchain\0") }; +pub const KHR_SWAPCHAIN_NAME: &CStr = c"KHR_swapchain"; pub const KHR_SWAPCHAIN_SPEC_VERSION: u32 = 70u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDevicePresentRectanglesKHR = unsafe extern "system" fn( @@ -4050,8 +4048,7 @@ pub type PFN_vkAcquireNextImage2KHR = unsafe extern "system" fn( p_acquire_info: *const AcquireNextImageInfoKHR<'_>, p_image_index: *mut u32, ) -> Result; -pub const KHR_DISPLAY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_display\0") }; +pub const KHR_DISPLAY_NAME: &CStr = c"KHR_display"; pub const KHR_DISPLAY_SPEC_VERSION: u32 = 23u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceDisplayPropertiesKHR = unsafe extern "system" fn( @@ -4101,8 +4098,7 @@ pub type PFN_vkCreateDisplayPlaneSurfaceKHR = unsafe extern "system" fn( p_allocator: *const AllocationCallbacks<'_>, p_surface: *mut SurfaceKHR, ) -> Result; -pub const KHR_DISPLAY_SWAPCHAIN_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_display_swapchain\0") }; +pub const KHR_DISPLAY_SWAPCHAIN_NAME: &CStr = c"KHR_display_swapchain"; pub const KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION: u32 = 10u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateSharedSwapchainsKHR = unsafe extern "system" fn( @@ -4112,8 +4108,7 @@ pub type PFN_vkCreateSharedSwapchainsKHR = unsafe extern "system" fn( p_allocator: *const AllocationCallbacks<'_>, p_swapchains: *mut SwapchainKHR, ) -> Result; -pub const KHR_XLIB_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_xlib_surface\0") }; +pub const KHR_XLIB_SURFACE_NAME: &CStr = c"KHR_xlib_surface"; pub const KHR_XLIB_SURFACE_SPEC_VERSION: u32 = 6u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateXlibSurfaceKHR = unsafe extern "system" fn( @@ -4129,8 +4124,7 @@ pub type PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR = unsafe extern "syst dpy: *mut Display, visual_id: VisualID, ) -> Bool32; -pub const KHR_XCB_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_xcb_surface\0") }; +pub const KHR_XCB_SURFACE_NAME: &CStr = c"KHR_xcb_surface"; pub const KHR_XCB_SURFACE_SPEC_VERSION: u32 = 6u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateXcbSurfaceKHR = unsafe extern "system" fn( @@ -4146,8 +4140,7 @@ pub type PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR = unsafe extern "syste connection: *mut xcb_connection_t, visual_id: xcb_visualid_t, ) -> Bool32; -pub const KHR_WAYLAND_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_wayland_surface\0") }; +pub const KHR_WAYLAND_SURFACE_NAME: &CStr = c"KHR_wayland_surface"; pub const KHR_WAYLAND_SURFACE_SPEC_VERSION: u32 = 6u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateWaylandSurfaceKHR = unsafe extern "system" fn( @@ -4163,8 +4156,7 @@ pub type PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR = unsafe extern "s display: *mut wl_display, ) -> Bool32; -pub const KHR_ANDROID_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_android_surface\0") }; +pub const KHR_ANDROID_SURFACE_NAME: &CStr = c"KHR_android_surface"; pub const KHR_ANDROID_SURFACE_SPEC_VERSION: u32 = 6u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateAndroidSurfaceKHR = unsafe extern "system" fn( @@ -4173,8 +4165,7 @@ pub type PFN_vkCreateAndroidSurfaceKHR = unsafe extern "system" fn( p_allocator: *const AllocationCallbacks<'_>, p_surface: *mut SurfaceKHR, ) -> Result; -pub const KHR_WIN32_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_win32_surface\0") }; +pub const KHR_WIN32_SURFACE_NAME: &CStr = c"KHR_win32_surface"; pub const KHR_WIN32_SURFACE_SPEC_VERSION: u32 = 6u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateWin32SurfaceKHR = unsafe extern "system" fn( @@ -4186,8 +4177,7 @@ pub type PFN_vkCreateWin32SurfaceKHR = unsafe extern "system" fn( #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR = unsafe extern "system" fn(physical_device: PhysicalDevice, queue_family_index: u32) -> Bool32; -pub const ANDROID_NATIVE_BUFFER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_ANDROID_native_buffer\0") }; +pub const ANDROID_NATIVE_BUFFER_NAME: &CStr = c"ANDROID_native_buffer"; pub const ANDROID_NATIVE_BUFFER_SPEC_VERSION: u32 = 8u32; #[allow(non_camel_case_types)] pub type PFN_vkGetSwapchainGrallocUsageANDROID = unsafe extern "system" fn( @@ -4221,8 +4211,7 @@ pub type PFN_vkGetSwapchainGrallocUsage2ANDROID = unsafe extern "system" fn( gralloc_consumer_usage: *mut u64, gralloc_producer_usage: *mut u64, ) -> Result; -pub const EXT_DEBUG_REPORT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_debug_report\0") }; +pub const EXT_DEBUG_REPORT_NAME: &CStr = c"EXT_debug_report"; pub const EXT_DEBUG_REPORT_SPEC_VERSION: u32 = 10u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateDebugReportCallbackEXT = unsafe extern "system" fn( @@ -4248,29 +4237,22 @@ pub type PFN_vkDebugReportMessageEXT = unsafe extern "system" fn( p_layer_prefix: *const c_char, p_message: *const c_char, ); -pub const NV_GLSL_SHADER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_glsl_shader\0") }; +pub const NV_GLSL_SHADER_NAME: &CStr = c"NV_glsl_shader"; pub const NV_GLSL_SHADER_SPEC_VERSION: u32 = 1u32; -pub const EXT_DEPTH_RANGE_UNRESTRICTED_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_depth_range_unrestricted\0") }; +pub const EXT_DEPTH_RANGE_UNRESTRICTED_NAME: &CStr = c"EXT_depth_range_unrestricted"; pub const EXT_DEPTH_RANGE_UNRESTRICTED_SPEC_VERSION: u32 = 1u32; -pub const KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_sampler_mirror_clamp_to_edge\0") }; +pub const KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_NAME: &CStr = c"KHR_sampler_mirror_clamp_to_edge"; pub const KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION: u32 = 3u32; -pub const IMG_FILTER_CUBIC_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_IMG_filter_cubic\0") }; +pub const IMG_FILTER_CUBIC_NAME: &CStr = c"IMG_filter_cubic"; pub const IMG_FILTER_CUBIC_SPEC_VERSION: u32 = 1u32; -pub const AMD_RASTERIZATION_ORDER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_rasterization_order\0") }; +pub const AMD_RASTERIZATION_ORDER_NAME: &CStr = c"AMD_rasterization_order"; pub const AMD_RASTERIZATION_ORDER_SPEC_VERSION: u32 = 1u32; -pub const AMD_SHADER_TRINARY_MINMAX_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_shader_trinary_minmax\0") }; +pub const AMD_SHADER_TRINARY_MINMAX_NAME: &CStr = c"AMD_shader_trinary_minmax"; pub const AMD_SHADER_TRINARY_MINMAX_SPEC_VERSION: u32 = 1u32; pub const AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_shader_explicit_vertex_parameter\0") }; + c"AMD_shader_explicit_vertex_parameter"; pub const AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_SPEC_VERSION: u32 = 1u32; -pub const EXT_DEBUG_MARKER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_debug_marker\0") }; +pub const EXT_DEBUG_MARKER_NAME: &CStr = c"EXT_debug_marker"; pub const EXT_DEBUG_MARKER_SPEC_VERSION: u32 = 4u32; #[allow(non_camel_case_types)] pub type PFN_vkDebugMarkerSetObjectTagEXT = unsafe extern "system" fn( @@ -4294,8 +4276,7 @@ pub type PFN_vkCmdDebugMarkerInsertEXT = unsafe extern "system" fn( command_buffer: CommandBuffer, p_marker_info: *const DebugMarkerMarkerInfoEXT<'_>, ); -pub const KHR_VIDEO_QUEUE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_queue\0") }; +pub const KHR_VIDEO_QUEUE_NAME: &CStr = c"KHR_video_queue"; pub const KHR_VIDEO_QUEUE_SPEC_VERSION: u32 = 8u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceVideoCapabilitiesKHR = unsafe extern "system" fn( @@ -4371,22 +4352,18 @@ pub type PFN_vkCmdControlVideoCodingKHR = unsafe extern "system" fn( command_buffer: CommandBuffer, p_coding_control_info: *const VideoCodingControlInfoKHR<'_>, ); -pub const KHR_VIDEO_DECODE_QUEUE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_decode_queue\0") }; +pub const KHR_VIDEO_DECODE_QUEUE_NAME: &CStr = c"KHR_video_decode_queue"; pub const KHR_VIDEO_DECODE_QUEUE_SPEC_VERSION: u32 = 8u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdDecodeVideoKHR = unsafe extern "system" fn( command_buffer: CommandBuffer, p_decode_info: *const VideoDecodeInfoKHR<'_>, ); -pub const AMD_GCN_SHADER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_gcn_shader\0") }; +pub const AMD_GCN_SHADER_NAME: &CStr = c"AMD_gcn_shader"; pub const AMD_GCN_SHADER_SPEC_VERSION: u32 = 1u32; -pub const NV_DEDICATED_ALLOCATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_dedicated_allocation\0") }; +pub const NV_DEDICATED_ALLOCATION_NAME: &CStr = c"NV_dedicated_allocation"; pub const NV_DEDICATED_ALLOCATION_SPEC_VERSION: u32 = 1u32; -pub const EXT_TRANSFORM_FEEDBACK_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_transform_feedback\0") }; +pub const EXT_TRANSFORM_FEEDBACK_NAME: &CStr = c"EXT_transform_feedback"; pub const EXT_TRANSFORM_FEEDBACK_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdBindTransformFeedbackBuffersEXT = unsafe extern "system" fn( @@ -4438,8 +4415,7 @@ pub type PFN_vkCmdDrawIndirectByteCountEXT = unsafe extern "system" fn( counter_offset: u32, vertex_stride: u32, ); -pub const NVX_BINARY_IMPORT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NVX_binary_import\0") }; +pub const NVX_BINARY_IMPORT_NAME: &CStr = c"NVX_binary_import"; pub const NVX_BINARY_IMPORT_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateCuModuleNVX = unsafe extern "system" fn( @@ -4472,8 +4448,7 @@ pub type PFN_vkCmdCuLaunchKernelNVX = unsafe extern "system" fn( command_buffer: CommandBuffer, p_launch_info: *const CuLaunchInfoNVX<'_>, ); -pub const NVX_IMAGE_VIEW_HANDLE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NVX_image_view_handle\0") }; +pub const NVX_IMAGE_VIEW_HANDLE_NAME: &CStr = c"NVX_image_view_handle"; pub const NVX_IMAGE_VIEW_HANDLE_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetImageViewHandleNVX = unsafe extern "system" fn( @@ -4486,8 +4461,7 @@ pub type PFN_vkGetImageViewAddressNVX = unsafe extern "system" fn( image_view: ImageView, p_properties: *mut ImageViewAddressPropertiesNVX<'_>, ) -> Result; -pub const AMD_DRAW_INDIRECT_COUNT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_draw_indirect_count\0") }; +pub const AMD_DRAW_INDIRECT_COUNT_NAME: &CStr = c"AMD_draw_indirect_count"; pub const AMD_DRAW_INDIRECT_COUNT_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdDrawIndirectCount = unsafe extern "system" fn( @@ -4509,29 +4483,21 @@ pub type PFN_vkCmdDrawIndexedIndirectCount = unsafe extern "system" fn( max_draw_count: u32, stride: u32, ); -pub const AMD_NEGATIVE_VIEWPORT_HEIGHT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_negative_viewport_height\0") }; +pub const AMD_NEGATIVE_VIEWPORT_HEIGHT_NAME: &CStr = c"AMD_negative_viewport_height"; pub const AMD_NEGATIVE_VIEWPORT_HEIGHT_SPEC_VERSION: u32 = 1u32; -pub const AMD_GPU_SHADER_HALF_FLOAT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_gpu_shader_half_float\0") }; +pub const AMD_GPU_SHADER_HALF_FLOAT_NAME: &CStr = c"AMD_gpu_shader_half_float"; pub const AMD_GPU_SHADER_HALF_FLOAT_SPEC_VERSION: u32 = 2u32; -pub const AMD_SHADER_BALLOT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_shader_ballot\0") }; +pub const AMD_SHADER_BALLOT_NAME: &CStr = c"AMD_shader_ballot"; pub const AMD_SHADER_BALLOT_SPEC_VERSION: u32 = 1u32; -pub const KHR_VIDEO_ENCODE_H264_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_encode_h264\0") }; +pub const KHR_VIDEO_ENCODE_H264_NAME: &CStr = c"KHR_video_encode_h264"; pub const KHR_VIDEO_ENCODE_H264_SPEC_VERSION: u32 = 14u32; -pub const KHR_VIDEO_ENCODE_H265_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_encode_h265\0") }; +pub const KHR_VIDEO_ENCODE_H265_NAME: &CStr = c"KHR_video_encode_h265"; pub const KHR_VIDEO_ENCODE_H265_SPEC_VERSION: u32 = 14u32; -pub const KHR_VIDEO_DECODE_H264_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_decode_h264\0") }; +pub const KHR_VIDEO_DECODE_H264_NAME: &CStr = c"KHR_video_decode_h264"; pub const KHR_VIDEO_DECODE_H264_SPEC_VERSION: u32 = 9u32; -pub const AMD_TEXTURE_GATHER_BIAS_LOD_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_texture_gather_bias_lod\0") }; +pub const AMD_TEXTURE_GATHER_BIAS_LOD_NAME: &CStr = c"AMD_texture_gather_bias_lod"; pub const AMD_TEXTURE_GATHER_BIAS_LOD_SPEC_VERSION: u32 = 1u32; -pub const AMD_SHADER_INFO_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_shader_info\0") }; +pub const AMD_SHADER_INFO_NAME: &CStr = c"AMD_shader_info"; pub const AMD_SHADER_INFO_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetShaderInfoAMD = unsafe extern "system" fn( @@ -4542,8 +4508,7 @@ pub type PFN_vkGetShaderInfoAMD = unsafe extern "system" fn( p_info_size: *mut usize, p_info: *mut c_void, ) -> Result; -pub const KHR_DYNAMIC_RENDERING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_dynamic_rendering\0") }; +pub const KHR_DYNAMIC_RENDERING_NAME: &CStr = c"KHR_dynamic_rendering"; pub const KHR_DYNAMIC_RENDERING_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdBeginRendering = unsafe extern "system" fn( @@ -4552,11 +4517,9 @@ pub type PFN_vkCmdBeginRendering = unsafe extern "system" fn( ); #[allow(non_camel_case_types)] pub type PFN_vkCmdEndRendering = unsafe extern "system" fn(command_buffer: CommandBuffer); -pub const AMD_SHADER_IMAGE_LOAD_STORE_LOD_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_shader_image_load_store_lod\0") }; +pub const AMD_SHADER_IMAGE_LOAD_STORE_LOD_NAME: &CStr = c"AMD_shader_image_load_store_lod"; pub const AMD_SHADER_IMAGE_LOAD_STORE_LOD_SPEC_VERSION: u32 = 1u32; -pub const GGP_STREAM_DESCRIPTOR_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_GGP_stream_descriptor_surface\0") }; +pub const GGP_STREAM_DESCRIPTOR_SURFACE_NAME: &CStr = c"GGP_stream_descriptor_surface"; pub const GGP_STREAM_DESCRIPTOR_SURFACE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateStreamDescriptorSurfaceGGP = unsafe extern "system" fn( @@ -4565,17 +4528,13 @@ pub type PFN_vkCreateStreamDescriptorSurfaceGGP = unsafe extern "system" fn( p_allocator: *const AllocationCallbacks<'_>, p_surface: *mut SurfaceKHR, ) -> Result; -pub const NV_CORNER_SAMPLED_IMAGE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_corner_sampled_image\0") }; +pub const NV_CORNER_SAMPLED_IMAGE_NAME: &CStr = c"NV_corner_sampled_image"; pub const NV_CORNER_SAMPLED_IMAGE_SPEC_VERSION: u32 = 2u32; -pub const KHR_MULTIVIEW_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_multiview\0") }; +pub const KHR_MULTIVIEW_NAME: &CStr = c"KHR_multiview"; pub const KHR_MULTIVIEW_SPEC_VERSION: u32 = 1u32; -pub const IMG_FORMAT_PVRTC_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_IMG_format_pvrtc\0") }; +pub const IMG_FORMAT_PVRTC_NAME: &CStr = c"IMG_format_pvrtc"; pub const IMG_FORMAT_PVRTC_SPEC_VERSION: u32 = 1u32; -pub const NV_EXTERNAL_MEMORY_CAPABILITIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_external_memory_capabilities\0") }; +pub const NV_EXTERNAL_MEMORY_CAPABILITIES_NAME: &CStr = c"NV_external_memory_capabilities"; pub const NV_EXTERNAL_MEMORY_CAPABILITIES_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV = @@ -4589,11 +4548,9 @@ pub type PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV = external_handle_type: ExternalMemoryHandleTypeFlagsNV, p_external_image_format_properties: *mut ExternalImageFormatPropertiesNV, ) -> Result; -pub const NV_EXTERNAL_MEMORY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_external_memory\0") }; +pub const NV_EXTERNAL_MEMORY_NAME: &CStr = c"NV_external_memory"; pub const NV_EXTERNAL_MEMORY_SPEC_VERSION: u32 = 1u32; -pub const NV_EXTERNAL_MEMORY_WIN32_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_external_memory_win32\0") }; +pub const NV_EXTERNAL_MEMORY_WIN32_NAME: &CStr = c"NV_external_memory_win32"; pub const NV_EXTERNAL_MEMORY_WIN32_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetMemoryWin32HandleNV = unsafe extern "system" fn( @@ -4602,11 +4559,9 @@ pub type PFN_vkGetMemoryWin32HandleNV = unsafe extern "system" fn( handle_type: ExternalMemoryHandleTypeFlagsNV, p_handle: *mut HANDLE, ) -> Result; -pub const NV_WIN32_KEYED_MUTEX_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_win32_keyed_mutex\0") }; +pub const NV_WIN32_KEYED_MUTEX_NAME: &CStr = c"NV_win32_keyed_mutex"; pub const NV_WIN32_KEYED_MUTEX_SPEC_VERSION: u32 = 2u32; -pub const KHR_GET_PHYSICAL_DEVICE_PROPERTIES2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_get_physical_device_properties2\0") }; +pub const KHR_GET_PHYSICAL_DEVICE_PROPERTIES2_NAME: &CStr = c"KHR_get_physical_device_properties2"; pub const KHR_GET_PHYSICAL_DEVICE_PROPERTIES2_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceFeatures2 = unsafe extern "system" fn( @@ -4648,8 +4603,7 @@ pub type PFN_vkGetPhysicalDeviceSparseImageFormatProperties2 = unsafe extern "sy p_property_count: *mut u32, p_properties: *mut SparseImageFormatProperties2<'_>, ); -pub const KHR_DEVICE_GROUP_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_device_group\0") }; +pub const KHR_DEVICE_GROUP_NAME: &CStr = c"KHR_device_group"; pub const KHR_DEVICE_GROUP_SPEC_VERSION: u32 = 4u32; #[allow(non_camel_case_types)] pub type PFN_vkGetDeviceGroupPeerMemoryFeatures = unsafe extern "system" fn( @@ -4672,11 +4626,9 @@ pub type PFN_vkCmdDispatchBase = unsafe extern "system" fn( group_count_y: u32, group_count_z: u32, ); -pub const EXT_VALIDATION_FLAGS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_validation_flags\0") }; +pub const EXT_VALIDATION_FLAGS_NAME: &CStr = c"EXT_validation_flags"; pub const EXT_VALIDATION_FLAGS_SPEC_VERSION: u32 = 3u32; -pub const NN_VI_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NN_vi_surface\0") }; +pub const NN_VI_SURFACE_NAME: &CStr = c"NN_vi_surface"; pub const NN_VI_SURFACE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateViSurfaceNN = unsafe extern "system" fn( @@ -4685,26 +4637,19 @@ pub type PFN_vkCreateViSurfaceNN = unsafe extern "system" fn( p_allocator: *const AllocationCallbacks<'_>, p_surface: *mut SurfaceKHR, ) -> Result; -pub const KHR_SHADER_DRAW_PARAMETERS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_draw_parameters\0") }; +pub const KHR_SHADER_DRAW_PARAMETERS_NAME: &CStr = c"KHR_shader_draw_parameters"; pub const KHR_SHADER_DRAW_PARAMETERS_SPEC_VERSION: u32 = 1u32; -pub const EXT_SHADER_SUBGROUP_BALLOT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_subgroup_ballot\0") }; +pub const EXT_SHADER_SUBGROUP_BALLOT_NAME: &CStr = c"EXT_shader_subgroup_ballot"; pub const EXT_SHADER_SUBGROUP_BALLOT_SPEC_VERSION: u32 = 1u32; -pub const EXT_SHADER_SUBGROUP_VOTE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_subgroup_vote\0") }; +pub const EXT_SHADER_SUBGROUP_VOTE_NAME: &CStr = c"EXT_shader_subgroup_vote"; pub const EXT_SHADER_SUBGROUP_VOTE_SPEC_VERSION: u32 = 1u32; -pub const EXT_TEXTURE_COMPRESSION_ASTC_HDR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_texture_compression_astc_hdr\0") }; +pub const EXT_TEXTURE_COMPRESSION_ASTC_HDR_NAME: &CStr = c"EXT_texture_compression_astc_hdr"; pub const EXT_TEXTURE_COMPRESSION_ASTC_HDR_SPEC_VERSION: u32 = 1u32; -pub const EXT_ASTC_DECODE_MODE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_astc_decode_mode\0") }; +pub const EXT_ASTC_DECODE_MODE_NAME: &CStr = c"EXT_astc_decode_mode"; pub const EXT_ASTC_DECODE_MODE_SPEC_VERSION: u32 = 1u32; -pub const EXT_PIPELINE_ROBUSTNESS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_pipeline_robustness\0") }; +pub const EXT_PIPELINE_ROBUSTNESS_NAME: &CStr = c"EXT_pipeline_robustness"; pub const EXT_PIPELINE_ROBUSTNESS_SPEC_VERSION: u32 = 1u32; -pub const KHR_MAINTENANCE1_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_maintenance1\0") }; +pub const KHR_MAINTENANCE1_NAME: &CStr = c"KHR_maintenance1"; pub const KHR_MAINTENANCE1_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkTrimCommandPool = unsafe extern "system" fn( @@ -4712,8 +4657,7 @@ pub type PFN_vkTrimCommandPool = unsafe extern "system" fn( command_pool: CommandPool, flags: CommandPoolTrimFlags, ); -pub const KHR_DEVICE_GROUP_CREATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_device_group_creation\0") }; +pub const KHR_DEVICE_GROUP_CREATION_NAME: &CStr = c"KHR_device_group_creation"; pub const KHR_DEVICE_GROUP_CREATION_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkEnumeratePhysicalDeviceGroups = unsafe extern "system" fn( @@ -4721,8 +4665,7 @@ pub type PFN_vkEnumeratePhysicalDeviceGroups = unsafe extern "system" fn( p_physical_device_group_count: *mut u32, p_physical_device_group_properties: *mut PhysicalDeviceGroupProperties<'_>, ) -> Result; -pub const KHR_EXTERNAL_MEMORY_CAPABILITIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_memory_capabilities\0") }; +pub const KHR_EXTERNAL_MEMORY_CAPABILITIES_NAME: &CStr = c"KHR_external_memory_capabilities"; pub const KHR_EXTERNAL_MEMORY_CAPABILITIES_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceExternalBufferProperties = unsafe extern "system" fn( @@ -4730,11 +4673,9 @@ pub type PFN_vkGetPhysicalDeviceExternalBufferProperties = unsafe extern "system p_external_buffer_info: *const PhysicalDeviceExternalBufferInfo<'_>, p_external_buffer_properties: *mut ExternalBufferProperties<'_>, ); -pub const KHR_EXTERNAL_MEMORY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_memory\0") }; +pub const KHR_EXTERNAL_MEMORY_NAME: &CStr = c"KHR_external_memory"; pub const KHR_EXTERNAL_MEMORY_SPEC_VERSION: u32 = 1u32; -pub const KHR_EXTERNAL_MEMORY_WIN32_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_memory_win32\0") }; +pub const KHR_EXTERNAL_MEMORY_WIN32_NAME: &CStr = c"KHR_external_memory_win32"; pub const KHR_EXTERNAL_MEMORY_WIN32_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetMemoryWin32HandleKHR = unsafe extern "system" fn( @@ -4749,8 +4690,7 @@ pub type PFN_vkGetMemoryWin32HandlePropertiesKHR = unsafe extern "system" fn( handle: HANDLE, p_memory_win32_handle_properties: *mut MemoryWin32HandlePropertiesKHR<'_>, ) -> Result; -pub const KHR_EXTERNAL_MEMORY_FD_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_memory_fd\0") }; +pub const KHR_EXTERNAL_MEMORY_FD_NAME: &CStr = c"KHR_external_memory_fd"; pub const KHR_EXTERNAL_MEMORY_FD_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetMemoryFdKHR = unsafe extern "system" fn( @@ -4765,11 +4705,9 @@ pub type PFN_vkGetMemoryFdPropertiesKHR = unsafe extern "system" fn( fd: c_int, p_memory_fd_properties: *mut MemoryFdPropertiesKHR<'_>, ) -> Result; -pub const KHR_WIN32_KEYED_MUTEX_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_win32_keyed_mutex\0") }; +pub const KHR_WIN32_KEYED_MUTEX_NAME: &CStr = c"KHR_win32_keyed_mutex"; pub const KHR_WIN32_KEYED_MUTEX_SPEC_VERSION: u32 = 1u32; -pub const KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_semaphore_capabilities\0") }; +pub const KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_NAME: &CStr = c"KHR_external_semaphore_capabilities"; pub const KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceExternalSemaphoreProperties = unsafe extern "system" fn( @@ -4777,11 +4715,9 @@ pub type PFN_vkGetPhysicalDeviceExternalSemaphoreProperties = unsafe extern "sys p_external_semaphore_info: *const PhysicalDeviceExternalSemaphoreInfo<'_>, p_external_semaphore_properties: *mut ExternalSemaphoreProperties<'_>, ); -pub const KHR_EXTERNAL_SEMAPHORE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_semaphore\0") }; +pub const KHR_EXTERNAL_SEMAPHORE_NAME: &CStr = c"KHR_external_semaphore"; pub const KHR_EXTERNAL_SEMAPHORE_SPEC_VERSION: u32 = 1u32; -pub const KHR_EXTERNAL_SEMAPHORE_WIN32_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_semaphore_win32\0") }; +pub const KHR_EXTERNAL_SEMAPHORE_WIN32_NAME: &CStr = c"KHR_external_semaphore_win32"; pub const KHR_EXTERNAL_SEMAPHORE_WIN32_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkImportSemaphoreWin32HandleKHR = unsafe extern "system" fn( @@ -4794,8 +4730,7 @@ pub type PFN_vkGetSemaphoreWin32HandleKHR = unsafe extern "system" fn( p_get_win32_handle_info: *const SemaphoreGetWin32HandleInfoKHR<'_>, p_handle: *mut HANDLE, ) -> Result; -pub const KHR_EXTERNAL_SEMAPHORE_FD_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_semaphore_fd\0") }; +pub const KHR_EXTERNAL_SEMAPHORE_FD_NAME: &CStr = c"KHR_external_semaphore_fd"; pub const KHR_EXTERNAL_SEMAPHORE_FD_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkImportSemaphoreFdKHR = unsafe extern "system" fn( @@ -4808,8 +4743,7 @@ pub type PFN_vkGetSemaphoreFdKHR = unsafe extern "system" fn( p_get_fd_info: *const SemaphoreGetFdInfoKHR<'_>, p_fd: *mut c_int, ) -> Result; -pub const KHR_PUSH_DESCRIPTOR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_push_descriptor\0") }; +pub const KHR_PUSH_DESCRIPTOR_NAME: &CStr = c"KHR_push_descriptor"; pub const KHR_PUSH_DESCRIPTOR_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdPushDescriptorSetKHR = unsafe extern "system" fn( @@ -4828,8 +4762,7 @@ pub type PFN_vkCmdPushDescriptorSetWithTemplateKHR = unsafe extern "system" fn( set: u32, p_data: *const c_void, ); -pub const EXT_CONDITIONAL_RENDERING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_conditional_rendering\0") }; +pub const EXT_CONDITIONAL_RENDERING_NAME: &CStr = c"EXT_conditional_rendering"; pub const EXT_CONDITIONAL_RENDERING_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdBeginConditionalRenderingEXT = unsafe extern "system" fn( @@ -4839,17 +4772,13 @@ pub type PFN_vkCmdBeginConditionalRenderingEXT = unsafe extern "system" fn( #[allow(non_camel_case_types)] pub type PFN_vkCmdEndConditionalRenderingEXT = unsafe extern "system" fn(command_buffer: CommandBuffer); -pub const KHR_SHADER_FLOAT16_INT8_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_float16_int8\0") }; +pub const KHR_SHADER_FLOAT16_INT8_NAME: &CStr = c"KHR_shader_float16_int8"; pub const KHR_SHADER_FLOAT16_INT8_SPEC_VERSION: u32 = 1u32; -pub const KHR_16BIT_STORAGE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_16bit_storage\0") }; +pub const KHR_16BIT_STORAGE_NAME: &CStr = c"KHR_16bit_storage"; pub const KHR_16BIT_STORAGE_SPEC_VERSION: u32 = 1u32; -pub const KHR_INCREMENTAL_PRESENT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_incremental_present\0") }; +pub const KHR_INCREMENTAL_PRESENT_NAME: &CStr = c"KHR_incremental_present"; pub const KHR_INCREMENTAL_PRESENT_SPEC_VERSION: u32 = 2u32; -pub const KHR_DESCRIPTOR_UPDATE_TEMPLATE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_descriptor_update_template\0") }; +pub const KHR_DESCRIPTOR_UPDATE_TEMPLATE_NAME: &CStr = c"KHR_descriptor_update_template"; pub const KHR_DESCRIPTOR_UPDATE_TEMPLATE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateDescriptorUpdateTemplate = unsafe extern "system" fn( @@ -4871,8 +4800,7 @@ pub type PFN_vkUpdateDescriptorSetWithTemplate = unsafe extern "system" fn( descriptor_update_template: DescriptorUpdateTemplate, p_data: *const c_void, ); -pub const NV_CLIP_SPACE_W_SCALING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_clip_space_w_scaling\0") }; +pub const NV_CLIP_SPACE_W_SCALING_NAME: &CStr = c"NV_clip_space_w_scaling"; pub const NV_CLIP_SPACE_W_SCALING_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetViewportWScalingNV = unsafe extern "system" fn( @@ -4881,14 +4809,12 @@ pub type PFN_vkCmdSetViewportWScalingNV = unsafe extern "system" fn( viewport_count: u32, p_viewport_w_scalings: *const ViewportWScalingNV, ); -pub const EXT_DIRECT_MODE_DISPLAY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_direct_mode_display\0") }; +pub const EXT_DIRECT_MODE_DISPLAY_NAME: &CStr = c"EXT_direct_mode_display"; pub const EXT_DIRECT_MODE_DISPLAY_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkReleaseDisplayEXT = unsafe extern "system" fn(physical_device: PhysicalDevice, display: DisplayKHR) -> Result; -pub const EXT_ACQUIRE_XLIB_DISPLAY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_acquire_xlib_display\0") }; +pub const EXT_ACQUIRE_XLIB_DISPLAY_NAME: &CStr = c"EXT_acquire_xlib_display"; pub const EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkAcquireXlibDisplayEXT = unsafe extern "system" fn( @@ -4903,8 +4829,7 @@ pub type PFN_vkGetRandROutputDisplayEXT = unsafe extern "system" fn( rr_output: RROutput, p_display: *mut DisplayKHR, ) -> Result; -pub const EXT_DISPLAY_SURFACE_COUNTER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_display_surface_counter\0") }; +pub const EXT_DISPLAY_SURFACE_COUNTER_NAME: &CStr = c"EXT_display_surface_counter"; pub const EXT_DISPLAY_SURFACE_COUNTER_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT = unsafe extern "system" fn( @@ -4912,8 +4837,7 @@ pub type PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT = unsafe extern "system" surface: SurfaceKHR, p_surface_capabilities: *mut SurfaceCapabilities2EXT<'_>, ) -> Result; -pub const EXT_DISPLAY_CONTROL_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_display_control\0") }; +pub const EXT_DISPLAY_CONTROL_NAME: &CStr = c"EXT_display_control"; pub const EXT_DISPLAY_CONTROL_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkDisplayPowerControlEXT = unsafe extern "system" fn( @@ -4943,8 +4867,7 @@ pub type PFN_vkGetSwapchainCounterEXT = unsafe extern "system" fn( counter: SurfaceCounterFlagsEXT, p_counter_value: *mut u64, ) -> Result; -pub const GOOGLE_DISPLAY_TIMING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_GOOGLE_display_timing\0") }; +pub const GOOGLE_DISPLAY_TIMING_NAME: &CStr = c"GOOGLE_display_timing"; pub const GOOGLE_DISPLAY_TIMING_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetRefreshCycleDurationGOOGLE = unsafe extern "system" fn( @@ -4959,23 +4882,17 @@ pub type PFN_vkGetPastPresentationTimingGOOGLE = unsafe extern "system" fn( p_presentation_timing_count: *mut u32, p_presentation_timings: *mut PastPresentationTimingGOOGLE, ) -> Result; -pub const NV_SAMPLE_MASK_OVERRIDE_COVERAGE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_sample_mask_override_coverage\0") }; +pub const NV_SAMPLE_MASK_OVERRIDE_COVERAGE_NAME: &CStr = c"NV_sample_mask_override_coverage"; pub const NV_SAMPLE_MASK_OVERRIDE_COVERAGE_SPEC_VERSION: u32 = 1u32; -pub const NV_GEOMETRY_SHADER_PASSTHROUGH_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_geometry_shader_passthrough\0") }; +pub const NV_GEOMETRY_SHADER_PASSTHROUGH_NAME: &CStr = c"NV_geometry_shader_passthrough"; pub const NV_GEOMETRY_SHADER_PASSTHROUGH_SPEC_VERSION: u32 = 1u32; -pub const NV_VIEWPORT_ARRAY2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_viewport_array2\0") }; +pub const NV_VIEWPORT_ARRAY2_NAME: &CStr = c"NV_viewport_array2"; pub const NV_VIEWPORT_ARRAY2_SPEC_VERSION: u32 = 1u32; -pub const NVX_MULTIVIEW_PER_VIEW_ATTRIBUTES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NVX_multiview_per_view_attributes\0") }; +pub const NVX_MULTIVIEW_PER_VIEW_ATTRIBUTES_NAME: &CStr = c"NVX_multiview_per_view_attributes"; pub const NVX_MULTIVIEW_PER_VIEW_ATTRIBUTES_SPEC_VERSION: u32 = 1u32; -pub const NV_VIEWPORT_SWIZZLE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_viewport_swizzle\0") }; +pub const NV_VIEWPORT_SWIZZLE_NAME: &CStr = c"NV_viewport_swizzle"; pub const NV_VIEWPORT_SWIZZLE_SPEC_VERSION: u32 = 1u32; -pub const EXT_DISCARD_RECTANGLES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_discard_rectangles\0") }; +pub const EXT_DISCARD_RECTANGLES_NAME: &CStr = c"EXT_discard_rectangles"; pub const EXT_DISCARD_RECTANGLES_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetDiscardRectangleEXT = unsafe extern "system" fn( @@ -4992,17 +4909,13 @@ pub type PFN_vkCmdSetDiscardRectangleModeEXT = unsafe extern "system" fn( command_buffer: CommandBuffer, discard_rectangle_mode: DiscardRectangleModeEXT, ); -pub const EXT_CONSERVATIVE_RASTERIZATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_conservative_rasterization\0") }; +pub const EXT_CONSERVATIVE_RASTERIZATION_NAME: &CStr = c"EXT_conservative_rasterization"; pub const EXT_CONSERVATIVE_RASTERIZATION_SPEC_VERSION: u32 = 1u32; -pub const EXT_DEPTH_CLIP_ENABLE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_depth_clip_enable\0") }; +pub const EXT_DEPTH_CLIP_ENABLE_NAME: &CStr = c"EXT_depth_clip_enable"; pub const EXT_DEPTH_CLIP_ENABLE_SPEC_VERSION: u32 = 1u32; -pub const EXT_SWAPCHAIN_COLORSPACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_swapchain_colorspace\0") }; +pub const EXT_SWAPCHAIN_COLORSPACE_NAME: &CStr = c"EXT_swapchain_colorspace"; pub const EXT_SWAPCHAIN_COLORSPACE_SPEC_VERSION: u32 = 4u32; -pub const EXT_HDR_METADATA_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_hdr_metadata\0") }; +pub const EXT_HDR_METADATA_NAME: &CStr = c"EXT_hdr_metadata"; pub const EXT_HDR_METADATA_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkSetHdrMetadataEXT = unsafe extern "system" fn( @@ -5011,11 +4924,9 @@ pub type PFN_vkSetHdrMetadataEXT = unsafe extern "system" fn( p_swapchains: *const SwapchainKHR, p_metadata: *const HdrMetadataEXT<'_>, ); -pub const KHR_IMAGELESS_FRAMEBUFFER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_imageless_framebuffer\0") }; +pub const KHR_IMAGELESS_FRAMEBUFFER_NAME: &CStr = c"KHR_imageless_framebuffer"; pub const KHR_IMAGELESS_FRAMEBUFFER_SPEC_VERSION: u32 = 1u32; -pub const KHR_CREATE_RENDERPASS2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_create_renderpass2\0") }; +pub const KHR_CREATE_RENDERPASS2_NAME: &CStr = c"KHR_create_renderpass2"; pub const KHR_CREATE_RENDERPASS2_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateRenderPass2 = unsafe extern "system" fn( @@ -5041,17 +4952,14 @@ pub type PFN_vkCmdEndRenderPass2 = unsafe extern "system" fn( command_buffer: CommandBuffer, p_subpass_end_info: *const SubpassEndInfo<'_>, ); -pub const IMG_RELAXED_LINE_RASTERIZATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_IMG_relaxed_line_rasterization\0") }; +pub const IMG_RELAXED_LINE_RASTERIZATION_NAME: &CStr = c"IMG_relaxed_line_rasterization"; pub const IMG_RELAXED_LINE_RASTERIZATION_SPEC_VERSION: u32 = 1u32; -pub const KHR_SHARED_PRESENTABLE_IMAGE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shared_presentable_image\0") }; +pub const KHR_SHARED_PRESENTABLE_IMAGE_NAME: &CStr = c"KHR_shared_presentable_image"; pub const KHR_SHARED_PRESENTABLE_IMAGE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetSwapchainStatusKHR = unsafe extern "system" fn(device: crate::vk::Device, swapchain: SwapchainKHR) -> Result; -pub const KHR_EXTERNAL_FENCE_CAPABILITIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_fence_capabilities\0") }; +pub const KHR_EXTERNAL_FENCE_CAPABILITIES_NAME: &CStr = c"KHR_external_fence_capabilities"; pub const KHR_EXTERNAL_FENCE_CAPABILITIES_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceExternalFenceProperties = unsafe extern "system" fn( @@ -5059,11 +4967,9 @@ pub type PFN_vkGetPhysicalDeviceExternalFenceProperties = unsafe extern "system" p_external_fence_info: *const PhysicalDeviceExternalFenceInfo<'_>, p_external_fence_properties: *mut ExternalFenceProperties<'_>, ); -pub const KHR_EXTERNAL_FENCE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_fence\0") }; +pub const KHR_EXTERNAL_FENCE_NAME: &CStr = c"KHR_external_fence"; pub const KHR_EXTERNAL_FENCE_SPEC_VERSION: u32 = 1u32; -pub const KHR_EXTERNAL_FENCE_WIN32_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_fence_win32\0") }; +pub const KHR_EXTERNAL_FENCE_WIN32_NAME: &CStr = c"KHR_external_fence_win32"; pub const KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkImportFenceWin32HandleKHR = unsafe extern "system" fn( @@ -5076,8 +4982,7 @@ pub type PFN_vkGetFenceWin32HandleKHR = unsafe extern "system" fn( p_get_win32_handle_info: *const FenceGetWin32HandleInfoKHR<'_>, p_handle: *mut HANDLE, ) -> Result; -pub const KHR_EXTERNAL_FENCE_FD_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_external_fence_fd\0") }; +pub const KHR_EXTERNAL_FENCE_FD_NAME: &CStr = c"KHR_external_fence_fd"; pub const KHR_EXTERNAL_FENCE_FD_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkImportFenceFdKHR = unsafe extern "system" fn( @@ -5090,8 +4995,7 @@ pub type PFN_vkGetFenceFdKHR = unsafe extern "system" fn( p_get_fd_info: *const FenceGetFdInfoKHR<'_>, p_fd: *mut c_int, ) -> Result; -pub const KHR_PERFORMANCE_QUERY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_performance_query\0") }; +pub const KHR_PERFORMANCE_QUERY_NAME: &CStr = c"KHR_performance_query"; pub const KHR_PERFORMANCE_QUERY_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR = @@ -5116,11 +5020,9 @@ pub type PFN_vkAcquireProfilingLockKHR = unsafe extern "system" fn( ) -> Result; #[allow(non_camel_case_types)] pub type PFN_vkReleaseProfilingLockKHR = unsafe extern "system" fn(device: crate::vk::Device); -pub const KHR_MAINTENANCE2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_maintenance2\0") }; +pub const KHR_MAINTENANCE2_NAME: &CStr = c"KHR_maintenance2"; pub const KHR_MAINTENANCE2_SPEC_VERSION: u32 = 1u32; -pub const KHR_GET_SURFACE_CAPABILITIES2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_get_surface_capabilities2\0") }; +pub const KHR_GET_SURFACE_CAPABILITIES2_NAME: &CStr = c"KHR_get_surface_capabilities2"; pub const KHR_GET_SURFACE_CAPABILITIES2_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceSurfaceCapabilities2KHR = unsafe extern "system" fn( @@ -5135,11 +5037,9 @@ pub type PFN_vkGetPhysicalDeviceSurfaceFormats2KHR = unsafe extern "system" fn( p_surface_format_count: *mut u32, p_surface_formats: *mut SurfaceFormat2KHR<'_>, ) -> Result; -pub const KHR_VARIABLE_POINTERS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_variable_pointers\0") }; +pub const KHR_VARIABLE_POINTERS_NAME: &CStr = c"KHR_variable_pointers"; pub const KHR_VARIABLE_POINTERS_SPEC_VERSION: u32 = 1u32; -pub const KHR_GET_DISPLAY_PROPERTIES2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_get_display_properties2\0") }; +pub const KHR_GET_DISPLAY_PROPERTIES2_NAME: &CStr = c"KHR_get_display_properties2"; pub const KHR_GET_DISPLAY_PROPERTIES2_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceDisplayProperties2KHR = unsafe extern "system" fn( @@ -5166,8 +5066,7 @@ pub type PFN_vkGetDisplayPlaneCapabilities2KHR = unsafe extern "system" fn( p_display_plane_info: *const DisplayPlaneInfo2KHR<'_>, p_capabilities: *mut DisplayPlaneCapabilities2KHR<'_>, ) -> Result; -pub const MVK_IOS_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_MVK_ios_surface\0") }; +pub const MVK_IOS_SURFACE_NAME: &CStr = c"MVK_ios_surface"; pub const MVK_IOS_SURFACE_SPEC_VERSION: u32 = 3u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateIOSSurfaceMVK = unsafe extern "system" fn( @@ -5176,8 +5075,7 @@ pub type PFN_vkCreateIOSSurfaceMVK = unsafe extern "system" fn( p_allocator: *const AllocationCallbacks<'_>, p_surface: *mut SurfaceKHR, ) -> Result; -pub const MVK_MACOS_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_MVK_macos_surface\0") }; +pub const MVK_MACOS_SURFACE_NAME: &CStr = c"MVK_macos_surface"; pub const MVK_MACOS_SURFACE_SPEC_VERSION: u32 = 3u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateMacOSSurfaceMVK = unsafe extern "system" fn( @@ -5186,17 +5084,13 @@ pub type PFN_vkCreateMacOSSurfaceMVK = unsafe extern "system" fn( p_allocator: *const AllocationCallbacks<'_>, p_surface: *mut SurfaceKHR, ) -> Result; -pub const EXT_EXTERNAL_MEMORY_DMA_BUF_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_external_memory_dma_buf\0") }; +pub const EXT_EXTERNAL_MEMORY_DMA_BUF_NAME: &CStr = c"EXT_external_memory_dma_buf"; pub const EXT_EXTERNAL_MEMORY_DMA_BUF_SPEC_VERSION: u32 = 1u32; -pub const EXT_QUEUE_FAMILY_FOREIGN_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_queue_family_foreign\0") }; +pub const EXT_QUEUE_FAMILY_FOREIGN_NAME: &CStr = c"EXT_queue_family_foreign"; pub const EXT_QUEUE_FAMILY_FOREIGN_SPEC_VERSION: u32 = 1u32; -pub const KHR_DEDICATED_ALLOCATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_dedicated_allocation\0") }; +pub const KHR_DEDICATED_ALLOCATION_NAME: &CStr = c"KHR_dedicated_allocation"; pub const KHR_DEDICATED_ALLOCATION_SPEC_VERSION: u32 = 3u32; -pub const EXT_DEBUG_UTILS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_debug_utils\0") }; +pub const EXT_DEBUG_UTILS_NAME: &CStr = c"EXT_debug_utils"; pub const EXT_DEBUG_UTILS_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateDebugUtilsMessengerEXT = unsafe extern "system" fn( @@ -5248,9 +5142,8 @@ pub type PFN_vkCmdInsertDebugUtilsLabelEXT = unsafe extern "system" fn( command_buffer: CommandBuffer, p_label_info: *const DebugUtilsLabelEXT<'_>, ); -pub const ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_NAME: &CStr = unsafe { - CStr::from_bytes_with_nul_unchecked(b"VK_ANDROID_external_memory_android_hardware_buffer\0") -}; +pub const ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_NAME: &CStr = + c"ANDROID_external_memory_android_hardware_buffer"; pub const ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_SPEC_VERSION: u32 = 5u32; #[allow(non_camel_case_types)] pub type PFN_vkGetAndroidHardwareBufferPropertiesANDROID = unsafe extern "system" fn( @@ -5264,17 +5157,13 @@ pub type PFN_vkGetMemoryAndroidHardwareBufferANDROID = unsafe extern "system" fn p_info: *const MemoryGetAndroidHardwareBufferInfoANDROID<'_>, p_buffer: *mut *mut AHardwareBuffer, ) -> Result; -pub const EXT_SAMPLER_FILTER_MINMAX_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_sampler_filter_minmax\0") }; +pub const EXT_SAMPLER_FILTER_MINMAX_NAME: &CStr = c"EXT_sampler_filter_minmax"; pub const EXT_SAMPLER_FILTER_MINMAX_SPEC_VERSION: u32 = 2u32; -pub const KHR_STORAGE_BUFFER_STORAGE_CLASS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_storage_buffer_storage_class\0") }; +pub const KHR_STORAGE_BUFFER_STORAGE_CLASS_NAME: &CStr = c"KHR_storage_buffer_storage_class"; pub const KHR_STORAGE_BUFFER_STORAGE_CLASS_SPEC_VERSION: u32 = 1u32; -pub const AMD_GPU_SHADER_INT16_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_gpu_shader_int16\0") }; +pub const AMD_GPU_SHADER_INT16_NAME: &CStr = c"AMD_gpu_shader_int16"; pub const AMD_GPU_SHADER_INT16_SPEC_VERSION: u32 = 2u32; -pub const AMDX_SHADER_ENQUEUE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMDX_shader_enqueue\0") }; +pub const AMDX_SHADER_ENQUEUE_NAME: &CStr = c"AMDX_shader_enqueue"; pub const AMDX_SHADER_ENQUEUE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateExecutionGraphPipelinesAMDX = unsafe extern "system" fn( @@ -5319,20 +5208,15 @@ pub type PFN_vkCmdDispatchGraphIndirectCountAMDX = unsafe extern "system" fn( scratch: DeviceAddress, count_info: DeviceAddress, ); -pub const AMD_MIXED_ATTACHMENT_SAMPLES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_mixed_attachment_samples\0") }; +pub const AMD_MIXED_ATTACHMENT_SAMPLES_NAME: &CStr = c"AMD_mixed_attachment_samples"; pub const AMD_MIXED_ATTACHMENT_SAMPLES_SPEC_VERSION: u32 = 1u32; -pub const AMD_SHADER_FRAGMENT_MASK_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_shader_fragment_mask\0") }; +pub const AMD_SHADER_FRAGMENT_MASK_NAME: &CStr = c"AMD_shader_fragment_mask"; pub const AMD_SHADER_FRAGMENT_MASK_SPEC_VERSION: u32 = 1u32; -pub const EXT_INLINE_UNIFORM_BLOCK_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_inline_uniform_block\0") }; +pub const EXT_INLINE_UNIFORM_BLOCK_NAME: &CStr = c"EXT_inline_uniform_block"; pub const EXT_INLINE_UNIFORM_BLOCK_SPEC_VERSION: u32 = 1u32; -pub const EXT_SHADER_STENCIL_EXPORT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_stencil_export\0") }; +pub const EXT_SHADER_STENCIL_EXPORT_NAME: &CStr = c"EXT_shader_stencil_export"; pub const EXT_SHADER_STENCIL_EXPORT_SPEC_VERSION: u32 = 1u32; -pub const EXT_SAMPLE_LOCATIONS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_sample_locations\0") }; +pub const EXT_SAMPLE_LOCATIONS_NAME: &CStr = c"EXT_sample_locations"; pub const EXT_SAMPLE_LOCATIONS_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceMultisamplePropertiesEXT = unsafe extern "system" fn( @@ -5345,11 +5229,9 @@ pub type PFN_vkCmdSetSampleLocationsEXT = unsafe extern "system" fn( command_buffer: CommandBuffer, p_sample_locations_info: *const SampleLocationsInfoEXT<'_>, ); -pub const KHR_RELAXED_BLOCK_LAYOUT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_relaxed_block_layout\0") }; +pub const KHR_RELAXED_BLOCK_LAYOUT_NAME: &CStr = c"KHR_relaxed_block_layout"; pub const KHR_RELAXED_BLOCK_LAYOUT_SPEC_VERSION: u32 = 1u32; -pub const KHR_GET_MEMORY_REQUIREMENTS2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_get_memory_requirements2\0") }; +pub const KHR_GET_MEMORY_REQUIREMENTS2_NAME: &CStr = c"KHR_get_memory_requirements2"; pub const KHR_GET_MEMORY_REQUIREMENTS2_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetImageMemoryRequirements2 = unsafe extern "system" fn( @@ -5370,17 +5252,13 @@ pub type PFN_vkGetImageSparseMemoryRequirements2 = unsafe extern "system" fn( p_sparse_memory_requirement_count: *mut u32, p_sparse_memory_requirements: *mut SparseImageMemoryRequirements2<'_>, ); -pub const KHR_IMAGE_FORMAT_LIST_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_image_format_list\0") }; +pub const KHR_IMAGE_FORMAT_LIST_NAME: &CStr = c"KHR_image_format_list"; pub const KHR_IMAGE_FORMAT_LIST_SPEC_VERSION: u32 = 1u32; -pub const EXT_BLEND_OPERATION_ADVANCED_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_blend_operation_advanced\0") }; +pub const EXT_BLEND_OPERATION_ADVANCED_NAME: &CStr = c"EXT_blend_operation_advanced"; pub const EXT_BLEND_OPERATION_ADVANCED_SPEC_VERSION: u32 = 2u32; -pub const NV_FRAGMENT_COVERAGE_TO_COLOR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_fragment_coverage_to_color\0") }; +pub const NV_FRAGMENT_COVERAGE_TO_COLOR_NAME: &CStr = c"NV_fragment_coverage_to_color"; pub const NV_FRAGMENT_COVERAGE_TO_COLOR_SPEC_VERSION: u32 = 1u32; -pub const KHR_ACCELERATION_STRUCTURE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_acceleration_structure\0") }; +pub const KHR_ACCELERATION_STRUCTURE_NAME: &CStr = c"KHR_acceleration_structure"; pub const KHR_ACCELERATION_STRUCTURE_SPEC_VERSION: u32 = 13u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateAccelerationStructureKHR = unsafe extern "system" fn( @@ -5491,8 +5369,7 @@ pub type PFN_vkGetAccelerationStructureBuildSizesKHR = unsafe extern "system" fn p_max_primitive_counts: *const u32, p_size_info: *mut AccelerationStructureBuildSizesInfoKHR<'_>, ); -pub const KHR_RAY_TRACING_PIPELINE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_ray_tracing_pipeline\0") }; +pub const KHR_RAY_TRACING_PIPELINE_NAME: &CStr = c"KHR_ray_tracing_pipeline"; pub const KHR_RAY_TRACING_PIPELINE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdTraceRaysKHR = unsafe extern "system" fn( @@ -5553,23 +5430,17 @@ pub type PFN_vkGetRayTracingShaderGroupStackSizeKHR = unsafe extern "system" fn( #[allow(non_camel_case_types)] pub type PFN_vkCmdSetRayTracingPipelineStackSizeKHR = unsafe extern "system" fn(command_buffer: CommandBuffer, pipeline_stack_size: u32); -pub const KHR_RAY_QUERY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_ray_query\0") }; +pub const KHR_RAY_QUERY_NAME: &CStr = c"KHR_ray_query"; pub const KHR_RAY_QUERY_SPEC_VERSION: u32 = 1u32; -pub const NV_FRAMEBUFFER_MIXED_SAMPLES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_framebuffer_mixed_samples\0") }; +pub const NV_FRAMEBUFFER_MIXED_SAMPLES_NAME: &CStr = c"NV_framebuffer_mixed_samples"; pub const NV_FRAMEBUFFER_MIXED_SAMPLES_SPEC_VERSION: u32 = 1u32; -pub const NV_FILL_RECTANGLE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_fill_rectangle\0") }; +pub const NV_FILL_RECTANGLE_NAME: &CStr = c"NV_fill_rectangle"; pub const NV_FILL_RECTANGLE_SPEC_VERSION: u32 = 1u32; -pub const NV_SHADER_SM_BUILTINS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_shader_sm_builtins\0") }; +pub const NV_SHADER_SM_BUILTINS_NAME: &CStr = c"NV_shader_sm_builtins"; pub const NV_SHADER_SM_BUILTINS_SPEC_VERSION: u32 = 1u32; -pub const EXT_POST_DEPTH_COVERAGE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_post_depth_coverage\0") }; +pub const EXT_POST_DEPTH_COVERAGE_NAME: &CStr = c"EXT_post_depth_coverage"; pub const EXT_POST_DEPTH_COVERAGE_SPEC_VERSION: u32 = 1u32; -pub const KHR_SAMPLER_YCBCR_CONVERSION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_sampler_ycbcr_conversion\0") }; +pub const KHR_SAMPLER_YCBCR_CONVERSION_NAME: &CStr = c"KHR_sampler_ycbcr_conversion"; pub const KHR_SAMPLER_YCBCR_CONVERSION_SPEC_VERSION: u32 = 14u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateSamplerYcbcrConversion = unsafe extern "system" fn( @@ -5584,8 +5455,7 @@ pub type PFN_vkDestroySamplerYcbcrConversion = unsafe extern "system" fn( ycbcr_conversion: SamplerYcbcrConversion, p_allocator: *const AllocationCallbacks<'_>, ); -pub const KHR_BIND_MEMORY2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_bind_memory2\0") }; +pub const KHR_BIND_MEMORY2_NAME: &CStr = c"KHR_bind_memory2"; pub const KHR_BIND_MEMORY2_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkBindBufferMemory2 = unsafe extern "system" fn( @@ -5599,8 +5469,7 @@ pub type PFN_vkBindImageMemory2 = unsafe extern "system" fn( bind_info_count: u32, p_bind_infos: *const BindImageMemoryInfo<'_>, ) -> Result; -pub const EXT_IMAGE_DRM_FORMAT_MODIFIER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_image_drm_format_modifier\0") }; +pub const EXT_IMAGE_DRM_FORMAT_MODIFIER_NAME: &CStr = c"EXT_image_drm_format_modifier"; pub const EXT_IMAGE_DRM_FORMAT_MODIFIER_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetImageDrmFormatModifierPropertiesEXT = unsafe extern "system" fn( @@ -5608,8 +5477,7 @@ pub type PFN_vkGetImageDrmFormatModifierPropertiesEXT = unsafe extern "system" f image: Image, p_properties: *mut ImageDrmFormatModifierPropertiesEXT<'_>, ) -> Result; -pub const EXT_VALIDATION_CACHE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_validation_cache\0") }; +pub const EXT_VALIDATION_CACHE_NAME: &CStr = c"EXT_validation_cache"; pub const EXT_VALIDATION_CACHE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateValidationCacheEXT = unsafe extern "system" fn( @@ -5638,17 +5506,13 @@ pub type PFN_vkGetValidationCacheDataEXT = unsafe extern "system" fn( p_data_size: *mut usize, p_data: *mut c_void, ) -> Result; -pub const EXT_DESCRIPTOR_INDEXING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_descriptor_indexing\0") }; +pub const EXT_DESCRIPTOR_INDEXING_NAME: &CStr = c"EXT_descriptor_indexing"; pub const EXT_DESCRIPTOR_INDEXING_SPEC_VERSION: u32 = 2u32; -pub const EXT_SHADER_VIEWPORT_INDEX_LAYER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_viewport_index_layer\0") }; +pub const EXT_SHADER_VIEWPORT_INDEX_LAYER_NAME: &CStr = c"EXT_shader_viewport_index_layer"; pub const EXT_SHADER_VIEWPORT_INDEX_LAYER_SPEC_VERSION: u32 = 1u32; -pub const KHR_PORTABILITY_SUBSET_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_portability_subset\0") }; +pub const KHR_PORTABILITY_SUBSET_NAME: &CStr = c"KHR_portability_subset"; pub const KHR_PORTABILITY_SUBSET_SPEC_VERSION: u32 = 1u32; -pub const NV_SHADING_RATE_IMAGE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_shading_rate_image\0") }; +pub const NV_SHADING_RATE_IMAGE_NAME: &CStr = c"NV_shading_rate_image"; pub const NV_SHADING_RATE_IMAGE_SPEC_VERSION: u32 = 3u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdBindShadingRateImageNV = unsafe extern "system" fn( @@ -5670,8 +5534,7 @@ pub type PFN_vkCmdSetCoarseSampleOrderNV = unsafe extern "system" fn( custom_sample_order_count: u32, p_custom_sample_orders: *const CoarseSampleOrderCustomNV<'_>, ); -pub const NV_RAY_TRACING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_ray_tracing\0") }; +pub const NV_RAY_TRACING_NAME: &CStr = c"NV_ray_tracing"; pub const NV_RAY_TRACING_SPEC_VERSION: u32 = 3u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateAccelerationStructureNV = unsafe extern "system" fn( @@ -5763,11 +5626,9 @@ pub type PFN_vkCmdWriteAccelerationStructuresPropertiesNV = unsafe extern "syste #[allow(non_camel_case_types)] pub type PFN_vkCompileDeferredNV = unsafe extern "system" fn(device: crate::vk::Device, pipeline: Pipeline, shader: u32) -> Result; -pub const NV_REPRESENTATIVE_FRAGMENT_TEST_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_representative_fragment_test\0") }; +pub const NV_REPRESENTATIVE_FRAGMENT_TEST_NAME: &CStr = c"NV_representative_fragment_test"; pub const NV_REPRESENTATIVE_FRAGMENT_TEST_SPEC_VERSION: u32 = 2u32; -pub const KHR_MAINTENANCE3_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_maintenance3\0") }; +pub const KHR_MAINTENANCE3_NAME: &CStr = c"KHR_maintenance3"; pub const KHR_MAINTENANCE3_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetDescriptorSetLayoutSupport = unsafe extern "system" fn( @@ -5775,26 +5636,19 @@ pub type PFN_vkGetDescriptorSetLayoutSupport = unsafe extern "system" fn( p_create_info: *const DescriptorSetLayoutCreateInfo<'_>, p_support: *mut DescriptorSetLayoutSupport<'_>, ); -pub const KHR_DRAW_INDIRECT_COUNT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_draw_indirect_count\0") }; +pub const KHR_DRAW_INDIRECT_COUNT_NAME: &CStr = c"KHR_draw_indirect_count"; pub const KHR_DRAW_INDIRECT_COUNT_SPEC_VERSION: u32 = 1u32; -pub const EXT_FILTER_CUBIC_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_filter_cubic\0") }; +pub const EXT_FILTER_CUBIC_NAME: &CStr = c"EXT_filter_cubic"; pub const EXT_FILTER_CUBIC_SPEC_VERSION: u32 = 3u32; -pub const QCOM_RENDER_PASS_SHADER_RESOLVE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_render_pass_shader_resolve\0") }; +pub const QCOM_RENDER_PASS_SHADER_RESOLVE_NAME: &CStr = c"QCOM_render_pass_shader_resolve"; pub const QCOM_RENDER_PASS_SHADER_RESOLVE_SPEC_VERSION: u32 = 4u32; -pub const EXT_GLOBAL_PRIORITY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_global_priority\0") }; +pub const EXT_GLOBAL_PRIORITY_NAME: &CStr = c"EXT_global_priority"; pub const EXT_GLOBAL_PRIORITY_SPEC_VERSION: u32 = 2u32; -pub const KHR_SHADER_SUBGROUP_EXTENDED_TYPES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_subgroup_extended_types\0") }; +pub const KHR_SHADER_SUBGROUP_EXTENDED_TYPES_NAME: &CStr = c"KHR_shader_subgroup_extended_types"; pub const KHR_SHADER_SUBGROUP_EXTENDED_TYPES_SPEC_VERSION: u32 = 1u32; -pub const KHR_8BIT_STORAGE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_8bit_storage\0") }; +pub const KHR_8BIT_STORAGE_NAME: &CStr = c"KHR_8bit_storage"; pub const KHR_8BIT_STORAGE_SPEC_VERSION: u32 = 1u32; -pub const EXT_EXTERNAL_MEMORY_HOST_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_external_memory_host\0") }; +pub const EXT_EXTERNAL_MEMORY_HOST_NAME: &CStr = c"EXT_external_memory_host"; pub const EXT_EXTERNAL_MEMORY_HOST_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetMemoryHostPointerPropertiesEXT = unsafe extern "system" fn( @@ -5803,8 +5657,7 @@ pub type PFN_vkGetMemoryHostPointerPropertiesEXT = unsafe extern "system" fn( p_host_pointer: *const c_void, p_memory_host_pointer_properties: *mut MemoryHostPointerPropertiesEXT<'_>, ) -> Result; -pub const AMD_BUFFER_MARKER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_buffer_marker\0") }; +pub const AMD_BUFFER_MARKER_NAME: &CStr = c"AMD_buffer_marker"; pub const AMD_BUFFER_MARKER_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdWriteBufferMarkerAMD = unsafe extern "system" fn( @@ -5814,17 +5667,13 @@ pub type PFN_vkCmdWriteBufferMarkerAMD = unsafe extern "system" fn( dst_offset: DeviceSize, marker: u32, ); -pub const KHR_SHADER_ATOMIC_INT64_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_atomic_int64\0") }; +pub const KHR_SHADER_ATOMIC_INT64_NAME: &CStr = c"KHR_shader_atomic_int64"; pub const KHR_SHADER_ATOMIC_INT64_SPEC_VERSION: u32 = 1u32; -pub const KHR_SHADER_CLOCK_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_clock\0") }; +pub const KHR_SHADER_CLOCK_NAME: &CStr = c"KHR_shader_clock"; pub const KHR_SHADER_CLOCK_SPEC_VERSION: u32 = 1u32; -pub const AMD_PIPELINE_COMPILER_CONTROL_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_pipeline_compiler_control\0") }; +pub const AMD_PIPELINE_COMPILER_CONTROL_NAME: &CStr = c"AMD_pipeline_compiler_control"; pub const AMD_PIPELINE_COMPILER_CONTROL_SPEC_VERSION: u32 = 1u32; -pub const EXT_CALIBRATED_TIMESTAMPS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_calibrated_timestamps\0") }; +pub const EXT_CALIBRATED_TIMESTAMPS_NAME: &CStr = c"EXT_calibrated_timestamps"; pub const EXT_CALIBRATED_TIMESTAMPS_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsKHR = unsafe extern "system" fn( @@ -5840,47 +5689,33 @@ pub type PFN_vkGetCalibratedTimestampsKHR = unsafe extern "system" fn( p_timestamps: *mut u64, p_max_deviation: *mut u64, ) -> Result; -pub const AMD_SHADER_CORE_PROPERTIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_shader_core_properties\0") }; +pub const AMD_SHADER_CORE_PROPERTIES_NAME: &CStr = c"AMD_shader_core_properties"; pub const AMD_SHADER_CORE_PROPERTIES_SPEC_VERSION: u32 = 2u32; -pub const KHR_VIDEO_DECODE_H265_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_decode_h265\0") }; +pub const KHR_VIDEO_DECODE_H265_NAME: &CStr = c"KHR_video_decode_h265"; pub const KHR_VIDEO_DECODE_H265_SPEC_VERSION: u32 = 8u32; -pub const KHR_GLOBAL_PRIORITY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_global_priority\0") }; +pub const KHR_GLOBAL_PRIORITY_NAME: &CStr = c"KHR_global_priority"; pub const KHR_GLOBAL_PRIORITY_SPEC_VERSION: u32 = 1u32; -pub const AMD_MEMORY_OVERALLOCATION_BEHAVIOR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_memory_overallocation_behavior\0") }; +pub const AMD_MEMORY_OVERALLOCATION_BEHAVIOR_NAME: &CStr = c"AMD_memory_overallocation_behavior"; pub const AMD_MEMORY_OVERALLOCATION_BEHAVIOR_SPEC_VERSION: u32 = 1u32; -pub const EXT_VERTEX_ATTRIBUTE_DIVISOR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_vertex_attribute_divisor\0") }; +pub const EXT_VERTEX_ATTRIBUTE_DIVISOR_NAME: &CStr = c"EXT_vertex_attribute_divisor"; pub const EXT_VERTEX_ATTRIBUTE_DIVISOR_SPEC_VERSION: u32 = 3u32; -pub const GGP_FRAME_TOKEN_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_GGP_frame_token\0") }; +pub const GGP_FRAME_TOKEN_NAME: &CStr = c"GGP_frame_token"; pub const GGP_FRAME_TOKEN_SPEC_VERSION: u32 = 1u32; -pub const EXT_PIPELINE_CREATION_FEEDBACK_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_pipeline_creation_feedback\0") }; +pub const EXT_PIPELINE_CREATION_FEEDBACK_NAME: &CStr = c"EXT_pipeline_creation_feedback"; pub const EXT_PIPELINE_CREATION_FEEDBACK_SPEC_VERSION: u32 = 1u32; -pub const KHR_DRIVER_PROPERTIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_driver_properties\0") }; +pub const KHR_DRIVER_PROPERTIES_NAME: &CStr = c"KHR_driver_properties"; pub const KHR_DRIVER_PROPERTIES_SPEC_VERSION: u32 = 1u32; -pub const KHR_SHADER_FLOAT_CONTROLS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_float_controls\0") }; +pub const KHR_SHADER_FLOAT_CONTROLS_NAME: &CStr = c"KHR_shader_float_controls"; pub const KHR_SHADER_FLOAT_CONTROLS_SPEC_VERSION: u32 = 4u32; -pub const NV_SHADER_SUBGROUP_PARTITIONED_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_shader_subgroup_partitioned\0") }; +pub const NV_SHADER_SUBGROUP_PARTITIONED_NAME: &CStr = c"NV_shader_subgroup_partitioned"; pub const NV_SHADER_SUBGROUP_PARTITIONED_SPEC_VERSION: u32 = 1u32; -pub const KHR_DEPTH_STENCIL_RESOLVE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_depth_stencil_resolve\0") }; +pub const KHR_DEPTH_STENCIL_RESOLVE_NAME: &CStr = c"KHR_depth_stencil_resolve"; pub const KHR_DEPTH_STENCIL_RESOLVE_SPEC_VERSION: u32 = 1u32; -pub const KHR_SWAPCHAIN_MUTABLE_FORMAT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_swapchain_mutable_format\0") }; +pub const KHR_SWAPCHAIN_MUTABLE_FORMAT_NAME: &CStr = c"KHR_swapchain_mutable_format"; pub const KHR_SWAPCHAIN_MUTABLE_FORMAT_SPEC_VERSION: u32 = 1u32; -pub const NV_COMPUTE_SHADER_DERIVATIVES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_compute_shader_derivatives\0") }; +pub const NV_COMPUTE_SHADER_DERIVATIVES_NAME: &CStr = c"NV_compute_shader_derivatives"; pub const NV_COMPUTE_SHADER_DERIVATIVES_SPEC_VERSION: u32 = 1u32; -pub const NV_MESH_SHADER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_mesh_shader\0") }; +pub const NV_MESH_SHADER_NAME: &CStr = c"NV_mesh_shader"; pub const NV_MESH_SHADER_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdDrawMeshTasksNV = @@ -5903,14 +5738,11 @@ pub type PFN_vkCmdDrawMeshTasksIndirectCountNV = unsafe extern "system" fn( max_draw_count: u32, stride: u32, ); -pub const NV_FRAGMENT_SHADER_BARYCENTRIC_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_fragment_shader_barycentric\0") }; +pub const NV_FRAGMENT_SHADER_BARYCENTRIC_NAME: &CStr = c"NV_fragment_shader_barycentric"; pub const NV_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION: u32 = 1u32; -pub const NV_SHADER_IMAGE_FOOTPRINT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_shader_image_footprint\0") }; +pub const NV_SHADER_IMAGE_FOOTPRINT_NAME: &CStr = c"NV_shader_image_footprint"; pub const NV_SHADER_IMAGE_FOOTPRINT_SPEC_VERSION: u32 = 2u32; -pub const NV_SCISSOR_EXCLUSIVE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_scissor_exclusive\0") }; +pub const NV_SCISSOR_EXCLUSIVE_NAME: &CStr = c"NV_scissor_exclusive"; pub const NV_SCISSOR_EXCLUSIVE_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetExclusiveScissorEnableNV = unsafe extern "system" fn( @@ -5926,8 +5758,7 @@ pub type PFN_vkCmdSetExclusiveScissorNV = unsafe extern "system" fn( exclusive_scissor_count: u32, p_exclusive_scissors: *const Rect2D, ); -pub const NV_DEVICE_DIAGNOSTIC_CHECKPOINTS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_device_diagnostic_checkpoints\0") }; +pub const NV_DEVICE_DIAGNOSTIC_CHECKPOINTS_NAME: &CStr = c"NV_device_diagnostic_checkpoints"; pub const NV_DEVICE_DIAGNOSTIC_CHECKPOINTS_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetCheckpointNV = @@ -5938,8 +5769,7 @@ pub type PFN_vkGetQueueCheckpointDataNV = unsafe extern "system" fn( p_checkpoint_data_count: *mut u32, p_checkpoint_data: *mut CheckpointDataNV<'_>, ); -pub const KHR_TIMELINE_SEMAPHORE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_timeline_semaphore\0") }; +pub const KHR_TIMELINE_SEMAPHORE_NAME: &CStr = c"KHR_timeline_semaphore"; pub const KHR_TIMELINE_SEMAPHORE_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetSemaphoreCounterValue = unsafe extern "system" fn( @@ -5958,11 +5788,9 @@ pub type PFN_vkSignalSemaphore = unsafe extern "system" fn( device: crate::vk::Device, p_signal_info: *const SemaphoreSignalInfo<'_>, ) -> Result; -pub const INTEL_SHADER_INTEGER_FUNCTIONS2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_INTEL_shader_integer_functions2\0") }; +pub const INTEL_SHADER_INTEGER_FUNCTIONS2_NAME: &CStr = c"INTEL_shader_integer_functions2"; pub const INTEL_SHADER_INTEGER_FUNCTIONS2_SPEC_VERSION: u32 = 1u32; -pub const INTEL_PERFORMANCE_QUERY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_INTEL_performance_query\0") }; +pub const INTEL_PERFORMANCE_QUERY_NAME: &CStr = c"INTEL_performance_query"; pub const INTEL_PERFORMANCE_QUERY_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkInitializePerformanceApiINTEL = unsafe extern "system" fn( @@ -6007,14 +5835,11 @@ pub type PFN_vkGetPerformanceParameterINTEL = unsafe extern "system" fn( parameter: PerformanceParameterTypeINTEL, p_value: *mut PerformanceValueINTEL, ) -> Result; -pub const KHR_VULKAN_MEMORY_MODEL_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_vulkan_memory_model\0") }; +pub const KHR_VULKAN_MEMORY_MODEL_NAME: &CStr = c"KHR_vulkan_memory_model"; pub const KHR_VULKAN_MEMORY_MODEL_SPEC_VERSION: u32 = 3u32; -pub const EXT_PCI_BUS_INFO_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_pci_bus_info\0") }; +pub const EXT_PCI_BUS_INFO_NAME: &CStr = c"EXT_pci_bus_info"; pub const EXT_PCI_BUS_INFO_SPEC_VERSION: u32 = 2u32; -pub const AMD_DISPLAY_NATIVE_HDR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_display_native_hdr\0") }; +pub const AMD_DISPLAY_NATIVE_HDR_NAME: &CStr = c"AMD_display_native_hdr"; pub const AMD_DISPLAY_NATIVE_HDR_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkSetLocalDimmingAMD = unsafe extern "system" fn( @@ -6022,8 +5847,7 @@ pub type PFN_vkSetLocalDimmingAMD = unsafe extern "system" fn( swap_chain: SwapchainKHR, local_dimming_enable: Bool32, ); -pub const FUCHSIA_IMAGEPIPE_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_FUCHSIA_imagepipe_surface\0") }; +pub const FUCHSIA_IMAGEPIPE_SURFACE_NAME: &CStr = c"FUCHSIA_imagepipe_surface"; pub const FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateImagePipeSurfaceFUCHSIA = unsafe extern "system" fn( @@ -6032,11 +5856,9 @@ pub type PFN_vkCreateImagePipeSurfaceFUCHSIA = unsafe extern "system" fn( p_allocator: *const AllocationCallbacks<'_>, p_surface: *mut SurfaceKHR, ) -> Result; -pub const KHR_SHADER_TERMINATE_INVOCATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_terminate_invocation\0") }; +pub const KHR_SHADER_TERMINATE_INVOCATION_NAME: &CStr = c"KHR_shader_terminate_invocation"; pub const KHR_SHADER_TERMINATE_INVOCATION_SPEC_VERSION: u32 = 1u32; -pub const EXT_METAL_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_metal_surface\0") }; +pub const EXT_METAL_SURFACE_NAME: &CStr = c"EXT_metal_surface"; pub const EXT_METAL_SURFACE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateMetalSurfaceEXT = unsafe extern "system" fn( @@ -6045,23 +5867,17 @@ pub type PFN_vkCreateMetalSurfaceEXT = unsafe extern "system" fn( p_allocator: *const AllocationCallbacks<'_>, p_surface: *mut SurfaceKHR, ) -> Result; -pub const EXT_FRAGMENT_DENSITY_MAP_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_fragment_density_map\0") }; +pub const EXT_FRAGMENT_DENSITY_MAP_NAME: &CStr = c"EXT_fragment_density_map"; pub const EXT_FRAGMENT_DENSITY_MAP_SPEC_VERSION: u32 = 2u32; -pub const EXT_SCALAR_BLOCK_LAYOUT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_scalar_block_layout\0") }; +pub const EXT_SCALAR_BLOCK_LAYOUT_NAME: &CStr = c"EXT_scalar_block_layout"; pub const EXT_SCALAR_BLOCK_LAYOUT_SPEC_VERSION: u32 = 1u32; -pub const GOOGLE_HLSL_FUNCTIONALITY1_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_GOOGLE_hlsl_functionality1\0") }; +pub const GOOGLE_HLSL_FUNCTIONALITY1_NAME: &CStr = c"GOOGLE_hlsl_functionality1"; pub const GOOGLE_HLSL_FUNCTIONALITY1_SPEC_VERSION: u32 = 1u32; -pub const GOOGLE_DECORATE_STRING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_GOOGLE_decorate_string\0") }; +pub const GOOGLE_DECORATE_STRING_NAME: &CStr = c"GOOGLE_decorate_string"; pub const GOOGLE_DECORATE_STRING_SPEC_VERSION: u32 = 1u32; -pub const EXT_SUBGROUP_SIZE_CONTROL_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_subgroup_size_control\0") }; +pub const EXT_SUBGROUP_SIZE_CONTROL_NAME: &CStr = c"EXT_subgroup_size_control"; pub const EXT_SUBGROUP_SIZE_CONTROL_SPEC_VERSION: u32 = 2u32; -pub const KHR_FRAGMENT_SHADING_RATE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_fragment_shading_rate\0") }; +pub const KHR_FRAGMENT_SHADING_RATE_NAME: &CStr = c"KHR_fragment_shading_rate"; pub const KHR_FRAGMENT_SHADING_RATE_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceFragmentShadingRatesKHR = unsafe extern "system" fn( @@ -6075,14 +5891,11 @@ pub type PFN_vkCmdSetFragmentShadingRateKHR = unsafe extern "system" fn( p_fragment_size: *const Extent2D, combiner_ops: *const [FragmentShadingRateCombinerOpKHR; 2usize], ); -pub const AMD_SHADER_CORE_PROPERTIES2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_shader_core_properties2\0") }; +pub const AMD_SHADER_CORE_PROPERTIES2_NAME: &CStr = c"AMD_shader_core_properties2"; pub const AMD_SHADER_CORE_PROPERTIES2_SPEC_VERSION: u32 = 1u32; -pub const AMD_DEVICE_COHERENT_MEMORY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_AMD_device_coherent_memory\0") }; +pub const AMD_DEVICE_COHERENT_MEMORY_NAME: &CStr = c"AMD_device_coherent_memory"; pub const AMD_DEVICE_COHERENT_MEMORY_SPEC_VERSION: u32 = 1u32; -pub const KHR_DYNAMIC_RENDERING_LOCAL_READ_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_dynamic_rendering_local_read\0") }; +pub const KHR_DYNAMIC_RENDERING_LOCAL_READ_NAME: &CStr = c"KHR_dynamic_rendering_local_read"; pub const KHR_DYNAMIC_RENDERING_LOCAL_READ_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetRenderingAttachmentLocationsKHR = unsafe extern "system" fn( @@ -6094,40 +5907,31 @@ pub type PFN_vkCmdSetRenderingInputAttachmentIndicesKHR = unsafe extern "system" command_buffer: CommandBuffer, p_location_info: *const RenderingInputAttachmentIndexInfoKHR<'_>, ); -pub const EXT_SHADER_IMAGE_ATOMIC_INT64_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_image_atomic_int64\0") }; +pub const EXT_SHADER_IMAGE_ATOMIC_INT64_NAME: &CStr = c"EXT_shader_image_atomic_int64"; pub const EXT_SHADER_IMAGE_ATOMIC_INT64_SPEC_VERSION: u32 = 1u32; -pub const KHR_SHADER_QUAD_CONTROL_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_quad_control\0") }; +pub const KHR_SHADER_QUAD_CONTROL_NAME: &CStr = c"KHR_shader_quad_control"; pub const KHR_SHADER_QUAD_CONTROL_SPEC_VERSION: u32 = 1u32; -pub const KHR_SPIRV_1_4_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_spirv_1_4\0") }; +pub const KHR_SPIRV_1_4_NAME: &CStr = c"KHR_spirv_1_4"; pub const KHR_SPIRV_1_4_SPEC_VERSION: u32 = 1u32; -pub const EXT_MEMORY_BUDGET_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_memory_budget\0") }; +pub const EXT_MEMORY_BUDGET_NAME: &CStr = c"EXT_memory_budget"; pub const EXT_MEMORY_BUDGET_SPEC_VERSION: u32 = 1u32; -pub const EXT_MEMORY_PRIORITY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_memory_priority\0") }; +pub const EXT_MEMORY_PRIORITY_NAME: &CStr = c"EXT_memory_priority"; pub const EXT_MEMORY_PRIORITY_SPEC_VERSION: u32 = 1u32; -pub const KHR_SURFACE_PROTECTED_CAPABILITIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_surface_protected_capabilities\0") }; +pub const KHR_SURFACE_PROTECTED_CAPABILITIES_NAME: &CStr = c"KHR_surface_protected_capabilities"; pub const KHR_SURFACE_PROTECTED_CAPABILITIES_SPEC_VERSION: u32 = 1u32; pub const NV_DEDICATED_ALLOCATION_IMAGE_ALIASING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_dedicated_allocation_image_aliasing\0") }; + c"NV_dedicated_allocation_image_aliasing"; pub const NV_DEDICATED_ALLOCATION_IMAGE_ALIASING_SPEC_VERSION: u32 = 1u32; -pub const KHR_SEPARATE_DEPTH_STENCIL_LAYOUTS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_separate_depth_stencil_layouts\0") }; +pub const KHR_SEPARATE_DEPTH_STENCIL_LAYOUTS_NAME: &CStr = c"KHR_separate_depth_stencil_layouts"; pub const KHR_SEPARATE_DEPTH_STENCIL_LAYOUTS_SPEC_VERSION: u32 = 1u32; -pub const EXT_BUFFER_DEVICE_ADDRESS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_buffer_device_address\0") }; +pub const EXT_BUFFER_DEVICE_ADDRESS_NAME: &CStr = c"EXT_buffer_device_address"; pub const EXT_BUFFER_DEVICE_ADDRESS_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetBufferDeviceAddress = unsafe extern "system" fn( device: crate::vk::Device, p_info: *const BufferDeviceAddressInfo<'_>, ) -> DeviceAddress; -pub const EXT_TOOLING_INFO_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_tooling_info\0") }; +pub const EXT_TOOLING_INFO_NAME: &CStr = c"EXT_tooling_info"; pub const EXT_TOOLING_INFO_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceToolProperties = unsafe extern "system" fn( @@ -6135,14 +5939,11 @@ pub type PFN_vkGetPhysicalDeviceToolProperties = unsafe extern "system" fn( p_tool_count: *mut u32, p_tool_properties: *mut PhysicalDeviceToolProperties<'_>, ) -> Result; -pub const EXT_SEPARATE_STENCIL_USAGE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_separate_stencil_usage\0") }; +pub const EXT_SEPARATE_STENCIL_USAGE_NAME: &CStr = c"EXT_separate_stencil_usage"; pub const EXT_SEPARATE_STENCIL_USAGE_SPEC_VERSION: u32 = 1u32; -pub const EXT_VALIDATION_FEATURES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_validation_features\0") }; +pub const EXT_VALIDATION_FEATURES_NAME: &CStr = c"EXT_validation_features"; pub const EXT_VALIDATION_FEATURES_SPEC_VERSION: u32 = 6u32; -pub const KHR_PRESENT_WAIT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_present_wait\0") }; +pub const KHR_PRESENT_WAIT_NAME: &CStr = c"KHR_present_wait"; pub const KHR_PRESENT_WAIT_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkWaitForPresentKHR = unsafe extern "system" fn( @@ -6151,8 +5952,7 @@ pub type PFN_vkWaitForPresentKHR = unsafe extern "system" fn( present_id: u64, timeout: u64, ) -> Result; -pub const NV_COOPERATIVE_MATRIX_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_cooperative_matrix\0") }; +pub const NV_COOPERATIVE_MATRIX_NAME: &CStr = c"NV_cooperative_matrix"; pub const NV_COOPERATIVE_MATRIX_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV = unsafe extern "system" fn( @@ -6161,8 +5961,7 @@ pub type PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV = unsafe extern "s p_properties: *mut CooperativeMatrixPropertiesNV<'_>, ) -> Result; -pub const NV_COVERAGE_REDUCTION_MODE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_coverage_reduction_mode\0") }; +pub const NV_COVERAGE_REDUCTION_MODE_NAME: &CStr = c"NV_coverage_reduction_mode"; pub const NV_COVERAGE_REDUCTION_MODE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV = @@ -6171,20 +5970,15 @@ pub type PFN_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV = p_combination_count: *mut u32, p_combinations: *mut FramebufferMixedSamplesCombinationNV<'_>, ) -> Result; -pub const EXT_FRAGMENT_SHADER_INTERLOCK_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_fragment_shader_interlock\0") }; +pub const EXT_FRAGMENT_SHADER_INTERLOCK_NAME: &CStr = c"EXT_fragment_shader_interlock"; pub const EXT_FRAGMENT_SHADER_INTERLOCK_SPEC_VERSION: u32 = 1u32; -pub const EXT_YCBCR_IMAGE_ARRAYS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_ycbcr_image_arrays\0") }; +pub const EXT_YCBCR_IMAGE_ARRAYS_NAME: &CStr = c"EXT_ycbcr_image_arrays"; pub const EXT_YCBCR_IMAGE_ARRAYS_SPEC_VERSION: u32 = 1u32; -pub const KHR_UNIFORM_BUFFER_STANDARD_LAYOUT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_uniform_buffer_standard_layout\0") }; +pub const KHR_UNIFORM_BUFFER_STANDARD_LAYOUT_NAME: &CStr = c"KHR_uniform_buffer_standard_layout"; pub const KHR_UNIFORM_BUFFER_STANDARD_LAYOUT_SPEC_VERSION: u32 = 1u32; -pub const EXT_PROVOKING_VERTEX_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_provoking_vertex\0") }; +pub const EXT_PROVOKING_VERTEX_NAME: &CStr = c"EXT_provoking_vertex"; pub const EXT_PROVOKING_VERTEX_SPEC_VERSION: u32 = 1u32; -pub const EXT_FULL_SCREEN_EXCLUSIVE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_full_screen_exclusive\0") }; +pub const EXT_FULL_SCREEN_EXCLUSIVE_NAME: &CStr = c"EXT_full_screen_exclusive"; pub const EXT_FULL_SCREEN_EXCLUSIVE_SPEC_VERSION: u32 = 4u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceSurfacePresentModes2EXT = unsafe extern "system" fn( @@ -6205,8 +5999,7 @@ pub type PFN_vkGetDeviceGroupSurfacePresentModes2EXT = unsafe extern "system" fn p_surface_info: *const PhysicalDeviceSurfaceInfo2KHR<'_>, p_modes: *mut DeviceGroupPresentModeFlagsKHR, ) -> Result; -pub const EXT_HEADLESS_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_headless_surface\0") }; +pub const EXT_HEADLESS_SURFACE_NAME: &CStr = c"EXT_headless_surface"; pub const EXT_HEADLESS_SURFACE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateHeadlessSurfaceEXT = unsafe extern "system" fn( @@ -6215,8 +6008,7 @@ pub type PFN_vkCreateHeadlessSurfaceEXT = unsafe extern "system" fn( p_allocator: *const AllocationCallbacks<'_>, p_surface: *mut SurfaceKHR, ) -> Result; -pub const KHR_BUFFER_DEVICE_ADDRESS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_buffer_device_address\0") }; +pub const KHR_BUFFER_DEVICE_ADDRESS_NAME: &CStr = c"KHR_buffer_device_address"; pub const KHR_BUFFER_DEVICE_ADDRESS_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetBufferOpaqueCaptureAddress = unsafe extern "system" fn( @@ -6228,8 +6020,7 @@ pub type PFN_vkGetDeviceMemoryOpaqueCaptureAddress = unsafe extern "system" fn( device: crate::vk::Device, p_info: *const DeviceMemoryOpaqueCaptureAddressInfo<'_>, ) -> u64; -pub const EXT_LINE_RASTERIZATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_line_rasterization\0") }; +pub const EXT_LINE_RASTERIZATION_NAME: &CStr = c"EXT_line_rasterization"; pub const EXT_LINE_RASTERIZATION_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetLineStippleKHR = unsafe extern "system" fn( @@ -6237,11 +6028,9 @@ pub type PFN_vkCmdSetLineStippleKHR = unsafe extern "system" fn( line_stipple_factor: u32, line_stipple_pattern: u16, ); -pub const EXT_SHADER_ATOMIC_FLOAT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_atomic_float\0") }; +pub const EXT_SHADER_ATOMIC_FLOAT_NAME: &CStr = c"EXT_shader_atomic_float"; pub const EXT_SHADER_ATOMIC_FLOAT_SPEC_VERSION: u32 = 1u32; -pub const EXT_HOST_QUERY_RESET_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_host_query_reset\0") }; +pub const EXT_HOST_QUERY_RESET_NAME: &CStr = c"EXT_host_query_reset"; pub const EXT_HOST_QUERY_RESET_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkResetQueryPool = unsafe extern "system" fn( @@ -6250,11 +6039,9 @@ pub type PFN_vkResetQueryPool = unsafe extern "system" fn( first_query: u32, query_count: u32, ); -pub const EXT_INDEX_TYPE_UINT8_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_index_type_uint8\0") }; +pub const EXT_INDEX_TYPE_UINT8_NAME: &CStr = c"EXT_index_type_uint8"; pub const EXT_INDEX_TYPE_UINT8_SPEC_VERSION: u32 = 1u32; -pub const EXT_EXTENDED_DYNAMIC_STATE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extended_dynamic_state\0") }; +pub const EXT_EXTENDED_DYNAMIC_STATE_NAME: &CStr = c"EXT_extended_dynamic_state"; pub const EXT_EXTENDED_DYNAMIC_STATE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetCullMode = @@ -6311,8 +6098,7 @@ pub type PFN_vkCmdSetStencilOp = unsafe extern "system" fn( depth_fail_op: StencilOp, compare_op: CompareOp, ); -pub const KHR_DEFERRED_HOST_OPERATIONS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_deferred_host_operations\0") }; +pub const KHR_DEFERRED_HOST_OPERATIONS_NAME: &CStr = c"KHR_deferred_host_operations"; pub const KHR_DEFERRED_HOST_OPERATIONS_SPEC_VERSION: u32 = 4u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateDeferredOperationKHR = unsafe extern "system" fn( @@ -6335,8 +6121,7 @@ pub type PFN_vkGetDeferredOperationResultKHR = #[allow(non_camel_case_types)] pub type PFN_vkDeferredOperationJoinKHR = unsafe extern "system" fn(device: crate::vk::Device, operation: DeferredOperationKHR) -> Result; -pub const KHR_PIPELINE_EXECUTABLE_PROPERTIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_pipeline_executable_properties\0") }; +pub const KHR_PIPELINE_EXECUTABLE_PROPERTIES_NAME: &CStr = c"KHR_pipeline_executable_properties"; pub const KHR_PIPELINE_EXECUTABLE_PROPERTIES_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPipelineExecutablePropertiesKHR = unsafe extern "system" fn( @@ -6360,8 +6145,7 @@ pub type PFN_vkGetPipelineExecutableInternalRepresentationsKHR = p_internal_representation_count: *mut u32, p_internal_representations: *mut PipelineExecutableInternalRepresentationKHR<'_>, ) -> Result; -pub const EXT_HOST_IMAGE_COPY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_host_image_copy\0") }; +pub const EXT_HOST_IMAGE_COPY_NAME: &CStr = c"EXT_host_image_copy"; pub const EXT_HOST_IMAGE_COPY_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCopyMemoryToImageEXT = unsafe extern "system" fn( @@ -6391,8 +6175,7 @@ pub type PFN_vkGetImageSubresourceLayout2KHR = unsafe extern "system" fn( p_subresource: *const ImageSubresource2KHR<'_>, p_layout: *mut SubresourceLayout2KHR<'_>, ); -pub const KHR_MAP_MEMORY2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_map_memory2\0") }; +pub const KHR_MAP_MEMORY2_NAME: &CStr = c"KHR_map_memory2"; pub const KHR_MAP_MEMORY2_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkMapMemory2KHR = unsafe extern "system" fn( @@ -6405,17 +6188,13 @@ pub type PFN_vkUnmapMemory2KHR = unsafe extern "system" fn( device: crate::vk::Device, p_memory_unmap_info: *const MemoryUnmapInfoKHR<'_>, ) -> Result; -pub const EXT_MAP_MEMORY_PLACED_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_map_memory_placed\0") }; +pub const EXT_MAP_MEMORY_PLACED_NAME: &CStr = c"EXT_map_memory_placed"; pub const EXT_MAP_MEMORY_PLACED_SPEC_VERSION: u32 = 1u32; -pub const EXT_SHADER_ATOMIC_FLOAT2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_atomic_float2\0") }; +pub const EXT_SHADER_ATOMIC_FLOAT2_NAME: &CStr = c"EXT_shader_atomic_float2"; pub const EXT_SHADER_ATOMIC_FLOAT2_SPEC_VERSION: u32 = 1u32; -pub const EXT_SURFACE_MAINTENANCE1_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_surface_maintenance1\0") }; +pub const EXT_SURFACE_MAINTENANCE1_NAME: &CStr = c"EXT_surface_maintenance1"; pub const EXT_SURFACE_MAINTENANCE1_SPEC_VERSION: u32 = 1u32; -pub const EXT_SWAPCHAIN_MAINTENANCE1_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_swapchain_maintenance1\0") }; +pub const EXT_SWAPCHAIN_MAINTENANCE1_NAME: &CStr = c"EXT_swapchain_maintenance1"; pub const EXT_SWAPCHAIN_MAINTENANCE1_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkReleaseSwapchainImagesEXT = unsafe extern "system" fn( @@ -6423,10 +6202,9 @@ pub type PFN_vkReleaseSwapchainImagesEXT = unsafe extern "system" fn( p_release_info: *const ReleaseSwapchainImagesInfoEXT<'_>, ) -> Result; pub const EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_demote_to_helper_invocation\0") }; + c"EXT_shader_demote_to_helper_invocation"; pub const EXT_SHADER_DEMOTE_TO_HELPER_INVOCATION_SPEC_VERSION: u32 = 1u32; -pub const NV_DEVICE_GENERATED_COMMANDS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_device_generated_commands\0") }; +pub const NV_DEVICE_GENERATED_COMMANDS_NAME: &CStr = c"NV_device_generated_commands"; pub const NV_DEVICE_GENERATED_COMMANDS_SPEC_VERSION: u32 = 3u32; #[allow(non_camel_case_types)] pub type PFN_vkGetGeneratedCommandsMemoryRequirementsNV = unsafe extern "system" fn( @@ -6465,31 +6243,24 @@ pub type PFN_vkDestroyIndirectCommandsLayoutNV = unsafe extern "system" fn( indirect_commands_layout: IndirectCommandsLayoutNV, p_allocator: *const AllocationCallbacks<'_>, ); -pub const NV_INHERITED_VIEWPORT_SCISSOR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_inherited_viewport_scissor\0") }; +pub const NV_INHERITED_VIEWPORT_SCISSOR_NAME: &CStr = c"NV_inherited_viewport_scissor"; pub const NV_INHERITED_VIEWPORT_SCISSOR_SPEC_VERSION: u32 = 1u32; -pub const KHR_SHADER_INTEGER_DOT_PRODUCT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_integer_dot_product\0") }; +pub const KHR_SHADER_INTEGER_DOT_PRODUCT_NAME: &CStr = c"KHR_shader_integer_dot_product"; pub const KHR_SHADER_INTEGER_DOT_PRODUCT_SPEC_VERSION: u32 = 1u32; -pub const EXT_TEXEL_BUFFER_ALIGNMENT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_texel_buffer_alignment\0") }; +pub const EXT_TEXEL_BUFFER_ALIGNMENT_NAME: &CStr = c"EXT_texel_buffer_alignment"; pub const EXT_TEXEL_BUFFER_ALIGNMENT_SPEC_VERSION: u32 = 1u32; -pub const QCOM_RENDER_PASS_TRANSFORM_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_render_pass_transform\0") }; +pub const QCOM_RENDER_PASS_TRANSFORM_NAME: &CStr = c"QCOM_render_pass_transform"; pub const QCOM_RENDER_PASS_TRANSFORM_SPEC_VERSION: u32 = 4u32; -pub const EXT_DEPTH_BIAS_CONTROL_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_depth_bias_control\0") }; +pub const EXT_DEPTH_BIAS_CONTROL_NAME: &CStr = c"EXT_depth_bias_control"; pub const EXT_DEPTH_BIAS_CONTROL_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetDepthBias2EXT = unsafe extern "system" fn( command_buffer: CommandBuffer, p_depth_bias_info: *const DepthBiasInfoEXT<'_>, ); -pub const EXT_DEVICE_MEMORY_REPORT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_device_memory_report\0") }; +pub const EXT_DEVICE_MEMORY_REPORT_NAME: &CStr = c"EXT_device_memory_report"; pub const EXT_DEVICE_MEMORY_REPORT_SPEC_VERSION: u32 = 2u32; -pub const EXT_ACQUIRE_DRM_DISPLAY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_acquire_drm_display\0") }; +pub const EXT_ACQUIRE_DRM_DISPLAY_NAME: &CStr = c"EXT_acquire_drm_display"; pub const EXT_ACQUIRE_DRM_DISPLAY_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkAcquireDrmDisplayEXT = unsafe extern "system" fn( @@ -6504,29 +6275,21 @@ pub type PFN_vkGetDrmDisplayEXT = unsafe extern "system" fn( connector_id: u32, display: *mut DisplayKHR, ) -> Result; -pub const EXT_ROBUSTNESS2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_robustness2\0") }; +pub const EXT_ROBUSTNESS2_NAME: &CStr = c"EXT_robustness2"; pub const EXT_ROBUSTNESS2_SPEC_VERSION: u32 = 1u32; -pub const EXT_CUSTOM_BORDER_COLOR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_custom_border_color\0") }; +pub const EXT_CUSTOM_BORDER_COLOR_NAME: &CStr = c"EXT_custom_border_color"; pub const EXT_CUSTOM_BORDER_COLOR_SPEC_VERSION: u32 = 12u32; -pub const GOOGLE_USER_TYPE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_GOOGLE_user_type\0") }; +pub const GOOGLE_USER_TYPE_NAME: &CStr = c"GOOGLE_user_type"; pub const GOOGLE_USER_TYPE_SPEC_VERSION: u32 = 1u32; -pub const KHR_PIPELINE_LIBRARY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_pipeline_library\0") }; +pub const KHR_PIPELINE_LIBRARY_NAME: &CStr = c"KHR_pipeline_library"; pub const KHR_PIPELINE_LIBRARY_SPEC_VERSION: u32 = 1u32; -pub const NV_PRESENT_BARRIER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_present_barrier\0") }; +pub const NV_PRESENT_BARRIER_NAME: &CStr = c"NV_present_barrier"; pub const NV_PRESENT_BARRIER_SPEC_VERSION: u32 = 1u32; -pub const KHR_SHADER_NON_SEMANTIC_INFO_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_non_semantic_info\0") }; +pub const KHR_SHADER_NON_SEMANTIC_INFO_NAME: &CStr = c"KHR_shader_non_semantic_info"; pub const KHR_SHADER_NON_SEMANTIC_INFO_SPEC_VERSION: u32 = 1u32; -pub const KHR_PRESENT_ID_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_present_id\0") }; +pub const KHR_PRESENT_ID_NAME: &CStr = c"KHR_present_id"; pub const KHR_PRESENT_ID_SPEC_VERSION: u32 = 1u32; -pub const EXT_PRIVATE_DATA_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_private_data\0") }; +pub const EXT_PRIVATE_DATA_NAME: &CStr = c"EXT_private_data"; pub const EXT_PRIVATE_DATA_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreatePrivateDataSlot = unsafe extern "system" fn( @@ -6557,11 +6320,9 @@ pub type PFN_vkGetPrivateData = unsafe extern "system" fn( private_data_slot: PrivateDataSlot, p_data: *mut u64, ); -pub const EXT_PIPELINE_CREATION_CACHE_CONTROL_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_pipeline_creation_cache_control\0") }; +pub const EXT_PIPELINE_CREATION_CACHE_CONTROL_NAME: &CStr = c"EXT_pipeline_creation_cache_control"; pub const EXT_PIPELINE_CREATION_CACHE_CONTROL_SPEC_VERSION: u32 = 3u32; -pub const KHR_VIDEO_ENCODE_QUEUE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_encode_queue\0") }; +pub const KHR_VIDEO_ENCODE_QUEUE_NAME: &CStr = c"KHR_video_encode_queue"; pub const KHR_VIDEO_ENCODE_QUEUE_SPEC_VERSION: u32 = 12u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR = @@ -6583,14 +6344,11 @@ pub type PFN_vkCmdEncodeVideoKHR = unsafe extern "system" fn( command_buffer: CommandBuffer, p_encode_info: *const VideoEncodeInfoKHR<'_>, ); -pub const NV_DEVICE_DIAGNOSTICS_CONFIG_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_device_diagnostics_config\0") }; +pub const NV_DEVICE_DIAGNOSTICS_CONFIG_NAME: &CStr = c"NV_device_diagnostics_config"; pub const NV_DEVICE_DIAGNOSTICS_CONFIG_SPEC_VERSION: u32 = 2u32; -pub const QCOM_RENDER_PASS_STORE_OPS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_render_pass_store_ops\0") }; +pub const QCOM_RENDER_PASS_STORE_OPS_NAME: &CStr = c"QCOM_render_pass_store_ops"; pub const QCOM_RENDER_PASS_STORE_OPS_SPEC_VERSION: u32 = 2u32; -pub const NV_CUDA_KERNEL_LAUNCH_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_cuda_kernel_launch\0") }; +pub const NV_CUDA_KERNEL_LAUNCH_NAME: &CStr = c"NV_cuda_kernel_launch"; pub const NV_CUDA_KERNEL_LAUNCH_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateCudaModuleNV = unsafe extern "system" fn( @@ -6630,19 +6388,16 @@ pub type PFN_vkCmdCudaLaunchKernelNV = unsafe extern "system" fn( command_buffer: CommandBuffer, p_launch_info: *const CudaLaunchInfoNV<'_>, ); -pub const NV_LOW_LATENCY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_low_latency\0") }; +pub const NV_LOW_LATENCY_NAME: &CStr = c"NV_low_latency"; pub const NV_LOW_LATENCY_SPEC_VERSION: u32 = 1u32; -pub const EXT_METAL_OBJECTS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_metal_objects\0") }; +pub const EXT_METAL_OBJECTS_NAME: &CStr = c"EXT_metal_objects"; pub const EXT_METAL_OBJECTS_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkExportMetalObjectsEXT = unsafe extern "system" fn( device: crate::vk::Device, p_metal_objects_info: *mut ExportMetalObjectsInfoEXT<'_>, ); -pub const KHR_SYNCHRONIZATION2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_synchronization2\0") }; +pub const KHR_SYNCHRONIZATION2_NAME: &CStr = c"KHR_synchronization2"; pub const KHR_SYNCHRONIZATION2_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetEvent2 = unsafe extern "system" fn( @@ -6696,8 +6451,7 @@ pub type PFN_vkGetQueueCheckpointData2NV = unsafe extern "system" fn( p_checkpoint_data_count: *mut u32, p_checkpoint_data: *mut CheckpointData2NV<'_>, ); -pub const EXT_DESCRIPTOR_BUFFER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_descriptor_buffer\0") }; +pub const EXT_DESCRIPTOR_BUFFER_NAME: &CStr = c"EXT_descriptor_buffer"; pub const EXT_DESCRIPTOR_BUFFER_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetDescriptorSetLayoutSizeEXT = unsafe extern "system" fn( @@ -6773,25 +6527,20 @@ pub type PFN_vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT = p_info: *const AccelerationStructureCaptureDescriptorDataInfoEXT<'_>, p_data: *mut c_void, ) -> Result; -pub const EXT_GRAPHICS_PIPELINE_LIBRARY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_graphics_pipeline_library\0") }; +pub const EXT_GRAPHICS_PIPELINE_LIBRARY_NAME: &CStr = c"EXT_graphics_pipeline_library"; pub const EXT_GRAPHICS_PIPELINE_LIBRARY_SPEC_VERSION: u32 = 1u32; -pub const AMD_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_NAME: &CStr = unsafe { - CStr::from_bytes_with_nul_unchecked(b"VK_AMD_shader_early_and_late_fragment_tests\0") -}; +pub const AMD_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_NAME: &CStr = + c"AMD_shader_early_and_late_fragment_tests"; pub const AMD_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_SPEC_VERSION: u32 = 1u32; -pub const KHR_FRAGMENT_SHADER_BARYCENTRIC_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_fragment_shader_barycentric\0") }; +pub const KHR_FRAGMENT_SHADER_BARYCENTRIC_NAME: &CStr = c"KHR_fragment_shader_barycentric"; pub const KHR_FRAGMENT_SHADER_BARYCENTRIC_SPEC_VERSION: u32 = 1u32; -pub const KHR_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_NAME: &CStr = unsafe { - CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_subgroup_uniform_control_flow\0") -}; +pub const KHR_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_NAME: &CStr = + c"KHR_shader_subgroup_uniform_control_flow"; pub const KHR_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_SPEC_VERSION: u32 = 1u32; pub const KHR_ZERO_INITIALIZE_WORKGROUP_MEMORY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_zero_initialize_workgroup_memory\0") }; + c"KHR_zero_initialize_workgroup_memory"; pub const KHR_ZERO_INITIALIZE_WORKGROUP_MEMORY_SPEC_VERSION: u32 = 1u32; -pub const NV_FRAGMENT_SHADING_RATE_ENUMS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_fragment_shading_rate_enums\0") }; +pub const NV_FRAGMENT_SHADING_RATE_ENUMS_NAME: &CStr = c"NV_fragment_shading_rate_enums"; pub const NV_FRAGMENT_SHADING_RATE_ENUMS_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetFragmentShadingRateEnumNV = unsafe extern "system" fn( @@ -6799,11 +6548,9 @@ pub type PFN_vkCmdSetFragmentShadingRateEnumNV = unsafe extern "system" fn( shading_rate: FragmentShadingRateNV, combiner_ops: *const [FragmentShadingRateCombinerOpKHR; 2usize], ); -pub const NV_RAY_TRACING_MOTION_BLUR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_ray_tracing_motion_blur\0") }; +pub const NV_RAY_TRACING_MOTION_BLUR_NAME: &CStr = c"NV_ray_tracing_motion_blur"; pub const NV_RAY_TRACING_MOTION_BLUR_SPEC_VERSION: u32 = 1u32; -pub const EXT_MESH_SHADER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_mesh_shader\0") }; +pub const EXT_MESH_SHADER_NAME: &CStr = c"EXT_mesh_shader"; pub const EXT_MESH_SHADER_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdDrawMeshTasksEXT = unsafe extern "system" fn( @@ -6830,23 +6577,18 @@ pub type PFN_vkCmdDrawMeshTasksIndirectCountEXT = unsafe extern "system" fn( max_draw_count: u32, stride: u32, ); -pub const EXT_YCBCR_2PLANE_444_FORMATS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_ycbcr_2plane_444_formats\0") }; +pub const EXT_YCBCR_2PLANE_444_FORMATS_NAME: &CStr = c"EXT_ycbcr_2plane_444_formats"; pub const EXT_YCBCR_2PLANE_444_FORMATS_SPEC_VERSION: u32 = 1u32; -pub const EXT_FRAGMENT_DENSITY_MAP2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_fragment_density_map2\0") }; +pub const EXT_FRAGMENT_DENSITY_MAP2_NAME: &CStr = c"EXT_fragment_density_map2"; pub const EXT_FRAGMENT_DENSITY_MAP2_SPEC_VERSION: u32 = 1u32; -pub const QCOM_ROTATED_COPY_COMMANDS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_rotated_copy_commands\0") }; +pub const QCOM_ROTATED_COPY_COMMANDS_NAME: &CStr = c"QCOM_rotated_copy_commands"; pub const QCOM_ROTATED_COPY_COMMANDS_SPEC_VERSION: u32 = 2u32; -pub const EXT_IMAGE_ROBUSTNESS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_image_robustness\0") }; +pub const EXT_IMAGE_ROBUSTNESS_NAME: &CStr = c"EXT_image_robustness"; pub const EXT_IMAGE_ROBUSTNESS_SPEC_VERSION: u32 = 1u32; pub const KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_workgroup_memory_explicit_layout\0") }; + c"KHR_workgroup_memory_explicit_layout"; pub const KHR_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_SPEC_VERSION: u32 = 1u32; -pub const KHR_COPY_COMMANDS2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_copy_commands2\0") }; +pub const KHR_COPY_COMMANDS2_NAME: &CStr = c"KHR_copy_commands2"; pub const KHR_COPY_COMMANDS2_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdCopyBuffer2 = unsafe extern "system" fn( @@ -6878,17 +6620,13 @@ pub type PFN_vkCmdResolveImage2 = unsafe extern "system" fn( command_buffer: CommandBuffer, p_resolve_image_info: *const ResolveImageInfo2<'_>, ); -pub const EXT_IMAGE_COMPRESSION_CONTROL_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_image_compression_control\0") }; +pub const EXT_IMAGE_COMPRESSION_CONTROL_NAME: &CStr = c"EXT_image_compression_control"; pub const EXT_IMAGE_COMPRESSION_CONTROL_SPEC_VERSION: u32 = 1u32; -pub const EXT_ATTACHMENT_FEEDBACK_LOOP_LAYOUT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_attachment_feedback_loop_layout\0") }; +pub const EXT_ATTACHMENT_FEEDBACK_LOOP_LAYOUT_NAME: &CStr = c"EXT_attachment_feedback_loop_layout"; pub const EXT_ATTACHMENT_FEEDBACK_LOOP_LAYOUT_SPEC_VERSION: u32 = 2u32; -pub const EXT_4444_FORMATS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_4444_formats\0") }; +pub const EXT_4444_FORMATS_NAME: &CStr = c"EXT_4444_formats"; pub const EXT_4444_FORMATS_SPEC_VERSION: u32 = 1u32; -pub const EXT_DEVICE_FAULT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_device_fault\0") }; +pub const EXT_DEVICE_FAULT_NAME: &CStr = c"EXT_device_fault"; pub const EXT_DEVICE_FAULT_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetDeviceFaultInfoEXT = unsafe extern "system" fn( @@ -6896,15 +6634,12 @@ pub type PFN_vkGetDeviceFaultInfoEXT = unsafe extern "system" fn( p_fault_counts: *mut DeviceFaultCountsEXT<'_>, p_fault_info: *mut DeviceFaultInfoEXT<'_>, ) -> Result; -pub const ARM_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_NAME: &CStr = unsafe { - CStr::from_bytes_with_nul_unchecked(b"VK_ARM_rasterization_order_attachment_access\0") -}; +pub const ARM_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_NAME: &CStr = + c"ARM_rasterization_order_attachment_access"; pub const ARM_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_SPEC_VERSION: u32 = 1u32; -pub const EXT_RGBA10X6_FORMATS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_rgba10x6_formats\0") }; +pub const EXT_RGBA10X6_FORMATS_NAME: &CStr = c"EXT_rgba10x6_formats"; pub const EXT_RGBA10X6_FORMATS_SPEC_VERSION: u32 = 1u32; -pub const NV_ACQUIRE_WINRT_DISPLAY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_acquire_winrt_display\0") }; +pub const NV_ACQUIRE_WINRT_DISPLAY_NAME: &CStr = c"NV_acquire_winrt_display"; pub const NV_ACQUIRE_WINRT_DISPLAY_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkAcquireWinrtDisplayNV = @@ -6915,8 +6650,7 @@ pub type PFN_vkGetWinrtDisplayNV = unsafe extern "system" fn( device_relative_id: u32, p_display: *mut DisplayKHR, ) -> Result; -pub const EXT_DIRECTFB_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_directfb_surface\0") }; +pub const EXT_DIRECTFB_SURFACE_NAME: &CStr = c"EXT_directfb_surface"; pub const EXT_DIRECTFB_SURFACE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateDirectFBSurfaceEXT = unsafe extern "system" fn( @@ -6932,11 +6666,9 @@ pub type PFN_vkGetPhysicalDeviceDirectFBPresentationSupportEXT = queue_family_index: u32, dfb: *mut IDirectFB, ) -> Bool32; -pub const VALVE_MUTABLE_DESCRIPTOR_TYPE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_VALVE_mutable_descriptor_type\0") }; +pub const VALVE_MUTABLE_DESCRIPTOR_TYPE_NAME: &CStr = c"VALVE_mutable_descriptor_type"; pub const VALVE_MUTABLE_DESCRIPTOR_TYPE_SPEC_VERSION: u32 = 1u32; -pub const EXT_VERTEX_INPUT_DYNAMIC_STATE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_vertex_input_dynamic_state\0") }; +pub const EXT_VERTEX_INPUT_DYNAMIC_STATE_NAME: &CStr = c"EXT_vertex_input_dynamic_state"; pub const EXT_VERTEX_INPUT_DYNAMIC_STATE_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetVertexInputEXT = unsafe extern "system" fn( @@ -6946,23 +6678,17 @@ pub type PFN_vkCmdSetVertexInputEXT = unsafe extern "system" fn( vertex_attribute_description_count: u32, p_vertex_attribute_descriptions: *const VertexInputAttributeDescription2EXT<'_>, ); -pub const EXT_PHYSICAL_DEVICE_DRM_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_physical_device_drm\0") }; +pub const EXT_PHYSICAL_DEVICE_DRM_NAME: &CStr = c"EXT_physical_device_drm"; pub const EXT_PHYSICAL_DEVICE_DRM_SPEC_VERSION: u32 = 1u32; -pub const EXT_DEVICE_ADDRESS_BINDING_REPORT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_device_address_binding_report\0") }; +pub const EXT_DEVICE_ADDRESS_BINDING_REPORT_NAME: &CStr = c"EXT_device_address_binding_report"; pub const EXT_DEVICE_ADDRESS_BINDING_REPORT_SPEC_VERSION: u32 = 1u32; -pub const EXT_DEPTH_CLIP_CONTROL_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_depth_clip_control\0") }; +pub const EXT_DEPTH_CLIP_CONTROL_NAME: &CStr = c"EXT_depth_clip_control"; pub const EXT_DEPTH_CLIP_CONTROL_SPEC_VERSION: u32 = 1u32; -pub const EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_primitive_topology_list_restart\0") }; +pub const EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_NAME: &CStr = c"EXT_primitive_topology_list_restart"; pub const EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_SPEC_VERSION: u32 = 1u32; -pub const KHR_FORMAT_FEATURE_FLAGS2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_format_feature_flags2\0") }; +pub const KHR_FORMAT_FEATURE_FLAGS2_NAME: &CStr = c"KHR_format_feature_flags2"; pub const KHR_FORMAT_FEATURE_FLAGS2_SPEC_VERSION: u32 = 2u32; -pub const FUCHSIA_EXTERNAL_MEMORY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_FUCHSIA_external_memory\0") }; +pub const FUCHSIA_EXTERNAL_MEMORY_NAME: &CStr = c"FUCHSIA_external_memory"; pub const FUCHSIA_EXTERNAL_MEMORY_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetMemoryZirconHandleFUCHSIA = unsafe extern "system" fn( @@ -6977,8 +6703,7 @@ pub type PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA = unsafe extern "system" f zircon_handle: zx_handle_t, p_memory_zircon_handle_properties: *mut MemoryZirconHandlePropertiesFUCHSIA<'_>, ) -> Result; -pub const FUCHSIA_EXTERNAL_SEMAPHORE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_FUCHSIA_external_semaphore\0") }; +pub const FUCHSIA_EXTERNAL_SEMAPHORE_NAME: &CStr = c"FUCHSIA_external_semaphore"; pub const FUCHSIA_EXTERNAL_SEMAPHORE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkImportSemaphoreZirconHandleFUCHSIA = unsafe extern "system" fn( @@ -6991,8 +6716,7 @@ pub type PFN_vkGetSemaphoreZirconHandleFUCHSIA = unsafe extern "system" fn( p_get_zircon_handle_info: *const SemaphoreGetZirconHandleInfoFUCHSIA<'_>, p_zircon_handle: *mut zx_handle_t, ) -> Result; -pub const FUCHSIA_BUFFER_COLLECTION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_FUCHSIA_buffer_collection\0") }; +pub const FUCHSIA_BUFFER_COLLECTION_NAME: &CStr = c"FUCHSIA_buffer_collection"; pub const FUCHSIA_BUFFER_COLLECTION_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateBufferCollectionFUCHSIA = unsafe extern "system" fn( @@ -7025,8 +6749,7 @@ pub type PFN_vkGetBufferCollectionPropertiesFUCHSIA = unsafe extern "system" fn( collection: BufferCollectionFUCHSIA, p_properties: *mut BufferCollectionPropertiesFUCHSIA<'_>, ) -> Result; -pub const HUAWEI_SUBPASS_SHADING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_HUAWEI_subpass_shading\0") }; +pub const HUAWEI_SUBPASS_SHADING_NAME: &CStr = c"HUAWEI_subpass_shading"; pub const HUAWEI_SUBPASS_SHADING_SPEC_VERSION: u32 = 3u32; #[allow(non_camel_case_types)] pub type PFN_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI = unsafe extern "system" fn( @@ -7036,8 +6759,7 @@ pub type PFN_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI = unsafe extern "sy ) -> Result; #[allow(non_camel_case_types)] pub type PFN_vkCmdSubpassShadingHUAWEI = unsafe extern "system" fn(command_buffer: CommandBuffer); -pub const HUAWEI_INVOCATION_MASK_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_HUAWEI_invocation_mask\0") }; +pub const HUAWEI_INVOCATION_MASK_NAME: &CStr = c"HUAWEI_invocation_mask"; pub const HUAWEI_INVOCATION_MASK_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdBindInvocationMaskHUAWEI = unsafe extern "system" fn( @@ -7045,8 +6767,7 @@ pub type PFN_vkCmdBindInvocationMaskHUAWEI = unsafe extern "system" fn( image_view: ImageView, image_layout: ImageLayout, ); -pub const NV_EXTERNAL_MEMORY_RDMA_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_external_memory_rdma\0") }; +pub const NV_EXTERNAL_MEMORY_RDMA_NAME: &CStr = c"NV_external_memory_rdma"; pub const NV_EXTERNAL_MEMORY_RDMA_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetMemoryRemoteAddressNV = unsafe extern "system" fn( @@ -7054,8 +6775,7 @@ pub type PFN_vkGetMemoryRemoteAddressNV = unsafe extern "system" fn( p_memory_get_remote_address_info: *const MemoryGetRemoteAddressInfoNV<'_>, p_address: *mut RemoteAddressNV, ) -> Result; -pub const EXT_PIPELINE_PROPERTIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_pipeline_properties\0") }; +pub const EXT_PIPELINE_PROPERTIES_NAME: &CStr = c"EXT_pipeline_properties"; pub const EXT_PIPELINE_PROPERTIES_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPipelinePropertiesEXT = unsafe extern "system" fn( @@ -7063,15 +6783,12 @@ pub type PFN_vkGetPipelinePropertiesEXT = unsafe extern "system" fn( p_pipeline_info: *const PipelineInfoEXT<'_>, p_pipeline_properties: *mut BaseOutStructure<'_>, ) -> Result; -pub const EXT_FRAME_BOUNDARY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_frame_boundary\0") }; +pub const EXT_FRAME_BOUNDARY_NAME: &CStr = c"EXT_frame_boundary"; pub const EXT_FRAME_BOUNDARY_SPEC_VERSION: u32 = 1u32; -pub const EXT_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_NAME: &CStr = unsafe { - CStr::from_bytes_with_nul_unchecked(b"VK_EXT_multisampled_render_to_single_sampled\0") -}; +pub const EXT_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_NAME: &CStr = + c"EXT_multisampled_render_to_single_sampled"; pub const EXT_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_SPEC_VERSION: u32 = 1u32; -pub const EXT_EXTENDED_DYNAMIC_STATE2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extended_dynamic_state2\0") }; +pub const EXT_EXTENDED_DYNAMIC_STATE2_NAME: &CStr = c"EXT_extended_dynamic_state2"; pub const EXT_EXTENDED_DYNAMIC_STATE2_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetPatchControlPointsEXT = @@ -7088,8 +6805,7 @@ pub type PFN_vkCmdSetLogicOpEXT = #[allow(non_camel_case_types)] pub type PFN_vkCmdSetPrimitiveRestartEnable = unsafe extern "system" fn(command_buffer: CommandBuffer, primitive_restart_enable: Bool32); -pub const QNX_SCREEN_SURFACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QNX_screen_surface\0") }; +pub const QNX_SCREEN_SURFACE_NAME: &CStr = c"QNX_screen_surface"; pub const QNX_SCREEN_SURFACE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateScreenSurfaceQNX = unsafe extern "system" fn( @@ -7104,8 +6820,7 @@ pub type PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX = unsafe extern "sy queue_family_index: u32, window: *mut _screen_window, ) -> Bool32; -pub const EXT_COLOR_WRITE_ENABLE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_color_write_enable\0") }; +pub const EXT_COLOR_WRITE_ENABLE_NAME: &CStr = c"EXT_color_write_enable"; pub const EXT_COLOR_WRITE_ENABLE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetColorWriteEnableEXT = unsafe extern "system" fn( @@ -7113,25 +6828,20 @@ pub type PFN_vkCmdSetColorWriteEnableEXT = unsafe extern "system" fn( attachment_count: u32, p_color_write_enables: *const Bool32, ); -pub const EXT_PRIMITIVES_GENERATED_QUERY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_primitives_generated_query\0") }; +pub const EXT_PRIMITIVES_GENERATED_QUERY_NAME: &CStr = c"EXT_primitives_generated_query"; pub const EXT_PRIMITIVES_GENERATED_QUERY_SPEC_VERSION: u32 = 1u32; -pub const KHR_RAY_TRACING_MAINTENANCE1_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_ray_tracing_maintenance1\0") }; +pub const KHR_RAY_TRACING_MAINTENANCE1_NAME: &CStr = c"KHR_ray_tracing_maintenance1"; pub const KHR_RAY_TRACING_MAINTENANCE1_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdTraceRaysIndirect2KHR = unsafe extern "system" fn( command_buffer: CommandBuffer, indirect_device_address: DeviceAddress, ); -pub const EXT_GLOBAL_PRIORITY_QUERY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_global_priority_query\0") }; +pub const EXT_GLOBAL_PRIORITY_QUERY_NAME: &CStr = c"EXT_global_priority_query"; pub const EXT_GLOBAL_PRIORITY_QUERY_SPEC_VERSION: u32 = 1u32; -pub const EXT_IMAGE_VIEW_MIN_LOD_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_image_view_min_lod\0") }; +pub const EXT_IMAGE_VIEW_MIN_LOD_NAME: &CStr = c"EXT_image_view_min_lod"; pub const EXT_IMAGE_VIEW_MIN_LOD_SPEC_VERSION: u32 = 1u32; -pub const EXT_MULTI_DRAW_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_multi_draw\0") }; +pub const EXT_MULTI_DRAW_NAME: &CStr = c"EXT_multi_draw"; pub const EXT_MULTI_DRAW_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdDrawMultiEXT = unsafe extern "system" fn( @@ -7152,17 +6862,13 @@ pub type PFN_vkCmdDrawMultiIndexedEXT = unsafe extern "system" fn( stride: u32, p_vertex_offset: *const i32, ); -pub const EXT_IMAGE_2D_VIEW_OF_3D_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_image_2d_view_of_3d\0") }; +pub const EXT_IMAGE_2D_VIEW_OF_3D_NAME: &CStr = c"EXT_image_2d_view_of_3d"; pub const EXT_IMAGE_2D_VIEW_OF_3D_SPEC_VERSION: u32 = 1u32; -pub const KHR_PORTABILITY_ENUMERATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_portability_enumeration\0") }; +pub const KHR_PORTABILITY_ENUMERATION_NAME: &CStr = c"KHR_portability_enumeration"; pub const KHR_PORTABILITY_ENUMERATION_SPEC_VERSION: u32 = 1u32; -pub const EXT_SHADER_TILE_IMAGE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_tile_image\0") }; +pub const EXT_SHADER_TILE_IMAGE_NAME: &CStr = c"EXT_shader_tile_image"; pub const EXT_SHADER_TILE_IMAGE_SPEC_VERSION: u32 = 1u32; -pub const EXT_OPACITY_MICROMAP_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_opacity_micromap\0") }; +pub const EXT_OPACITY_MICROMAP_NAME: &CStr = c"EXT_opacity_micromap"; pub const EXT_OPACITY_MICROMAP_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateMicromapEXT = unsafe extern "system" fn( @@ -7255,14 +6961,11 @@ pub type PFN_vkGetMicromapBuildSizesEXT = unsafe extern "system" fn( p_build_info: *const MicromapBuildInfoEXT<'_>, p_size_info: *mut MicromapBuildSizesInfoEXT<'_>, ); -pub const NV_DISPLACEMENT_MICROMAP_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_displacement_micromap\0") }; +pub const NV_DISPLACEMENT_MICROMAP_NAME: &CStr = c"NV_displacement_micromap"; pub const NV_DISPLACEMENT_MICROMAP_SPEC_VERSION: u32 = 2u32; -pub const EXT_LOAD_STORE_OP_NONE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_load_store_op_none\0") }; +pub const EXT_LOAD_STORE_OP_NONE_NAME: &CStr = c"EXT_load_store_op_none"; pub const EXT_LOAD_STORE_OP_NONE_SPEC_VERSION: u32 = 1u32; -pub const HUAWEI_CLUSTER_CULLING_SHADER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_HUAWEI_cluster_culling_shader\0") }; +pub const HUAWEI_CLUSTER_CULLING_SHADER_NAME: &CStr = c"HUAWEI_cluster_culling_shader"; pub const HUAWEI_CLUSTER_CULLING_SHADER_SPEC_VERSION: u32 = 3u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdDrawClusterHUAWEI = unsafe extern "system" fn( @@ -7274,17 +6977,14 @@ pub type PFN_vkCmdDrawClusterHUAWEI = unsafe extern "system" fn( #[allow(non_camel_case_types)] pub type PFN_vkCmdDrawClusterIndirectHUAWEI = unsafe extern "system" fn(command_buffer: CommandBuffer, buffer: Buffer, offset: DeviceSize); -pub const EXT_BORDER_COLOR_SWIZZLE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_border_color_swizzle\0") }; +pub const EXT_BORDER_COLOR_SWIZZLE_NAME: &CStr = c"EXT_border_color_swizzle"; pub const EXT_BORDER_COLOR_SWIZZLE_SPEC_VERSION: u32 = 1u32; -pub const EXT_PAGEABLE_DEVICE_LOCAL_MEMORY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_pageable_device_local_memory\0") }; +pub const EXT_PAGEABLE_DEVICE_LOCAL_MEMORY_NAME: &CStr = c"EXT_pageable_device_local_memory"; pub const EXT_PAGEABLE_DEVICE_LOCAL_MEMORY_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkSetDeviceMemoryPriorityEXT = unsafe extern "system" fn(device: crate::vk::Device, memory: DeviceMemory, priority: f32); -pub const KHR_MAINTENANCE4_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_maintenance4\0") }; +pub const KHR_MAINTENANCE4_NAME: &CStr = c"KHR_maintenance4"; pub const KHR_MAINTENANCE4_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetDeviceBufferMemoryRequirements = unsafe extern "system" fn( @@ -7305,20 +7005,15 @@ pub type PFN_vkGetDeviceImageSparseMemoryRequirements = unsafe extern "system" f p_sparse_memory_requirement_count: *mut u32, p_sparse_memory_requirements: *mut SparseImageMemoryRequirements2<'_>, ); -pub const ARM_SHADER_CORE_PROPERTIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_ARM_shader_core_properties\0") }; +pub const ARM_SHADER_CORE_PROPERTIES_NAME: &CStr = c"ARM_shader_core_properties"; pub const ARM_SHADER_CORE_PROPERTIES_SPEC_VERSION: u32 = 1u32; -pub const KHR_SHADER_SUBGROUP_ROTATE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_subgroup_rotate\0") }; +pub const KHR_SHADER_SUBGROUP_ROTATE_NAME: &CStr = c"KHR_shader_subgroup_rotate"; pub const KHR_SHADER_SUBGROUP_ROTATE_SPEC_VERSION: u32 = 2u32; -pub const ARM_SCHEDULING_CONTROLS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_ARM_scheduling_controls\0") }; +pub const ARM_SCHEDULING_CONTROLS_NAME: &CStr = c"ARM_scheduling_controls"; pub const ARM_SCHEDULING_CONTROLS_SPEC_VERSION: u32 = 1u32; -pub const EXT_IMAGE_SLICED_VIEW_OF_3D_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_image_sliced_view_of_3d\0") }; +pub const EXT_IMAGE_SLICED_VIEW_OF_3D_NAME: &CStr = c"EXT_image_sliced_view_of_3d"; pub const EXT_IMAGE_SLICED_VIEW_OF_3D_SPEC_VERSION: u32 = 1u32; -pub const VALVE_DESCRIPTOR_SET_HOST_MAPPING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_VALVE_descriptor_set_host_mapping\0") }; +pub const VALVE_DESCRIPTOR_SET_HOST_MAPPING_NAME: &CStr = c"VALVE_descriptor_set_host_mapping"; pub const VALVE_DESCRIPTOR_SET_HOST_MAPPING_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetDescriptorSetLayoutHostMappingInfoVALVE = unsafe extern "system" fn( @@ -7332,20 +7027,15 @@ pub type PFN_vkGetDescriptorSetHostMappingVALVE = unsafe extern "system" fn( descriptor_set: DescriptorSet, pp_data: *mut *mut c_void, ); -pub const EXT_DEPTH_CLAMP_ZERO_ONE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_depth_clamp_zero_one\0") }; +pub const EXT_DEPTH_CLAMP_ZERO_ONE_NAME: &CStr = c"EXT_depth_clamp_zero_one"; pub const EXT_DEPTH_CLAMP_ZERO_ONE_SPEC_VERSION: u32 = 1u32; -pub const EXT_NON_SEAMLESS_CUBE_MAP_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_non_seamless_cube_map\0") }; +pub const EXT_NON_SEAMLESS_CUBE_MAP_NAME: &CStr = c"EXT_non_seamless_cube_map"; pub const EXT_NON_SEAMLESS_CUBE_MAP_SPEC_VERSION: u32 = 1u32; -pub const ARM_RENDER_PASS_STRIPED_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_ARM_render_pass_striped\0") }; +pub const ARM_RENDER_PASS_STRIPED_NAME: &CStr = c"ARM_render_pass_striped"; pub const ARM_RENDER_PASS_STRIPED_SPEC_VERSION: u32 = 1u32; -pub const QCOM_FRAGMENT_DENSITY_MAP_OFFSET_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_fragment_density_map_offset\0") }; +pub const QCOM_FRAGMENT_DENSITY_MAP_OFFSET_NAME: &CStr = c"QCOM_fragment_density_map_offset"; pub const QCOM_FRAGMENT_DENSITY_MAP_OFFSET_SPEC_VERSION: u32 = 1u32; -pub const NV_COPY_MEMORY_INDIRECT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_copy_memory_indirect\0") }; +pub const NV_COPY_MEMORY_INDIRECT_NAME: &CStr = c"NV_copy_memory_indirect"; pub const NV_COPY_MEMORY_INDIRECT_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdCopyMemoryIndirectNV = unsafe extern "system" fn( @@ -7364,8 +7054,7 @@ pub type PFN_vkCmdCopyMemoryToImageIndirectNV = unsafe extern "system" fn( dst_image_layout: ImageLayout, p_image_subresources: *const ImageSubresourceLayers, ); -pub const NV_MEMORY_DECOMPRESSION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_memory_decompression\0") }; +pub const NV_MEMORY_DECOMPRESSION_NAME: &CStr = c"NV_memory_decompression"; pub const NV_MEMORY_DECOMPRESSION_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdDecompressMemoryNV = unsafe extern "system" fn( @@ -7381,7 +7070,7 @@ pub type PFN_vkCmdDecompressMemoryIndirectCountNV = unsafe extern "system" fn( stride: u32, ); pub const NV_DEVICE_GENERATED_COMMANDS_COMPUTE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_device_generated_commands_compute\0") }; + c"NV_device_generated_commands_compute"; pub const NV_DEVICE_GENERATED_COMMANDS_COMPUTE_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPipelineIndirectMemoryRequirementsNV = unsafe extern "system" fn( @@ -7400,29 +7089,23 @@ pub type PFN_vkGetPipelineIndirectDeviceAddressNV = unsafe extern "system" fn( device: crate::vk::Device, p_info: *const PipelineIndirectDeviceAddressInfoNV<'_>, ) -> DeviceAddress; -pub const NV_LINEAR_COLOR_ATTACHMENT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_linear_color_attachment\0") }; +pub const NV_LINEAR_COLOR_ATTACHMENT_NAME: &CStr = c"NV_linear_color_attachment"; pub const NV_LINEAR_COLOR_ATTACHMENT_SPEC_VERSION: u32 = 1u32; -pub const GOOGLE_SURFACELESS_QUERY_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_GOOGLE_surfaceless_query\0") }; +pub const GOOGLE_SURFACELESS_QUERY_NAME: &CStr = c"GOOGLE_surfaceless_query"; pub const GOOGLE_SURFACELESS_QUERY_SPEC_VERSION: u32 = 2u32; -pub const KHR_SHADER_MAXIMAL_RECONVERGENCE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_maximal_reconvergence\0") }; +pub const KHR_SHADER_MAXIMAL_RECONVERGENCE_NAME: &CStr = c"KHR_shader_maximal_reconvergence"; pub const KHR_SHADER_MAXIMAL_RECONVERGENCE_SPEC_VERSION: u32 = 1u32; pub const EXT_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_image_compression_control_swapchain\0") }; + c"EXT_image_compression_control_swapchain"; pub const EXT_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_SPEC_VERSION: u32 = 1u32; -pub const QCOM_IMAGE_PROCESSING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_image_processing\0") }; +pub const QCOM_IMAGE_PROCESSING_NAME: &CStr = c"QCOM_image_processing"; pub const QCOM_IMAGE_PROCESSING_SPEC_VERSION: u32 = 1u32; -pub const EXT_NESTED_COMMAND_BUFFER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_nested_command_buffer\0") }; +pub const EXT_NESTED_COMMAND_BUFFER_NAME: &CStr = c"EXT_nested_command_buffer"; pub const EXT_NESTED_COMMAND_BUFFER_SPEC_VERSION: u32 = 1u32; pub const EXT_EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_external_memory_acquire_unmodified\0") }; + c"EXT_external_memory_acquire_unmodified"; pub const EXT_EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_SPEC_VERSION: u32 = 1u32; -pub const EXT_EXTENDED_DYNAMIC_STATE3_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_extended_dynamic_state3\0") }; +pub const EXT_EXTENDED_DYNAMIC_STATE3_NAME: &CStr = c"EXT_extended_dynamic_state3"; pub const EXT_EXTENDED_DYNAMIC_STATE3_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetDepthClampEnableEXT = @@ -7563,14 +7246,11 @@ pub type PFN_vkCmdSetCoverageReductionModeNV = unsafe extern "system" fn( command_buffer: CommandBuffer, coverage_reduction_mode: CoverageReductionModeNV, ); -pub const EXT_SUBPASS_MERGE_FEEDBACK_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_subpass_merge_feedback\0") }; +pub const EXT_SUBPASS_MERGE_FEEDBACK_NAME: &CStr = c"EXT_subpass_merge_feedback"; pub const EXT_SUBPASS_MERGE_FEEDBACK_SPEC_VERSION: u32 = 2u32; -pub const LUNARG_DIRECT_DRIVER_LOADING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_LUNARG_direct_driver_loading\0") }; +pub const LUNARG_DIRECT_DRIVER_LOADING_NAME: &CStr = c"LUNARG_direct_driver_loading"; pub const LUNARG_DIRECT_DRIVER_LOADING_SPEC_VERSION: u32 = 1u32; -pub const EXT_SHADER_MODULE_IDENTIFIER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_module_identifier\0") }; +pub const EXT_SHADER_MODULE_IDENTIFIER_NAME: &CStr = c"EXT_shader_module_identifier"; pub const EXT_SHADER_MODULE_IDENTIFIER_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetShaderModuleIdentifierEXT = unsafe extern "system" fn( @@ -7584,12 +7264,10 @@ pub type PFN_vkGetShaderModuleCreateInfoIdentifierEXT = unsafe extern "system" f p_create_info: *const ShaderModuleCreateInfo<'_>, p_identifier: *mut ShaderModuleIdentifierEXT<'_>, ); -pub const EXT_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_NAME: &CStr = unsafe { - CStr::from_bytes_with_nul_unchecked(b"VK_EXT_rasterization_order_attachment_access\0") -}; +pub const EXT_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_NAME: &CStr = + c"EXT_rasterization_order_attachment_access"; pub const EXT_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_SPEC_VERSION: u32 = 1u32; -pub const NV_OPTICAL_FLOW_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_optical_flow\0") }; +pub const NV_OPTICAL_FLOW_NAME: &CStr = c"NV_optical_flow"; pub const NV_OPTICAL_FLOW_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceOpticalFlowImageFormatsNV = unsafe extern "system" fn( @@ -7625,17 +7303,13 @@ pub type PFN_vkCmdOpticalFlowExecuteNV = unsafe extern "system" fn( session: OpticalFlowSessionNV, p_execute_info: *const OpticalFlowExecuteInfoNV<'_>, ); -pub const EXT_LEGACY_DITHERING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_legacy_dithering\0") }; +pub const EXT_LEGACY_DITHERING_NAME: &CStr = c"EXT_legacy_dithering"; pub const EXT_LEGACY_DITHERING_SPEC_VERSION: u32 = 1u32; -pub const EXT_PIPELINE_PROTECTED_ACCESS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_pipeline_protected_access\0") }; +pub const EXT_PIPELINE_PROTECTED_ACCESS_NAME: &CStr = c"EXT_pipeline_protected_access"; pub const EXT_PIPELINE_PROTECTED_ACCESS_SPEC_VERSION: u32 = 1u32; -pub const ANDROID_EXTERNAL_FORMAT_RESOLVE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_ANDROID_external_format_resolve\0") }; +pub const ANDROID_EXTERNAL_FORMAT_RESOLVE_NAME: &CStr = c"ANDROID_external_format_resolve"; pub const ANDROID_EXTERNAL_FORMAT_RESOLVE_SPEC_VERSION: u32 = 1u32; -pub const KHR_MAINTENANCE5_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_maintenance5\0") }; +pub const KHR_MAINTENANCE5_NAME: &CStr = c"KHR_maintenance5"; pub const KHR_MAINTENANCE5_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdBindIndexBuffer2KHR = unsafe extern "system" fn( @@ -7657,11 +7331,9 @@ pub type PFN_vkGetDeviceImageSubresourceLayoutKHR = unsafe extern "system" fn( p_info: *const DeviceImageSubresourceInfoKHR<'_>, p_layout: *mut SubresourceLayout2KHR<'_>, ); -pub const KHR_RAY_TRACING_POSITION_FETCH_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_ray_tracing_position_fetch\0") }; +pub const KHR_RAY_TRACING_POSITION_FETCH_NAME: &CStr = c"KHR_ray_tracing_position_fetch"; pub const KHR_RAY_TRACING_POSITION_FETCH_SPEC_VERSION: u32 = 1u32; -pub const EXT_SHADER_OBJECT_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_shader_object\0") }; +pub const EXT_SHADER_OBJECT_NAME: &CStr = c"EXT_shader_object"; pub const EXT_SHADER_OBJECT_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCreateShadersEXT = unsafe extern "system" fn( @@ -7691,8 +7363,7 @@ pub type PFN_vkCmdBindShadersEXT = unsafe extern "system" fn( p_stages: *const ShaderStageFlags, p_shaders: *const ShaderEXT, ); -pub const QCOM_TILE_PROPERTIES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_tile_properties\0") }; +pub const QCOM_TILE_PROPERTIES_NAME: &CStr = c"QCOM_tile_properties"; pub const QCOM_TILE_PROPERTIES_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetFramebufferTilePropertiesQCOM = unsafe extern "system" fn( @@ -7707,36 +7378,26 @@ pub type PFN_vkGetDynamicRenderingTilePropertiesQCOM = unsafe extern "system" fn p_rendering_info: *const RenderingInfo<'_>, p_properties: *mut TilePropertiesQCOM<'_>, ) -> Result; -pub const SEC_AMIGO_PROFILING_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_SEC_amigo_profiling\0") }; +pub const SEC_AMIGO_PROFILING_NAME: &CStr = c"SEC_amigo_profiling"; pub const SEC_AMIGO_PROFILING_SPEC_VERSION: u32 = 1u32; -pub const QCOM_MULTIVIEW_PER_VIEW_VIEWPORTS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_multiview_per_view_viewports\0") }; +pub const QCOM_MULTIVIEW_PER_VIEW_VIEWPORTS_NAME: &CStr = c"QCOM_multiview_per_view_viewports"; pub const QCOM_MULTIVIEW_PER_VIEW_VIEWPORTS_SPEC_VERSION: u32 = 1u32; -pub const NV_RAY_TRACING_INVOCATION_REORDER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_ray_tracing_invocation_reorder\0") }; +pub const NV_RAY_TRACING_INVOCATION_REORDER_NAME: &CStr = c"NV_ray_tracing_invocation_reorder"; pub const NV_RAY_TRACING_INVOCATION_REORDER_SPEC_VERSION: u32 = 1u32; -pub const NV_EXTENDED_SPARSE_ADDRESS_SPACE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_extended_sparse_address_space\0") }; +pub const NV_EXTENDED_SPARSE_ADDRESS_SPACE_NAME: &CStr = c"NV_extended_sparse_address_space"; pub const NV_EXTENDED_SPARSE_ADDRESS_SPACE_SPEC_VERSION: u32 = 1u32; -pub const EXT_MUTABLE_DESCRIPTOR_TYPE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_mutable_descriptor_type\0") }; +pub const EXT_MUTABLE_DESCRIPTOR_TYPE_NAME: &CStr = c"EXT_mutable_descriptor_type"; pub const EXT_MUTABLE_DESCRIPTOR_TYPE_SPEC_VERSION: u32 = 1u32; -pub const EXT_LAYER_SETTINGS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_layer_settings\0") }; +pub const EXT_LAYER_SETTINGS_NAME: &CStr = c"EXT_layer_settings"; pub const EXT_LAYER_SETTINGS_SPEC_VERSION: u32 = 2u32; -pub const ARM_SHADER_CORE_BUILTINS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_ARM_shader_core_builtins\0") }; +pub const ARM_SHADER_CORE_BUILTINS_NAME: &CStr = c"ARM_shader_core_builtins"; pub const ARM_SHADER_CORE_BUILTINS_SPEC_VERSION: u32 = 2u32; -pub const EXT_PIPELINE_LIBRARY_GROUP_HANDLES_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_EXT_pipeline_library_group_handles\0") }; +pub const EXT_PIPELINE_LIBRARY_GROUP_HANDLES_NAME: &CStr = c"EXT_pipeline_library_group_handles"; pub const EXT_PIPELINE_LIBRARY_GROUP_HANDLES_SPEC_VERSION: u32 = 1u32; -pub const EXT_DYNAMIC_RENDERING_UNUSED_ATTACHMENTS_NAME: &CStr = unsafe { - CStr::from_bytes_with_nul_unchecked(b"VK_EXT_dynamic_rendering_unused_attachments\0") -}; +pub const EXT_DYNAMIC_RENDERING_UNUSED_ATTACHMENTS_NAME: &CStr = + c"EXT_dynamic_rendering_unused_attachments"; pub const EXT_DYNAMIC_RENDERING_UNUSED_ATTACHMENTS_SPEC_VERSION: u32 = 1u32; -pub const NV_LOW_LATENCY2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_low_latency2\0") }; +pub const NV_LOW_LATENCY2_NAME: &CStr = c"NV_low_latency2"; pub const NV_LOW_LATENCY2_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkSetLatencySleepModeNV = unsafe extern "system" fn( @@ -7765,8 +7426,7 @@ pub type PFN_vkGetLatencyTimingsNV = unsafe extern "system" fn( #[allow(non_camel_case_types)] pub type PFN_vkQueueNotifyOutOfBandNV = unsafe extern "system" fn(queue: Queue, p_queue_type_info: *const OutOfBandQueueTypeInfoNV<'_>); -pub const KHR_COOPERATIVE_MATRIX_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_cooperative_matrix\0") }; +pub const KHR_COOPERATIVE_MATRIX_NAME: &CStr = c"KHR_cooperative_matrix"; pub const KHR_COOPERATIVE_MATRIX_SPEC_VERSION: u32 = 2u32; #[allow(non_camel_case_types)] pub type PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR = @@ -7776,47 +7436,35 @@ pub type PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR = p_properties: *mut CooperativeMatrixPropertiesKHR<'_>, ) -> Result; pub const QCOM_MULTIVIEW_PER_VIEW_RENDER_AREAS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_multiview_per_view_render_areas\0") }; + c"QCOM_multiview_per_view_render_areas"; pub const QCOM_MULTIVIEW_PER_VIEW_RENDER_AREAS_SPEC_VERSION: u32 = 1u32; -pub const KHR_VIDEO_DECODE_AV1_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_decode_av1\0") }; +pub const KHR_VIDEO_DECODE_AV1_NAME: &CStr = c"KHR_video_decode_av1"; pub const KHR_VIDEO_DECODE_AV1_SPEC_VERSION: u32 = 1u32; -pub const KHR_VIDEO_MAINTENANCE1_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_video_maintenance1\0") }; +pub const KHR_VIDEO_MAINTENANCE1_NAME: &CStr = c"KHR_video_maintenance1"; pub const KHR_VIDEO_MAINTENANCE1_SPEC_VERSION: u32 = 1u32; -pub const NV_PER_STAGE_DESCRIPTOR_SET_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_per_stage_descriptor_set\0") }; +pub const NV_PER_STAGE_DESCRIPTOR_SET_NAME: &CStr = c"NV_per_stage_descriptor_set"; pub const NV_PER_STAGE_DESCRIPTOR_SET_SPEC_VERSION: u32 = 1u32; -pub const QCOM_IMAGE_PROCESSING2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_image_processing2\0") }; +pub const QCOM_IMAGE_PROCESSING2_NAME: &CStr = c"QCOM_image_processing2"; pub const QCOM_IMAGE_PROCESSING2_SPEC_VERSION: u32 = 1u32; -pub const QCOM_FILTER_CUBIC_WEIGHTS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_filter_cubic_weights\0") }; +pub const QCOM_FILTER_CUBIC_WEIGHTS_NAME: &CStr = c"QCOM_filter_cubic_weights"; pub const QCOM_FILTER_CUBIC_WEIGHTS_SPEC_VERSION: u32 = 1u32; -pub const QCOM_YCBCR_DEGAMMA_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_ycbcr_degamma\0") }; +pub const QCOM_YCBCR_DEGAMMA_NAME: &CStr = c"QCOM_ycbcr_degamma"; pub const QCOM_YCBCR_DEGAMMA_SPEC_VERSION: u32 = 1u32; -pub const QCOM_FILTER_CUBIC_CLAMP_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QCOM_filter_cubic_clamp\0") }; +pub const QCOM_FILTER_CUBIC_CLAMP_NAME: &CStr = c"QCOM_filter_cubic_clamp"; pub const QCOM_FILTER_CUBIC_CLAMP_SPEC_VERSION: u32 = 1u32; -pub const EXT_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_NAME: &CStr = unsafe { - CStr::from_bytes_with_nul_unchecked(b"VK_EXT_attachment_feedback_loop_dynamic_state\0") -}; +pub const EXT_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_NAME: &CStr = + c"EXT_attachment_feedback_loop_dynamic_state"; pub const EXT_ATTACHMENT_FEEDBACK_LOOP_DYNAMIC_STATE_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT = unsafe extern "system" fn(command_buffer: CommandBuffer, aspect_mask: ImageAspectFlags); -pub const KHR_VERTEX_ATTRIBUTE_DIVISOR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_vertex_attribute_divisor\0") }; +pub const KHR_VERTEX_ATTRIBUTE_DIVISOR_NAME: &CStr = c"KHR_vertex_attribute_divisor"; pub const KHR_VERTEX_ATTRIBUTE_DIVISOR_SPEC_VERSION: u32 = 1u32; -pub const KHR_LOAD_STORE_OP_NONE_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_load_store_op_none\0") }; +pub const KHR_LOAD_STORE_OP_NONE_NAME: &CStr = c"KHR_load_store_op_none"; pub const KHR_LOAD_STORE_OP_NONE_SPEC_VERSION: u32 = 1u32; -pub const KHR_SHADER_FLOAT_CONTROLS2_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_float_controls2\0") }; +pub const KHR_SHADER_FLOAT_CONTROLS2_NAME: &CStr = c"KHR_shader_float_controls2"; pub const KHR_SHADER_FLOAT_CONTROLS2_SPEC_VERSION: u32 = 1u32; -pub const QNX_EXTERNAL_MEMORY_SCREEN_BUFFER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_QNX_external_memory_screen_buffer\0") }; +pub const QNX_EXTERNAL_MEMORY_SCREEN_BUFFER_NAME: &CStr = c"QNX_external_memory_screen_buffer"; pub const QNX_EXTERNAL_MEMORY_SCREEN_BUFFER_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkGetScreenBufferPropertiesQNX = unsafe extern "system" fn( @@ -7824,23 +7472,17 @@ pub type PFN_vkGetScreenBufferPropertiesQNX = unsafe extern "system" fn( buffer: *const _screen_buffer, p_properties: *mut ScreenBufferPropertiesQNX<'_>, ) -> Result; -pub const MSFT_LAYERED_DRIVER_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_MSFT_layered_driver\0") }; +pub const MSFT_LAYERED_DRIVER_NAME: &CStr = c"MSFT_layered_driver"; pub const MSFT_LAYERED_DRIVER_SPEC_VERSION: u32 = 1u32; -pub const KHR_INDEX_TYPE_UINT8_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_index_type_uint8\0") }; +pub const KHR_INDEX_TYPE_UINT8_NAME: &CStr = c"KHR_index_type_uint8"; pub const KHR_INDEX_TYPE_UINT8_SPEC_VERSION: u32 = 1u32; -pub const KHR_LINE_RASTERIZATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_line_rasterization\0") }; +pub const KHR_LINE_RASTERIZATION_NAME: &CStr = c"KHR_line_rasterization"; pub const KHR_LINE_RASTERIZATION_SPEC_VERSION: u32 = 1u32; -pub const KHR_CALIBRATED_TIMESTAMPS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_calibrated_timestamps\0") }; +pub const KHR_CALIBRATED_TIMESTAMPS_NAME: &CStr = c"KHR_calibrated_timestamps"; pub const KHR_CALIBRATED_TIMESTAMPS_SPEC_VERSION: u32 = 1u32; -pub const KHR_SHADER_EXPECT_ASSUME_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_shader_expect_assume\0") }; +pub const KHR_SHADER_EXPECT_ASSUME_NAME: &CStr = c"KHR_shader_expect_assume"; pub const KHR_SHADER_EXPECT_ASSUME_SPEC_VERSION: u32 = 1u32; -pub const KHR_MAINTENANCE6_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_KHR_maintenance6\0") }; +pub const KHR_MAINTENANCE6_NAME: &CStr = c"KHR_maintenance6"; pub const KHR_MAINTENANCE6_SPEC_VERSION: u32 = 1u32; #[allow(non_camel_case_types)] pub type PFN_vkCmdBindDescriptorSets2KHR = unsafe extern "system" fn( @@ -7869,15 +7511,11 @@ pub type PFN_vkCmdSetDescriptorBufferOffsets2EXT = unsafe extern "system" fn( ); #[allow(non_camel_case_types)] pub type PFN_vkCmdBindDescriptorBufferEmbeddedSamplers2EXT = unsafe extern "system" fn (command_buffer : CommandBuffer , p_bind_descriptor_buffer_embedded_samplers_info : * const BindDescriptorBufferEmbeddedSamplersInfoEXT < '_ > ,) ; -pub const NV_DESCRIPTOR_POOL_OVERALLOCATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_descriptor_pool_overallocation\0") }; +pub const NV_DESCRIPTOR_POOL_OVERALLOCATION_NAME: &CStr = c"NV_descriptor_pool_overallocation"; pub const NV_DESCRIPTOR_POOL_OVERALLOCATION_SPEC_VERSION: u32 = 1u32; -pub const NV_RAW_ACCESS_CHAINS_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_raw_access_chains\0") }; +pub const NV_RAW_ACCESS_CHAINS_NAME: &CStr = c"NV_raw_access_chains"; pub const NV_RAW_ACCESS_CHAINS_SPEC_VERSION: u32 = 1u32; -pub const NV_SHADER_ATOMIC_FLOAT16_VECTOR_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_shader_atomic_float16_vector\0") }; +pub const NV_SHADER_ATOMIC_FLOAT16_VECTOR_NAME: &CStr = c"NV_shader_atomic_float16_vector"; pub const NV_SHADER_ATOMIC_FLOAT16_VECTOR_SPEC_VERSION: u32 = 1u32; -pub const NV_RAY_TRACING_VALIDATION_NAME: &CStr = - unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_NV_ray_tracing_validation\0") }; +pub const NV_RAY_TRACING_VALIDATION_NAME: &CStr = c"NV_ray_tracing_validation"; pub const NV_RAY_TRACING_VALIDATION_SPEC_VERSION: u32 = 1u32; diff --git a/generator/src/lib.rs b/generator/src/lib.rs index 243f1da84..6f5f256f2 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -28,6 +28,7 @@ use regex::Regex; use std::{ borrow::Cow, collections::{BTreeMap, HashMap, HashSet}, + ffi::CString, fmt::Display, ops::Not, path::Path, @@ -1085,15 +1086,14 @@ fn generate_function_pointers<'a>( let returns = &self.0.returns; let byte_function_name = - Literal::byte_string(format!("{}\0", self.0.function_name_c).as_bytes()); + Literal::c_string(&CString::new(self.0.function_name_c).unwrap()); quote!( #function_name_rust: unsafe { unsafe extern "system" fn #function_name_rust (#parameters_unused) #returns { panic!(concat!("Unable to load ", stringify!(#function_name_rust))) } - let cname = CStr::from_bytes_with_nul_unchecked(#byte_function_name); - let val = _f(cname); + let val = _f(#byte_function_name); if val.is_null() { #function_name_rust } else { @@ -1271,8 +1271,6 @@ pub fn generate_extension_commands<'a>( fn_cache: &mut HashSet<&'a str>, has_lifetimes: &HashSet, ) -> ExtensionCommands<'a> { - let byte_name_ident = Literal::byte_string(format!("{full_extension_name}\0").as_bytes()); - let extension_name = full_extension_name.strip_prefix("VK_").unwrap(); let (vendor, extension_ident) = extension_name.split_once('_').unwrap(); let extension_ident = match extension_ident.chars().next().unwrap().is_ascii_digit() { @@ -1289,13 +1287,11 @@ pub fn generate_extension_commands<'a>( .flatten() .filter_map(get_variant!(vk_parse::InterfaceItem::Enum)) .find(|e| e.name.contains("SPEC_VERSION")) - .and_then(|e| { - if let vk_parse::EnumSpec::Value { value, .. } = &e.spec { - let v: u32 = str::parse(value).unwrap(); - Some(quote!(pub const #spec_version_ident: u32 = #v;)) - } else { - None - } + .map(|e| &e.spec) + .and_then(get_variant!(vk_parse::EnumSpec::Value { value })) + .map(|value| { + let v: u32 = str::parse(value).unwrap(); + quote!(pub const #spec_version_ident: u32 = #v;) }); let mut instance_commands = Vec::new(); @@ -1427,12 +1423,12 @@ pub fn generate_extension_commands<'a>( let (raw_instance_fp, hl_instance_fp) = instance_fp.map_or((None, None), |(a, b)| (Some(a), Some(b))); + let byte_name_ident = Literal::c_string(&CString::new(extension_name).unwrap()); + ExtensionCommands { vendor, raw: quote! { - pub const #name_ident: &CStr = unsafe { - CStr::from_bytes_with_nul_unchecked(#byte_name_ident) - }; + pub const #name_ident: &CStr = #byte_name_ident; #spec_version #raw_instance_fp #raw_device_fp @@ -3457,6 +3453,8 @@ pub fn write_source_code>(vk_headers_dir: &Path, src_dir: P) { fn write_formatted(text: &[u8], out: File) -> std::process::Child { let mut child = std::process::Command::new("rustfmt") + // Required for formatting c-string literals: + .arg("--edition=2021") .stdin(std::process::Stdio::piped()) .stdout(out) .spawn()