From b5a2744694c0e3c8798ecfaf4f3e27ed5007a410 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 24 Jan 2022 19:50:36 +0100 Subject: [PATCH] Replace link `#[doc]` bits with `///` in manual code files (#562) Manual code files usually see extra documentation lines added with `///`, making for a rather unpleasant (source code) reading experience when mixed with a link wrapped in `#[doc]`. This is just a copy-paste remnant from autogenerated code (`quote` macro converts `///` to `#[doc]`) and can easily be omitted in manual code. --- ash/src/device.rs | 298 +++++++++--------- ash/src/entry.rs | 12 +- .../extensions/ext/buffer_device_address.rs | 2 +- .../extensions/ext/calibrated_timestamps.rs | 4 +- ash/src/extensions/ext/debug_marker.rs | 8 +- ash/src/extensions/ext/debug_report.rs | 4 +- ash/src/extensions/ext/debug_utils.rs | 22 +- .../extensions/ext/extended_dynamic_state.rs | 24 +- .../extensions/ext/full_screen_exclusive.rs | 8 +- ash/src/extensions/ext/metal_surface.rs | 2 +- ash/src/extensions/ext/tooling_info.rs | 2 +- .../extensions/khr/acceleration_structure.rs | 32 +- ash/src/extensions/khr/android_surface.rs | 2 +- .../extensions/khr/buffer_device_address.rs | 6 +- ash/src/extensions/khr/create_render_pass2.rs | 8 +- .../khr/deferred_host_operations.rs | 10 +- ash/src/extensions/khr/display.rs | 14 +- ash/src/extensions/khr/display_swapchain.rs | 2 +- ash/src/extensions/khr/draw_indirect_count.rs | 4 +- ash/src/extensions/khr/dynamic_rendering.rs | 4 +- ash/src/extensions/khr/external_fence_fd.rs | 4 +- ash/src/extensions/khr/external_memory_fd.rs | 4 +- .../extensions/khr/external_semaphore_fd.rs | 4 +- .../khr/get_memory_requirements2.rs | 6 +- .../khr/get_physical_device_properties2.rs | 14 +- .../khr/get_surface_capabilities2.rs | 4 +- ash/src/extensions/khr/maintenance1.rs | 2 +- ash/src/extensions/khr/maintenance3.rs | 2 +- ash/src/extensions/khr/maintenance4.rs | 6 +- .../khr/pipeline_executable_properties.rs | 6 +- ash/src/extensions/khr/present_wait.rs | 2 +- ash/src/extensions/khr/push_descriptor.rs | 4 +- .../extensions/khr/ray_tracing_pipeline.rs | 14 +- ash/src/extensions/khr/surface.rs | 10 +- ash/src/extensions/khr/swapchain.rs | 10 +- ash/src/extensions/khr/synchronization2.rs | 12 +- ash/src/extensions/khr/timeline_semaphore.rs | 6 +- ash/src/extensions/khr/wayland_surface.rs | 4 +- ash/src/extensions/khr/win32_surface.rs | 4 +- ash/src/extensions/khr/xcb_surface.rs | 4 +- ash/src/extensions/khr/xlib_surface.rs | 4 +- ash/src/extensions/mvk/ios_surface.rs | 2 +- ash/src/extensions/mvk/macos_surface.rs | 2 +- ash/src/extensions/nn/vi_surface.rs | 2 +- .../nv/device_diagnostic_checkpoints.rs | 4 +- ash/src/extensions/nv/mesh_shader.rs | 6 +- ash/src/extensions/nv/ray_tracing.rs | 24 +- ash/src/instance.rs | 50 +-- 48 files changed, 342 insertions(+), 342 deletions(-) diff --git a/ash/src/device.rs b/ash/src/device.rs index 0093e44..6990fd3 100644 --- a/ash/src/device.rs +++ b/ash/src/device.rs @@ -6,7 +6,7 @@ use std::mem; use std::os::raw::c_void; use std::ptr; -#[doc = ""] +/// #[derive(Clone)] pub struct Device { pub(crate) handle: vk::Device, @@ -43,7 +43,7 @@ impl Device { &self.device_fn_1_2 } - #[doc = ""] + /// pub unsafe fn cmd_draw_indirect_count( &self, command_buffer: vk::CommandBuffer, @@ -65,7 +65,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_draw_indexed_indirect_count( &self, command_buffer: vk::CommandBuffer, @@ -87,7 +87,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn create_render_pass2( &self, create_info: &vk::RenderPassCreateInfo2, @@ -104,7 +104,7 @@ impl Device { .result_with_success(renderpass) } - #[doc = ""] + /// pub unsafe fn cmd_begin_render_pass2( &self, command_buffer: vk::CommandBuffer, @@ -118,7 +118,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_next_subpass2( &self, command_buffer: vk::CommandBuffer, @@ -129,7 +129,7 @@ impl Device { .cmd_next_subpass2(command_buffer, subpass_begin_info, subpass_end_info); } - #[doc = ""] + /// pub unsafe fn cmd_end_render_pass2( &self, command_buffer: vk::CommandBuffer, @@ -139,7 +139,7 @@ impl Device { .cmd_end_render_pass2(command_buffer, subpass_end_info); } - #[doc = ""] + /// pub unsafe fn reset_query_pool( &self, query_pool: vk::QueryPool, @@ -150,7 +150,7 @@ impl Device { .reset_query_pool(self.handle(), query_pool, first_query, query_count); } - #[doc = ""] + /// pub unsafe fn get_semaphore_counter_value(&self, semaphore: vk::Semaphore) -> VkResult { let mut value = 0; self.device_fn_1_2 @@ -158,7 +158,7 @@ impl Device { .result_with_success(value) } - #[doc = ""] + /// pub unsafe fn wait_semaphores( &self, wait_info: &vk::SemaphoreWaitInfo, @@ -169,14 +169,14 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn signal_semaphore(&self, signal_info: &vk::SemaphoreSignalInfo) -> VkResult<()> { self.device_fn_1_2 .signal_semaphore(self.handle(), signal_info) .result() } - #[doc = ""] + /// pub unsafe fn get_buffer_device_address( &self, info: &vk::BufferDeviceAddressInfo, @@ -185,7 +185,7 @@ impl Device { .get_buffer_device_address(self.handle(), info) } - #[doc = ""] + /// pub unsafe fn get_buffer_opaque_capture_address( &self, info: &vk::BufferDeviceAddressInfo, @@ -194,7 +194,7 @@ impl Device { .get_buffer_opaque_capture_address(self.handle(), info) } - #[doc = ""] + /// pub unsafe fn get_device_memory_opaque_capture_address( &self, info: &vk::DeviceMemoryOpaqueCaptureAddressInfo, @@ -211,7 +211,7 @@ impl Device { &self.device_fn_1_1 } - #[doc = ""] + /// pub unsafe fn bind_buffer_memory2( &self, bind_infos: &[vk::BindBufferMemoryInfo], @@ -221,7 +221,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn bind_image_memory2( &self, bind_infos: &[vk::BindImageMemoryInfo], @@ -231,7 +231,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn get_device_group_peer_memory_features( &self, heap_index: u32, @@ -249,13 +249,13 @@ impl Device { peer_memory_features } - #[doc = ""] + /// pub unsafe fn cmd_set_device_mask(&self, command_buffer: vk::CommandBuffer, device_mask: u32) { self.device_fn_1_1 .cmd_set_device_mask(command_buffer, device_mask); } - #[doc = ""] + /// pub unsafe fn cmd_dispatch_base( &self, command_buffer: vk::CommandBuffer, @@ -277,7 +277,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn get_image_memory_requirements2( &self, info: &vk::ImageMemoryRequirementsInfo2, @@ -287,7 +287,7 @@ impl Device { .get_image_memory_requirements2(self.handle(), info, out); } - #[doc = ""] + /// pub unsafe fn get_buffer_memory_requirements2( &self, info: &vk::BufferMemoryRequirementsInfo2, @@ -312,7 +312,7 @@ impl Device { count as usize } - #[doc = ""] + /// /// /// Call [`Self::get_image_sparse_memory_requirements2_len()`] to query the number of elements to pass to `out`. /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. @@ -331,7 +331,7 @@ impl Device { assert_eq!(count as usize, out.len()); } - #[doc = ""] + /// pub unsafe fn trim_command_pool( &self, command_pool: vk::CommandPool, @@ -341,7 +341,7 @@ impl Device { .trim_command_pool(self.handle(), command_pool, flags); } - #[doc = ""] + /// pub unsafe fn create_sampler_ycbcr_conversion( &self, create_info: &vk::SamplerYcbcrConversionCreateInfo, @@ -358,7 +358,7 @@ impl Device { .result_with_success(ycbcr_conversion) } - #[doc = ""] + /// pub unsafe fn destroy_sampler_ycbcr_conversion( &self, ycbcr_conversion: vk::SamplerYcbcrConversion, @@ -371,7 +371,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn create_descriptor_update_template( &self, create_info: &vk::DescriptorUpdateTemplateCreateInfo, @@ -388,7 +388,7 @@ impl Device { .result_with_success(descriptor_update_template) } - #[doc = ""] + /// pub unsafe fn destroy_descriptor_update_template( &self, descriptor_update_template: vk::DescriptorUpdateTemplate, @@ -401,7 +401,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn update_descriptor_set_with_template( &self, descriptor_set: vk::DescriptorSet, @@ -416,7 +416,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn get_descriptor_set_layout_support( &self, create_info: &vk::DescriptorSetLayoutCreateInfo, @@ -434,13 +434,13 @@ impl Device { &self.device_fn_1_0 } - #[doc = ""] + /// pub unsafe fn destroy_device(&self, allocation_callbacks: Option<&vk::AllocationCallbacks>) { self.device_fn_1_0 .destroy_device(self.handle(), allocation_callbacks.as_raw_ptr()); } - #[doc = ""] + /// pub unsafe fn destroy_sampler( &self, sampler: vk::Sampler, @@ -453,7 +453,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn free_memory( &self, memory: vk::DeviceMemory, @@ -463,7 +463,7 @@ impl Device { .free_memory(self.handle(), memory, allocation_callbacks.as_raw_ptr()); } - #[doc = ""] + /// pub unsafe fn free_command_buffers( &self, command_pool: vk::CommandPool, @@ -477,7 +477,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn create_event( &self, create_info: &vk::EventCreateInfo, @@ -496,7 +496,7 @@ impl Device { /// Returns [`true`] if the event was set, and [`false`] if the event was reset, otherwise it will /// return the error code. - #[doc = ""] + /// pub unsafe fn get_event_status(&self, event: vk::Event) -> VkResult { let err_code = self.device_fn_1_0.get_event_status(self.handle(), event); match err_code { @@ -506,18 +506,18 @@ impl Device { } } - #[doc = ""] + /// pub unsafe fn set_event(&self, event: vk::Event) -> VkResult<()> { self.device_fn_1_0.set_event(self.handle(), event).result() } - #[doc = ""] + /// pub unsafe fn reset_event(&self, event: vk::Event) -> VkResult<()> { self.device_fn_1_0 .reset_event(self.handle(), event) .result() } - #[doc = ""] + /// pub unsafe fn cmd_set_event( &self, command_buffer: vk::CommandBuffer, @@ -527,7 +527,7 @@ impl Device { self.device_fn_1_0 .cmd_set_event(command_buffer, event, stage_mask); } - #[doc = ""] + /// pub unsafe fn cmd_reset_event( &self, command_buffer: vk::CommandBuffer, @@ -538,7 +538,7 @@ impl Device { .cmd_reset_event(command_buffer, event, stage_mask); } - #[doc = ""] + /// pub unsafe fn cmd_wait_events( &self, command_buffer: vk::CommandBuffer, @@ -564,7 +564,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_fence( &self, fence: vk::Fence, @@ -574,7 +574,7 @@ impl Device { .destroy_fence(self.handle(), fence, allocation_callbacks.as_raw_ptr()); } - #[doc = ""] + /// pub unsafe fn destroy_event( &self, event: vk::Event, @@ -584,7 +584,7 @@ impl Device { .destroy_event(self.handle(), event, allocation_callbacks.as_raw_ptr()); } - #[doc = ""] + /// pub unsafe fn destroy_image( &self, image: vk::Image, @@ -594,7 +594,7 @@ impl Device { .destroy_image(self.handle(), image, allocation_callbacks.as_raw_ptr()); } - #[doc = ""] + /// pub unsafe fn destroy_command_pool( &self, pool: vk::CommandPool, @@ -607,7 +607,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_image_view( &self, image_view: vk::ImageView, @@ -620,7 +620,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_render_pass( &self, renderpass: vk::RenderPass, @@ -633,7 +633,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_framebuffer( &self, framebuffer: vk::Framebuffer, @@ -646,7 +646,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_pipeline_layout( &self, pipeline_layout: vk::PipelineLayout, @@ -659,7 +659,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_pipeline_cache( &self, pipeline_cache: vk::PipelineCache, @@ -672,7 +672,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_buffer( &self, buffer: vk::Buffer, @@ -682,7 +682,7 @@ impl Device { .destroy_buffer(self.handle(), buffer, allocation_callbacks.as_raw_ptr()); } - #[doc = ""] + /// pub unsafe fn destroy_shader_module( &self, shader: vk::ShaderModule, @@ -695,7 +695,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_pipeline( &self, pipeline: vk::Pipeline, @@ -708,7 +708,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_semaphore( &self, semaphore: vk::Semaphore, @@ -721,7 +721,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_descriptor_pool( &self, pool: vk::DescriptorPool, @@ -734,7 +734,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_query_pool( &self, pool: vk::QueryPool, @@ -747,7 +747,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn destroy_descriptor_set_layout( &self, layout: vk::DescriptorSetLayout, @@ -760,7 +760,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn free_descriptor_sets( &self, pool: vk::DescriptorPool, @@ -776,7 +776,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn update_descriptor_sets( &self, descriptor_writes: &[vk::WriteDescriptorSet], @@ -791,7 +791,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn create_sampler( &self, create_info: &vk::SamplerCreateInfo, @@ -808,7 +808,7 @@ impl Device { .result_with_success(sampler) } - #[doc = ""] + /// pub unsafe fn cmd_blit_image( &self, command_buffer: vk::CommandBuffer, @@ -831,7 +831,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_resolve_image( &self, command_buffer: vk::CommandBuffer, @@ -852,7 +852,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_fill_buffer( &self, command_buffer: vk::CommandBuffer, @@ -865,7 +865,7 @@ impl Device { .cmd_fill_buffer(command_buffer, buffer, offset, size, data); } - #[doc = ""] + /// pub unsafe fn cmd_update_buffer( &self, command_buffer: vk::CommandBuffer, @@ -882,7 +882,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_copy_buffer( &self, command_buffer: vk::CommandBuffer, @@ -899,7 +899,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_copy_image_to_buffer( &self, command_buffer: vk::CommandBuffer, @@ -918,7 +918,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_copy_buffer_to_image( &self, command_buffer: vk::CommandBuffer, @@ -937,7 +937,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_copy_image( &self, command_buffer: vk::CommandBuffer, @@ -958,7 +958,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn allocate_descriptor_sets( &self, create_info: &vk::DescriptorSetAllocateInfo, @@ -974,7 +974,7 @@ impl Device { err_code.result_with_success(desc_set) } - #[doc = ""] + /// pub unsafe fn create_descriptor_set_layout( &self, create_info: &vk::DescriptorSetLayoutCreateInfo, @@ -991,12 +991,12 @@ impl Device { .result_with_success(layout) } - #[doc = ""] + /// pub unsafe fn device_wait_idle(&self) -> VkResult<()> { self.device_fn_1_0.device_wait_idle(self.handle()).result() } - #[doc = ""] + /// pub unsafe fn create_descriptor_pool( &self, create_info: &vk::DescriptorPoolCreateInfo, @@ -1013,7 +1013,7 @@ impl Device { .result_with_success(pool) } - #[doc = ""] + /// pub unsafe fn reset_descriptor_pool( &self, pool: vk::DescriptorPool, @@ -1024,7 +1024,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn reset_command_pool( &self, command_pool: vk::CommandPool, @@ -1035,7 +1035,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn reset_command_buffer( &self, command_buffer: vk::CommandBuffer, @@ -1046,14 +1046,14 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn reset_fences(&self, fences: &[vk::Fence]) -> VkResult<()> { self.device_fn_1_0 .reset_fences(self.handle(), fences.len() as u32, fences.as_ptr()) .result() } - #[doc = ""] + /// pub unsafe fn cmd_bind_index_buffer( &self, command_buffer: vk::CommandBuffer, @@ -1065,7 +1065,7 @@ impl Device { .cmd_bind_index_buffer(command_buffer, buffer, offset, index_type); } - #[doc = ""] + /// pub unsafe fn cmd_clear_color_image( &self, command_buffer: vk::CommandBuffer, @@ -1084,7 +1084,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_clear_depth_stencil_image( &self, command_buffer: vk::CommandBuffer, @@ -1103,7 +1103,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_clear_attachments( &self, command_buffer: vk::CommandBuffer, @@ -1119,7 +1119,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_draw_indexed( &self, command_buffer: vk::CommandBuffer, @@ -1139,7 +1139,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_draw_indexed_indirect( &self, command_buffer: vk::CommandBuffer, @@ -1157,7 +1157,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_execute_commands( &self, primary_command_buffer: vk::CommandBuffer, @@ -1170,7 +1170,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_bind_descriptor_sets( &self, command_buffer: vk::CommandBuffer, @@ -1192,7 +1192,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_copy_query_pool_results( &self, command_buffer: vk::CommandBuffer, @@ -1216,7 +1216,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_push_constants( &self, command_buffer: vk::CommandBuffer, @@ -1235,7 +1235,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_begin_render_pass( &self, command_buffer: vk::CommandBuffer, @@ -1246,7 +1246,7 @@ impl Device { .cmd_begin_render_pass(command_buffer, create_info, contents); } - #[doc = ""] + /// pub unsafe fn cmd_next_subpass( &self, command_buffer: vk::CommandBuffer, @@ -1256,7 +1256,7 @@ impl Device { .cmd_next_subpass(command_buffer, contents); } - #[doc = ""] + /// pub unsafe fn cmd_bind_pipeline( &self, command_buffer: vk::CommandBuffer, @@ -1267,7 +1267,7 @@ impl Device { .cmd_bind_pipeline(command_buffer, pipeline_bind_point, pipeline); } - #[doc = ""] + /// pub unsafe fn cmd_set_scissor( &self, command_buffer: vk::CommandBuffer, @@ -1282,13 +1282,13 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_set_line_width(&self, command_buffer: vk::CommandBuffer, line_width: f32) { self.device_fn_1_0 .cmd_set_line_width(command_buffer, line_width); } - #[doc = ""] + /// pub unsafe fn cmd_bind_vertex_buffers( &self, command_buffer: vk::CommandBuffer, @@ -1306,12 +1306,12 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_end_render_pass(&self, command_buffer: vk::CommandBuffer) { self.device_fn_1_0.cmd_end_render_pass(command_buffer); } - #[doc = ""] + /// pub unsafe fn cmd_draw( &self, command_buffer: vk::CommandBuffer, @@ -1329,7 +1329,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_draw_indirect( &self, command_buffer: vk::CommandBuffer, @@ -1342,7 +1342,7 @@ impl Device { .cmd_draw_indirect(command_buffer, buffer, offset, draw_count, stride); } - #[doc = ""] + /// pub unsafe fn cmd_dispatch( &self, command_buffer: vk::CommandBuffer, @@ -1358,7 +1358,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_dispatch_indirect( &self, command_buffer: vk::CommandBuffer, @@ -1369,7 +1369,7 @@ impl Device { .cmd_dispatch_indirect(command_buffer, buffer, offset); } - #[doc = ""] + /// pub unsafe fn cmd_set_viewport( &self, command_buffer: vk::CommandBuffer, @@ -1384,7 +1384,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn cmd_set_depth_bias( &self, command_buffer: vk::CommandBuffer, @@ -1396,7 +1396,7 @@ impl Device { .cmd_set_depth_bias(command_buffer, constant_factor, clamp, slope_factor); } - #[doc = ""] + /// pub unsafe fn cmd_set_blend_constants( &self, command_buffer: vk::CommandBuffer, @@ -1406,7 +1406,7 @@ impl Device { .cmd_set_blend_constants(command_buffer, blend_constants); } - #[doc = ""] + /// pub unsafe fn cmd_set_depth_bounds( &self, command_buffer: vk::CommandBuffer, @@ -1417,7 +1417,7 @@ impl Device { .cmd_set_depth_bounds(command_buffer, min_depth_bounds, max_depth_bounds); } - #[doc = ""] + /// pub unsafe fn cmd_set_stencil_compare_mask( &self, command_buffer: vk::CommandBuffer, @@ -1428,7 +1428,7 @@ impl Device { .cmd_set_stencil_compare_mask(command_buffer, face_mask, compare_mask); } - #[doc = ""] + /// pub unsafe fn cmd_set_stencil_write_mask( &self, command_buffer: vk::CommandBuffer, @@ -1439,7 +1439,7 @@ impl Device { .cmd_set_stencil_write_mask(command_buffer, face_mask, write_mask); } - #[doc = ""] + /// pub unsafe fn cmd_set_stencil_reference( &self, command_buffer: vk::CommandBuffer, @@ -1450,7 +1450,7 @@ impl Device { .cmd_set_stencil_reference(command_buffer, face_mask, reference); } - #[doc = ""] + /// pub unsafe fn get_query_pool_results( &self, query_pool: vk::QueryPool, @@ -1479,7 +1479,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn cmd_begin_query( &self, command_buffer: vk::CommandBuffer, @@ -1491,7 +1491,7 @@ impl Device { .cmd_begin_query(command_buffer, query_pool, query, flags); } - #[doc = ""] + /// pub unsafe fn cmd_end_query( &self, command_buffer: vk::CommandBuffer, @@ -1502,7 +1502,7 @@ impl Device { .cmd_end_query(command_buffer, query_pool, query); } - #[doc = ""] + /// pub unsafe fn cmd_reset_query_pool( &self, command_buffer: vk::CommandBuffer, @@ -1514,7 +1514,7 @@ impl Device { .cmd_reset_query_pool(command_buffer, pool, first_query, query_count); } - #[doc = ""] + /// pub unsafe fn cmd_write_timestamp( &self, command_buffer: vk::CommandBuffer, @@ -1526,7 +1526,7 @@ impl Device { .cmd_write_timestamp(command_buffer, pipeline_stage, query_pool, query); } - #[doc = ""] + /// pub unsafe fn create_semaphore( &self, create_info: &vk::SemaphoreCreateInfo, @@ -1543,7 +1543,7 @@ impl Device { .result_with_success(semaphore) } - #[doc = ""] + /// pub unsafe fn create_graphics_pipelines( &self, pipeline_cache: vk::PipelineCache, @@ -1566,7 +1566,7 @@ impl Device { } } - #[doc = ""] + /// pub unsafe fn create_compute_pipelines( &self, pipeline_cache: vk::PipelineCache, @@ -1589,7 +1589,7 @@ impl Device { } } - #[doc = ""] + /// pub unsafe fn create_buffer( &self, create_info: &vk::BufferCreateInfo, @@ -1606,7 +1606,7 @@ impl Device { .result_with_success(buffer) } - #[doc = ""] + /// pub unsafe fn create_pipeline_layout( &self, create_info: &vk::PipelineLayoutCreateInfo, @@ -1623,7 +1623,7 @@ impl Device { .result_with_success(pipeline_layout) } - #[doc = ""] + /// pub unsafe fn create_pipeline_cache( &self, create_info: &vk::PipelineCacheCreateInfo, @@ -1640,7 +1640,7 @@ impl Device { .result_with_success(pipeline_cache) } - #[doc = ""] + /// pub unsafe fn get_pipeline_cache_data( &self, pipeline_cache: vk::PipelineCache, @@ -1655,7 +1655,7 @@ impl Device { }) } - #[doc = ""] + /// pub unsafe fn merge_pipeline_caches( &self, dst_cache: vk::PipelineCache, @@ -1671,7 +1671,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn map_memory( &self, memory: vk::DeviceMemory, @@ -1685,12 +1685,12 @@ impl Device { .result_with_success(data) } - #[doc = ""] + /// pub unsafe fn unmap_memory(&self, memory: vk::DeviceMemory) { self.device_fn_1_0.unmap_memory(self.handle(), memory); } - #[doc = ""] + /// pub unsafe fn invalidate_mapped_memory_ranges( &self, ranges: &[vk::MappedMemoryRange], @@ -1700,7 +1700,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn flush_mapped_memory_ranges( &self, ranges: &[vk::MappedMemoryRange], @@ -1710,7 +1710,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn create_framebuffer( &self, create_info: &vk::FramebufferCreateInfo, @@ -1727,7 +1727,7 @@ impl Device { .result_with_success(framebuffer) } - #[doc = ""] + /// pub unsafe fn get_device_queue(&self, queue_family_index: u32, queue_index: u32) -> vk::Queue { let mut queue = mem::zeroed(); self.device_fn_1_0.get_device_queue( @@ -1739,7 +1739,7 @@ impl Device { queue } - #[doc = ""] + /// pub unsafe fn cmd_pipeline_barrier( &self, command_buffer: vk::CommandBuffer, @@ -1764,7 +1764,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn create_render_pass( &self, create_info: &vk::RenderPassCreateInfo, @@ -1781,7 +1781,7 @@ impl Device { .result_with_success(renderpass) } - #[doc = ""] + /// pub unsafe fn begin_command_buffer( &self, command_buffer: vk::CommandBuffer, @@ -1792,14 +1792,14 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn end_command_buffer(&self, command_buffer: vk::CommandBuffer) -> VkResult<()> { self.device_fn_1_0 .end_command_buffer(command_buffer) .result() } - #[doc = ""] + /// pub unsafe fn wait_for_fences( &self, fences: &[vk::Fence], @@ -1817,7 +1817,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn get_fence_status(&self, fence: vk::Fence) -> VkResult { let err_code = self.device_fn_1_0.get_fence_status(self.handle(), fence); match err_code { @@ -1827,12 +1827,12 @@ impl Device { } } - #[doc = ""] + /// pub unsafe fn queue_wait_idle(&self, queue: vk::Queue) -> VkResult<()> { self.device_fn_1_0.queue_wait_idle(queue).result() } - #[doc = ""] + /// pub unsafe fn queue_submit( &self, queue: vk::Queue, @@ -1844,7 +1844,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn queue_bind_sparse( &self, queue: vk::Queue, @@ -1856,7 +1856,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn create_buffer_view( &self, create_info: &vk::BufferViewCreateInfo, @@ -1873,7 +1873,7 @@ impl Device { .result_with_success(buffer_view) } - #[doc = ""] + /// pub unsafe fn destroy_buffer_view( &self, buffer_view: vk::BufferView, @@ -1886,7 +1886,7 @@ impl Device { ); } - #[doc = ""] + /// pub unsafe fn create_image_view( &self, create_info: &vk::ImageViewCreateInfo, @@ -1903,7 +1903,7 @@ impl Device { .result_with_success(image_view) } - #[doc = ""] + /// pub unsafe fn allocate_command_buffers( &self, create_info: &vk::CommandBufferAllocateInfo, @@ -1918,7 +1918,7 @@ impl Device { err_code.result_with_success(buffers) } - #[doc = ""] + /// pub unsafe fn create_command_pool( &self, create_info: &vk::CommandPoolCreateInfo, @@ -1935,7 +1935,7 @@ impl Device { .result_with_success(pool) } - #[doc = ""] + /// pub unsafe fn create_query_pool( &self, create_info: &vk::QueryPoolCreateInfo, @@ -1952,7 +1952,7 @@ impl Device { .result_with_success(pool) } - #[doc = ""] + /// pub unsafe fn create_image( &self, create_info: &vk::ImageCreateInfo, @@ -1969,7 +1969,7 @@ impl Device { .result_with_success(image) } - #[doc = ""] + /// pub unsafe fn get_image_subresource_layout( &self, image: vk::Image, @@ -1985,7 +1985,7 @@ impl Device { layout } - #[doc = ""] + /// pub unsafe fn get_image_memory_requirements(&self, image: vk::Image) -> vk::MemoryRequirements { let mut mem_req = mem::zeroed(); self.device_fn_1_0 @@ -1993,7 +1993,7 @@ impl Device { mem_req } - #[doc = ""] + /// pub unsafe fn get_buffer_memory_requirements( &self, buffer: vk::Buffer, @@ -2004,7 +2004,7 @@ impl Device { mem_req } - #[doc = ""] + /// pub unsafe fn allocate_memory( &self, create_info: &vk::MemoryAllocateInfo, @@ -2021,7 +2021,7 @@ impl Device { .result_with_success(memory) } - #[doc = ""] + /// pub unsafe fn create_shader_module( &self, create_info: &vk::ShaderModuleCreateInfo, @@ -2038,7 +2038,7 @@ impl Device { .result_with_success(shader) } - #[doc = ""] + /// pub unsafe fn create_fence( &self, create_info: &vk::FenceCreateInfo, @@ -2055,7 +2055,7 @@ impl Device { .result_with_success(fence) } - #[doc = ""] + /// pub unsafe fn bind_buffer_memory( &self, buffer: vk::Buffer, @@ -2067,7 +2067,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn bind_image_memory( &self, image: vk::Image, @@ -2079,7 +2079,7 @@ impl Device { .result() } - #[doc = ""] + /// pub unsafe fn get_render_area_granularity(&self, render_pass: vk::RenderPass) -> vk::Extent2D { let mut granularity = mem::zeroed(); self.device_fn_1_0.get_render_area_granularity( @@ -2090,7 +2090,7 @@ impl Device { granularity } - #[doc = ""] + /// pub unsafe fn get_device_memory_commitment(&self, memory: vk::DeviceMemory) -> vk::DeviceSize { let mut committed_memory_in_bytes = 0; self.device_fn_1_0.get_device_memory_commitment( @@ -2101,7 +2101,7 @@ impl Device { committed_memory_in_bytes } - #[doc = ""] + /// pub unsafe fn get_image_sparse_memory_requirements( &self, image: vk::Image, diff --git a/ash/src/entry.rs b/ash/src/entry.rs index b3a4a12..1fd10fb 100644 --- a/ash/src/entry.rs +++ b/ash/src/entry.rs @@ -167,7 +167,7 @@ impl Entry { &self.static_fn } - #[doc = ""] + /// /// ```no_run /// # use ash::{Entry, vk}; /// # fn main() -> Result<(), Box> { @@ -203,7 +203,7 @@ impl Entry { } } - #[doc = ""] + /// /// /// # Safety /// In order for the created [`Instance`] to be valid for the duration of its @@ -225,7 +225,7 @@ impl Entry { Ok(Instance::load(&self.static_fn, instance)) } - #[doc = ""] + /// pub fn enumerate_instance_layer_properties(&self) -> VkResult> { unsafe { read_into_uninitialized_vector(|count, data| { @@ -235,7 +235,7 @@ impl Entry { } } - #[doc = ""] + /// pub fn enumerate_instance_extension_properties( &self, ) -> VkResult> { @@ -247,7 +247,7 @@ impl Entry { } } - #[doc = ""] + /// pub unsafe fn get_instance_proc_addr( &self, instance: vk::Instance, @@ -265,7 +265,7 @@ impl Entry { } #[deprecated = "This function is unavailable and therefore panics on Vulkan 1.0, please use `try_enumerate_instance_version` instead"] - #[doc = ""] + /// /// /// Please use [`Self::try_enumerate_instance_version`] instead. pub fn enumerate_instance_version(&self) -> VkResult { diff --git a/ash/src/extensions/ext/buffer_device_address.rs b/ash/src/extensions/ext/buffer_device_address.rs index 61578ee..c42c211 100644 --- a/ash/src/extensions/ext/buffer_device_address.rs +++ b/ash/src/extensions/ext/buffer_device_address.rs @@ -18,7 +18,7 @@ impl BufferDeviceAddress { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_buffer_device_address( &self, info: &vk::BufferDeviceAddressInfoEXT, diff --git a/ash/src/extensions/ext/calibrated_timestamps.rs b/ash/src/extensions/ext/calibrated_timestamps.rs index 7b29ef6..9346375 100644 --- a/ash/src/extensions/ext/calibrated_timestamps.rs +++ b/ash/src/extensions/ext/calibrated_timestamps.rs @@ -19,7 +19,7 @@ impl CalibratedTimestamps { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_physical_device_calibrateable_time_domains( &self, physical_device: vk::PhysicalDevice, @@ -30,7 +30,7 @@ impl CalibratedTimestamps { }) } - #[doc = ""] + /// /// /// Returns a tuple containing `(timestamps, max_deviation)` pub unsafe fn get_calibrated_timestamps( diff --git a/ash/src/extensions/ext/debug_marker.rs b/ash/src/extensions/ext/debug_marker.rs index 1d2f76a..f62f6a0 100755 --- a/ash/src/extensions/ext/debug_marker.rs +++ b/ash/src/extensions/ext/debug_marker.rs @@ -19,7 +19,7 @@ impl DebugMarker { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn debug_marker_set_object_name( &self, name_info: &vk::DebugMarkerObjectNameInfoEXT, @@ -29,7 +29,7 @@ impl DebugMarker { .result() } - #[doc = ""] + /// pub unsafe fn cmd_debug_marker_begin( &self, command_buffer: vk::CommandBuffer, @@ -39,12 +39,12 @@ impl DebugMarker { .cmd_debug_marker_begin_ext(command_buffer, marker_info); } - #[doc = ""] + /// pub unsafe fn cmd_debug_marker_end(&self, command_buffer: vk::CommandBuffer) { self.fp.cmd_debug_marker_end_ext(command_buffer); } - #[doc = ""] + /// pub unsafe fn cmd_debug_marker_insert( &self, command_buffer: vk::CommandBuffer, diff --git a/ash/src/extensions/ext/debug_report.rs b/ash/src/extensions/ext/debug_report.rs index 6382509..2e0abb2 100755 --- a/ash/src/extensions/ext/debug_report.rs +++ b/ash/src/extensions/ext/debug_report.rs @@ -20,7 +20,7 @@ impl DebugReport { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn destroy_debug_report_callback( &self, debug: vk::DebugReportCallbackEXT, @@ -33,7 +33,7 @@ impl DebugReport { ); } - #[doc = ""] + /// pub unsafe fn create_debug_report_callback( &self, create_info: &vk::DebugReportCallbackCreateInfoEXT, diff --git a/ash/src/extensions/ext/debug_utils.rs b/ash/src/extensions/ext/debug_utils.rs index 0b38d5e..17a8f69 100755 --- a/ash/src/extensions/ext/debug_utils.rs +++ b/ash/src/extensions/ext/debug_utils.rs @@ -19,7 +19,7 @@ impl DebugUtils { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn debug_utils_set_object_name( &self, device: vk::Device, @@ -30,7 +30,7 @@ impl DebugUtils { .result() } - #[doc = ""] + /// pub unsafe fn debug_utils_set_object_tag( &self, device: vk::Device, @@ -41,7 +41,7 @@ impl DebugUtils { .result() } - #[doc = ""] + /// pub unsafe fn cmd_begin_debug_utils_label( &self, command_buffer: vk::CommandBuffer, @@ -51,12 +51,12 @@ impl DebugUtils { .cmd_begin_debug_utils_label_ext(command_buffer, label); } - #[doc = ""] + /// pub unsafe fn cmd_end_debug_utils_label(&self, command_buffer: vk::CommandBuffer) { self.fp.cmd_end_debug_utils_label_ext(command_buffer); } - #[doc = ""] + /// pub unsafe fn cmd_insert_debug_utils_label( &self, command_buffer: vk::CommandBuffer, @@ -66,7 +66,7 @@ impl DebugUtils { .cmd_insert_debug_utils_label_ext(command_buffer, label); } - #[doc = ""] + /// pub unsafe fn queue_begin_debug_utils_label( &self, queue: vk::Queue, @@ -75,12 +75,12 @@ impl DebugUtils { self.fp.queue_begin_debug_utils_label_ext(queue, label); } - #[doc = ""] + /// pub unsafe fn queue_end_debug_utils_label(&self, queue: vk::Queue) { self.fp.queue_end_debug_utils_label_ext(queue); } - #[doc = ""] + /// pub unsafe fn queue_insert_debug_utils_label( &self, queue: vk::Queue, @@ -89,7 +89,7 @@ impl DebugUtils { self.fp.queue_insert_debug_utils_label_ext(queue, label); } - #[doc = ""] + /// pub unsafe fn create_debug_utils_messenger( &self, create_info: &vk::DebugUtilsMessengerCreateInfoEXT, @@ -106,7 +106,7 @@ impl DebugUtils { .result_with_success(messenger) } - #[doc = ""] + /// pub unsafe fn destroy_debug_utils_messenger( &self, messenger: vk::DebugUtilsMessengerEXT, @@ -116,7 +116,7 @@ impl DebugUtils { .destroy_debug_utils_messenger_ext(self.handle, messenger, allocator.as_raw_ptr()); } - #[doc = ""] + /// pub unsafe fn submit_debug_utils_message( &self, message_severity: vk::DebugUtilsMessageSeverityFlagsEXT, diff --git a/ash/src/extensions/ext/extended_dynamic_state.rs b/ash/src/extensions/ext/extended_dynamic_state.rs index eda5d61..85a5f3a 100644 --- a/ash/src/extensions/ext/extended_dynamic_state.rs +++ b/ash/src/extensions/ext/extended_dynamic_state.rs @@ -17,7 +17,7 @@ impl ExtendedDynamicState { Self { fp } } - #[doc = ""] + /// pub unsafe fn cmd_set_cull_mode( &self, command_buffer: vk::CommandBuffer, @@ -26,7 +26,7 @@ impl ExtendedDynamicState { self.fp.cmd_set_cull_mode_ext(command_buffer, cull_mode) } - #[doc = ""] + /// pub unsafe fn cmd_set_front_face( &self, command_buffer: vk::CommandBuffer, @@ -35,7 +35,7 @@ impl ExtendedDynamicState { self.fp.cmd_set_front_face_ext(command_buffer, front_face) } - #[doc = ""] + /// pub unsafe fn cmd_set_primitive_topology( &self, command_buffer: vk::CommandBuffer, @@ -45,7 +45,7 @@ impl ExtendedDynamicState { .cmd_set_primitive_topology_ext(command_buffer, primitive_topology) } - #[doc = ""] + /// pub unsafe fn cmd_set_viewport_with_count( &self, command_buffer: vk::CommandBuffer, @@ -58,7 +58,7 @@ impl ExtendedDynamicState { ) } - #[doc = ""] + /// pub unsafe fn cmd_set_scissor_with_count( &self, command_buffer: vk::CommandBuffer, @@ -71,7 +71,7 @@ impl ExtendedDynamicState { ) } - #[doc = ""] + /// pub unsafe fn cmd_bind_vertex_buffers2( &self, command_buffer: vk::CommandBuffer, @@ -105,7 +105,7 @@ impl ExtendedDynamicState { ) } - #[doc = ""] + /// pub unsafe fn cmd_set_depth_test_enable( &self, command_buffer: vk::CommandBuffer, @@ -115,7 +115,7 @@ impl ExtendedDynamicState { .cmd_set_depth_test_enable_ext(command_buffer, depth_test_enable.into()) } - #[doc = ""] + /// pub unsafe fn cmd_set_depth_write_enable( &self, command_buffer: vk::CommandBuffer, @@ -125,7 +125,7 @@ impl ExtendedDynamicState { .cmd_set_depth_write_enable_ext(command_buffer, depth_write_enable.into()) } - #[doc = ""] + /// pub unsafe fn cmd_set_depth_compare_op( &self, command_buffer: vk::CommandBuffer, @@ -135,7 +135,7 @@ impl ExtendedDynamicState { .cmd_set_depth_compare_op_ext(command_buffer, depth_compare_op) } - #[doc = ""] + /// pub unsafe fn cmd_set_depth_bounds_test_enable( &self, command_buffer: vk::CommandBuffer, @@ -145,7 +145,7 @@ impl ExtendedDynamicState { .cmd_set_depth_bounds_test_enable_ext(command_buffer, depth_bounds_test_enable.into()) } - #[doc = ""] + /// pub unsafe fn cmd_set_stencil_test_enable( &self, command_buffer: vk::CommandBuffer, @@ -155,7 +155,7 @@ impl ExtendedDynamicState { .cmd_set_stencil_test_enable_ext(command_buffer, stencil_test_enable.into()) } - #[doc = ""] + /// pub unsafe fn cmd_set_stencil_op( &self, command_buffer: vk::CommandBuffer, diff --git a/ash/src/extensions/ext/full_screen_exclusive.rs b/ash/src/extensions/ext/full_screen_exclusive.rs index 0d7fd45..ed57937 100644 --- a/ash/src/extensions/ext/full_screen_exclusive.rs +++ b/ash/src/extensions/ext/full_screen_exclusive.rs @@ -19,7 +19,7 @@ impl FullScreenExclusive { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn acquire_full_screen_exclusive_mode( &self, swapchain: vk::SwapchainKHR, @@ -29,7 +29,7 @@ impl FullScreenExclusive { .result() } - #[doc = ""] + /// pub unsafe fn get_physical_device_surface_present_modes2( &self, physical_device: vk::PhysicalDevice, @@ -45,7 +45,7 @@ impl FullScreenExclusive { }) } - #[doc = ""] + /// pub unsafe fn release_full_screen_exclusive_mode( &self, swapchain: vk::SwapchainKHR, @@ -55,7 +55,7 @@ impl FullScreenExclusive { .result() } - #[doc = ""] + /// pub unsafe fn get_device_group_surface_present_modes2( &self, surface_info: &vk::PhysicalDeviceSurfaceInfo2KHR, diff --git a/ash/src/extensions/ext/metal_surface.rs b/ash/src/extensions/ext/metal_surface.rs index d4be230..99d4ba7 100644 --- a/ash/src/extensions/ext/metal_surface.rs +++ b/ash/src/extensions/ext/metal_surface.rs @@ -20,7 +20,7 @@ impl MetalSurface { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_metal_surface( &self, create_info: &vk::MetalSurfaceCreateInfoEXT, diff --git a/ash/src/extensions/ext/tooling_info.rs b/ash/src/extensions/ext/tooling_info.rs index ccc8544..f049549 100644 --- a/ash/src/extensions/ext/tooling_info.rs +++ b/ash/src/extensions/ext/tooling_info.rs @@ -17,7 +17,7 @@ impl ToolingInfo { Self { fp } } - #[doc = ""] + /// pub unsafe fn get_physical_device_tool_properties( &self, physical_device: vk::PhysicalDevice, diff --git a/ash/src/extensions/khr/acceleration_structure.rs b/ash/src/extensions/khr/acceleration_structure.rs index 6b9b8e8..c6c5277 100644 --- a/ash/src/extensions/khr/acceleration_structure.rs +++ b/ash/src/extensions/khr/acceleration_structure.rs @@ -32,7 +32,7 @@ impl AccelerationStructure { props_rt } - #[doc = ""] + /// pub unsafe fn create_acceleration_structure( &self, create_info: &vk::AccelerationStructureCreateInfoKHR, @@ -49,7 +49,7 @@ impl AccelerationStructure { .result_with_success(accel_struct) } - #[doc = ""] + /// pub unsafe fn destroy_acceleration_structure( &self, accel_struct: vk::AccelerationStructureKHR, @@ -62,7 +62,7 @@ impl AccelerationStructure { ); } - #[doc = ""] + /// pub unsafe fn cmd_build_acceleration_structures( &self, command_buffer: vk::CommandBuffer, @@ -88,7 +88,7 @@ impl AccelerationStructure { ); } - #[doc = ""] + /// pub unsafe fn cmd_build_acceleration_structures_indirect( &self, command_buffer: vk::CommandBuffer, @@ -120,7 +120,7 @@ impl AccelerationStructure { ); } - #[doc = ""] + /// pub unsafe fn build_acceleration_structures( &self, deferred_operation: vk::DeferredOperationKHR, @@ -149,7 +149,7 @@ impl AccelerationStructure { .result() } - #[doc = ""] + /// pub unsafe fn copy_acceleration_structure( &self, deferred_operation: vk::DeferredOperationKHR, @@ -160,7 +160,7 @@ impl AccelerationStructure { .result() } - #[doc = ""] + /// pub unsafe fn copy_acceleration_structure_to_memory( &self, deferred_operation: vk::DeferredOperationKHR, @@ -175,7 +175,7 @@ impl AccelerationStructure { .result() } - #[doc = ""] + /// pub unsafe fn copy_memory_to_acceleration_structure( &self, deferred_operation: vk::DeferredOperationKHR, @@ -190,7 +190,7 @@ impl AccelerationStructure { .result() } - #[doc = ""] + /// pub unsafe fn write_acceleration_structures_properties( &self, acceleration_structures: &[vk::AccelerationStructureKHR], @@ -211,7 +211,7 @@ impl AccelerationStructure { .result() } - #[doc = ""] + /// pub unsafe fn cmd_copy_acceleration_structure( &self, command_buffer: vk::CommandBuffer, @@ -221,7 +221,7 @@ impl AccelerationStructure { .cmd_copy_acceleration_structure_khr(command_buffer, info); } - #[doc = ""] + /// pub unsafe fn cmd_copy_acceleration_structure_to_memory( &self, command_buffer: vk::CommandBuffer, @@ -231,7 +231,7 @@ impl AccelerationStructure { .cmd_copy_acceleration_structure_to_memory_khr(command_buffer, info as *const _); } - #[doc = ""] + /// pub unsafe fn cmd_copy_memory_to_acceleration_structure( &self, command_buffer: vk::CommandBuffer, @@ -241,7 +241,7 @@ impl AccelerationStructure { .cmd_copy_memory_to_acceleration_structure_khr(command_buffer, info as *const _); } - #[doc = ""] + /// pub unsafe fn get_acceleration_structure_device_address( &self, info: &vk::AccelerationStructureDeviceAddressInfoKHR, @@ -250,7 +250,7 @@ impl AccelerationStructure { .get_acceleration_structure_device_address_khr(self.handle, info as *const _) } - #[doc = ""] + /// pub unsafe fn cmd_write_acceleration_structures_properties( &self, command_buffer: vk::CommandBuffer, @@ -269,7 +269,7 @@ impl AccelerationStructure { ); } - #[doc = ""] + /// pub unsafe fn get_device_acceleration_structure_compatibility( &self, version: &vk::AccelerationStructureVersionInfoKHR, @@ -285,7 +285,7 @@ impl AccelerationStructure { compatibility } - #[doc = ""] + /// pub unsafe fn get_acceleration_structure_build_sizes( &self, build_type: vk::AccelerationStructureBuildTypeKHR, diff --git a/ash/src/extensions/khr/android_surface.rs b/ash/src/extensions/khr/android_surface.rs index 336ae10..ba58da0 100755 --- a/ash/src/extensions/khr/android_surface.rs +++ b/ash/src/extensions/khr/android_surface.rs @@ -20,7 +20,7 @@ impl AndroidSurface { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_android_surface( &self, create_info: &vk::AndroidSurfaceCreateInfoKHR, diff --git a/ash/src/extensions/khr/buffer_device_address.rs b/ash/src/extensions/khr/buffer_device_address.rs index 26e8308..6699320 100644 --- a/ash/src/extensions/khr/buffer_device_address.rs +++ b/ash/src/extensions/khr/buffer_device_address.rs @@ -18,7 +18,7 @@ impl BufferDeviceAddress { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_buffer_device_address( &self, info: &vk::BufferDeviceAddressInfoKHR, @@ -26,7 +26,7 @@ impl BufferDeviceAddress { self.fp.get_buffer_device_address_khr(self.handle, info) } - #[doc = ""] + /// pub unsafe fn get_buffer_opaque_capture_address( &self, info: &vk::BufferDeviceAddressInfoKHR, @@ -35,7 +35,7 @@ impl BufferDeviceAddress { .get_buffer_opaque_capture_address_khr(self.handle, info) } - #[doc = ""] + /// pub unsafe fn get_device_memory_opaque_capture_address( &self, info: &vk::DeviceMemoryOpaqueCaptureAddressInfoKHR, diff --git a/ash/src/extensions/khr/create_render_pass2.rs b/ash/src/extensions/khr/create_render_pass2.rs index 537906a..7feaa2a 100644 --- a/ash/src/extensions/khr/create_render_pass2.rs +++ b/ash/src/extensions/khr/create_render_pass2.rs @@ -20,7 +20,7 @@ impl CreateRenderPass2 { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_render_pass2( &self, create_info: &vk::RenderPassCreateInfo2, @@ -37,7 +37,7 @@ impl CreateRenderPass2 { .result_with_success(renderpass) } - #[doc = ""] + /// pub unsafe fn cmd_begin_render_pass2( &self, command_buffer: vk::CommandBuffer, @@ -51,7 +51,7 @@ impl CreateRenderPass2 { ); } - #[doc = ""] + /// pub unsafe fn cmd_next_subpass2( &self, command_buffer: vk::CommandBuffer, @@ -62,7 +62,7 @@ impl CreateRenderPass2 { .cmd_next_subpass2_khr(command_buffer, subpass_begin_info, subpass_end_info); } - #[doc = ""] + /// pub unsafe fn cmd_end_render_pass2( &self, command_buffer: vk::CommandBuffer, diff --git a/ash/src/extensions/khr/deferred_host_operations.rs b/ash/src/extensions/khr/deferred_host_operations.rs index ba84207..2c762c4 100644 --- a/ash/src/extensions/khr/deferred_host_operations.rs +++ b/ash/src/extensions/khr/deferred_host_operations.rs @@ -20,7 +20,7 @@ impl DeferredHostOperations { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_deferred_operation( &self, allocation_callbacks: Option<&vk::AllocationCallbacks>, @@ -35,7 +35,7 @@ impl DeferredHostOperations { .result_with_success(operation) } - #[doc = ""] + /// pub unsafe fn deferred_operation_join( &self, operation: vk::DeferredOperationKHR, @@ -45,7 +45,7 @@ impl DeferredHostOperations { .result() } - #[doc = ""] + /// pub unsafe fn destroy_deferred_operation( &self, operation: vk::DeferredOperationKHR, @@ -58,7 +58,7 @@ impl DeferredHostOperations { ); } - #[doc = ""] + /// pub unsafe fn get_deferred_operation_max_concurrency( &self, operation: vk::DeferredOperationKHR, @@ -67,7 +67,7 @@ impl DeferredHostOperations { .get_deferred_operation_max_concurrency_khr(self.handle, operation) } - #[doc = ""] + /// pub unsafe fn get_deferred_operation_result( &self, operation: vk::DeferredOperationKHR, diff --git a/ash/src/extensions/khr/display.rs b/ash/src/extensions/khr/display.rs index 0d1ee9a..7d68bab 100755 --- a/ash/src/extensions/khr/display.rs +++ b/ash/src/extensions/khr/display.rs @@ -20,7 +20,7 @@ impl Display { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_physical_device_display_properties( &self, physical_device: vk::PhysicalDevice, @@ -31,7 +31,7 @@ impl Display { }) } - #[doc = ""] + /// pub unsafe fn get_physical_device_display_plane_properties( &self, physical_device: vk::PhysicalDevice, @@ -42,7 +42,7 @@ impl Display { }) } - #[doc = ""] + /// pub unsafe fn get_display_plane_supported_displays( &self, physical_device: vk::PhysicalDevice, @@ -58,7 +58,7 @@ impl Display { }) } - #[doc = ""] + /// pub unsafe fn get_display_mode_properties( &self, physical_device: vk::PhysicalDevice, @@ -70,7 +70,7 @@ impl Display { }) } - #[doc = ""] + /// pub unsafe fn create_display_mode( &self, physical_device: vk::PhysicalDevice, @@ -90,7 +90,7 @@ impl Display { .result_with_success(display_mode.assume_init()) } - #[doc = ""] + /// pub unsafe fn get_display_plane_capabilities( &self, physical_device: vk::PhysicalDevice, @@ -108,7 +108,7 @@ impl Display { .result_with_success(display_plane_capabilities.assume_init()) } - #[doc = ""] + /// pub unsafe fn create_display_plane_surface( &self, create_info: &vk::DisplaySurfaceCreateInfoKHR, diff --git a/ash/src/extensions/khr/display_swapchain.rs b/ash/src/extensions/khr/display_swapchain.rs index 588d01d..a013ddf 100755 --- a/ash/src/extensions/khr/display_swapchain.rs +++ b/ash/src/extensions/khr/display_swapchain.rs @@ -20,7 +20,7 @@ impl DisplaySwapchain { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_shared_swapchains( &self, create_infos: &[vk::SwapchainCreateInfoKHR], diff --git a/ash/src/extensions/khr/draw_indirect_count.rs b/ash/src/extensions/khr/draw_indirect_count.rs index 133eb74..1841ce1 100644 --- a/ash/src/extensions/khr/draw_indirect_count.rs +++ b/ash/src/extensions/khr/draw_indirect_count.rs @@ -16,7 +16,7 @@ impl DrawIndirectCount { Self { fp } } - #[doc = ""] + /// pub unsafe fn cmd_draw_indexed_indirect_count( &self, command_buffer: vk::CommandBuffer, @@ -38,7 +38,7 @@ impl DrawIndirectCount { ); } - #[doc = ""] + /// pub unsafe fn cmd_draw_indirect_count( &self, command_buffer: vk::CommandBuffer, diff --git a/ash/src/extensions/khr/dynamic_rendering.rs b/ash/src/extensions/khr/dynamic_rendering.rs index 983a145..d0c58fb 100644 --- a/ash/src/extensions/khr/dynamic_rendering.rs +++ b/ash/src/extensions/khr/dynamic_rendering.rs @@ -16,7 +16,7 @@ impl DynamicRendering { Self { fp } } - #[doc = ""] + /// pub unsafe fn cmd_begin_rendering( &self, command_buffer: vk::CommandBuffer, @@ -26,7 +26,7 @@ impl DynamicRendering { .cmd_begin_rendering_khr(command_buffer, rendering_info) } - #[doc = ""] + /// pub unsafe fn cmd_end_rendering(&self, command_buffer: vk::CommandBuffer) { self.fp.cmd_end_rendering_khr(command_buffer) } diff --git a/ash/src/extensions/khr/external_fence_fd.rs b/ash/src/extensions/khr/external_fence_fd.rs index a243e4f..f0d6d94 100644 --- a/ash/src/extensions/khr/external_fence_fd.rs +++ b/ash/src/extensions/khr/external_fence_fd.rs @@ -19,14 +19,14 @@ impl ExternalFenceFd { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn import_fence_fd(&self, import_info: &vk::ImportFenceFdInfoKHR) -> VkResult<()> { self.fp .import_fence_fd_khr(self.handle, import_info) .result() } - #[doc = ""] + /// pub unsafe fn get_fence_fd(&self, get_info: &vk::FenceGetFdInfoKHR) -> VkResult { let mut fd = -1; self.fp diff --git a/ash/src/extensions/khr/external_memory_fd.rs b/ash/src/extensions/khr/external_memory_fd.rs index 1f752a5..26a5a4a 100644 --- a/ash/src/extensions/khr/external_memory_fd.rs +++ b/ash/src/extensions/khr/external_memory_fd.rs @@ -19,7 +19,7 @@ impl ExternalMemoryFd { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_memory_fd(&self, create_info: &vk::MemoryGetFdInfoKHR) -> VkResult { let mut fd = -1; self.fp @@ -27,7 +27,7 @@ impl ExternalMemoryFd { .result_with_success(fd) } - #[doc = ""] + /// pub unsafe fn get_memory_fd_properties_khr( &self, handle_type: vk::ExternalMemoryHandleTypeFlags, diff --git a/ash/src/extensions/khr/external_semaphore_fd.rs b/ash/src/extensions/khr/external_semaphore_fd.rs index 1a7e45e..d3c3c80 100644 --- a/ash/src/extensions/khr/external_semaphore_fd.rs +++ b/ash/src/extensions/khr/external_semaphore_fd.rs @@ -19,7 +19,7 @@ impl ExternalSemaphoreFd { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn import_semaphore_fd( &self, import_info: &vk::ImportSemaphoreFdInfoKHR, @@ -29,7 +29,7 @@ impl ExternalSemaphoreFd { .result() } - #[doc = ""] + /// pub unsafe fn get_semaphore_fd(&self, get_info: &vk::SemaphoreGetFdInfoKHR) -> VkResult { let mut fd = -1; self.fp diff --git a/ash/src/extensions/khr/get_memory_requirements2.rs b/ash/src/extensions/khr/get_memory_requirements2.rs index 8b2547d..4843f81 100644 --- a/ash/src/extensions/khr/get_memory_requirements2.rs +++ b/ash/src/extensions/khr/get_memory_requirements2.rs @@ -19,7 +19,7 @@ impl GetMemoryRequirements2 { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_buffer_memory_requirements2( &self, info: &vk::BufferMemoryRequirementsInfo2KHR, @@ -29,7 +29,7 @@ impl GetMemoryRequirements2 { .get_buffer_memory_requirements2_khr(self.handle, info, memory_requirements); } - #[doc = ""] + /// pub unsafe fn get_image_memory_requirements2( &self, info: &vk::ImageMemoryRequirementsInfo2KHR, @@ -54,7 +54,7 @@ impl GetMemoryRequirements2 { count as usize } - #[doc = ""] + /// /// /// Call [`Self::get_image_sparse_memory_requirements2_len()`] to query the number of elements to pass to `out`. /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. diff --git a/ash/src/extensions/khr/get_physical_device_properties2.rs b/ash/src/extensions/khr/get_physical_device_properties2.rs index 29d17fd..c4954d0 100644 --- a/ash/src/extensions/khr/get_physical_device_properties2.rs +++ b/ash/src/extensions/khr/get_physical_device_properties2.rs @@ -18,7 +18,7 @@ impl GetPhysicalDeviceProperties2 { Self { fp } } - #[doc = ""] + /// pub unsafe fn get_physical_device_features2( &self, physical_device: vk::PhysicalDevice, @@ -28,7 +28,7 @@ impl GetPhysicalDeviceProperties2 { .get_physical_device_features2_khr(physical_device, features); } - #[doc = ""] + /// pub unsafe fn get_physical_device_format_properties2( &self, physical_device: vk::PhysicalDevice, @@ -42,7 +42,7 @@ impl GetPhysicalDeviceProperties2 { ); } - #[doc = ""] + /// pub unsafe fn get_physical_device_image_format_properties2( &self, physical_device: vk::PhysicalDevice, @@ -58,7 +58,7 @@ impl GetPhysicalDeviceProperties2 { .result() } - #[doc = ""] + /// pub unsafe fn get_physical_device_memory_properties2( &self, physical_device: vk::PhysicalDevice, @@ -68,7 +68,7 @@ impl GetPhysicalDeviceProperties2 { .get_physical_device_memory_properties2_khr(physical_device, memory_properties); } - #[doc = ""] + /// pub unsafe fn get_physical_device_properties2( &self, physical_device: vk::PhysicalDevice, @@ -92,7 +92,7 @@ impl GetPhysicalDeviceProperties2 { count as usize } - #[doc = ""] + /// /// /// Call [`Self::get_physical_device_queue_family_properties2_len()`] to query the number of elements to pass to `out`. /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. @@ -127,7 +127,7 @@ impl GetPhysicalDeviceProperties2 { count as usize } - #[doc = ""] + /// /// /// Call [`Self::get_physical_device_sparse_image_format_properties2_len()`] to query the number of elements to pass to `out`. /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. diff --git a/ash/src/extensions/khr/get_surface_capabilities2.rs b/ash/src/extensions/khr/get_surface_capabilities2.rs index 1f5e148..12377d7 100644 --- a/ash/src/extensions/khr/get_surface_capabilities2.rs +++ b/ash/src/extensions/khr/get_surface_capabilities2.rs @@ -17,7 +17,7 @@ impl GetSurfaceCapabilities2 { Self { fp } } - #[doc = ""] + /// pub unsafe fn get_physical_device_surface_capabilities2( &self, physical_device: vk::PhysicalDevice, @@ -49,7 +49,7 @@ impl GetSurfaceCapabilities2 { err_code.result_with_success(count as usize) } - #[doc = ""] + /// /// /// Call [`Self::get_physical_device_surface_formats2_len()`] to query the number of elements to pass to `out`. /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. diff --git a/ash/src/extensions/khr/maintenance1.rs b/ash/src/extensions/khr/maintenance1.rs index 058dfab..6b23c17 100644 --- a/ash/src/extensions/khr/maintenance1.rs +++ b/ash/src/extensions/khr/maintenance1.rs @@ -18,7 +18,7 @@ impl Maintenance1 { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn trim_command_pool( &self, command_pool: vk::CommandPool, diff --git a/ash/src/extensions/khr/maintenance3.rs b/ash/src/extensions/khr/maintenance3.rs index 5028b05..531975f 100644 --- a/ash/src/extensions/khr/maintenance3.rs +++ b/ash/src/extensions/khr/maintenance3.rs @@ -18,7 +18,7 @@ impl Maintenance3 { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_descriptor_set_layout_support( &self, create_info: &vk::DescriptorSetLayoutCreateInfo, diff --git a/ash/src/extensions/khr/maintenance4.rs b/ash/src/extensions/khr/maintenance4.rs index a3f606f..e4292d9 100644 --- a/ash/src/extensions/khr/maintenance4.rs +++ b/ash/src/extensions/khr/maintenance4.rs @@ -18,7 +18,7 @@ impl Maintenance4 { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_device_buffer_memory_requirements( &self, create_info: &vk::DeviceBufferMemoryRequirementsKHR, @@ -28,7 +28,7 @@ impl Maintenance4 { .get_device_buffer_memory_requirements_khr(self.handle, create_info, out) } - #[doc = ""] + /// pub unsafe fn get_device_image_memory_requirements( &self, create_info: &vk::DeviceImageMemoryRequirementsKHR, @@ -53,7 +53,7 @@ impl Maintenance4 { count as usize } - #[doc = ""] + /// /// /// Call [`Self::get_device_image_sparse_memory_requirements_len()`] to query the number of elements to pass to `out`. /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. diff --git a/ash/src/extensions/khr/pipeline_executable_properties.rs b/ash/src/extensions/khr/pipeline_executable_properties.rs index 3c4f459..2f3c09b 100644 --- a/ash/src/extensions/khr/pipeline_executable_properties.rs +++ b/ash/src/extensions/khr/pipeline_executable_properties.rs @@ -19,7 +19,7 @@ impl PipelineExecutableProperties { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_pipeline_executable_internal_representations( &self, executable_info: &vk::PipelineExecutableInfoKHR, @@ -35,7 +35,7 @@ impl PipelineExecutableProperties { }) } - #[doc = ""] + /// pub unsafe fn get_pipeline_executable_properties( &self, pipeline_info: &vk::PipelineInfoKHR, @@ -46,7 +46,7 @@ impl PipelineExecutableProperties { }) } - #[doc = ""] + /// pub unsafe fn get_pipeline_executable_statistics( &self, executable_info: &vk::PipelineExecutableInfoKHR, diff --git a/ash/src/extensions/khr/present_wait.rs b/ash/src/extensions/khr/present_wait.rs index 2d7a9c5..d2f078f 100644 --- a/ash/src/extensions/khr/present_wait.rs +++ b/ash/src/extensions/khr/present_wait.rs @@ -19,7 +19,7 @@ impl PresentWait { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn wait_for_present( &self, swapchain: vk::SwapchainKHR, diff --git a/ash/src/extensions/khr/push_descriptor.rs b/ash/src/extensions/khr/push_descriptor.rs index e4d700f..2c89e90 100644 --- a/ash/src/extensions/khr/push_descriptor.rs +++ b/ash/src/extensions/khr/push_descriptor.rs @@ -17,7 +17,7 @@ impl PushDescriptor { Self { fp } } - #[doc = ""] + /// pub unsafe fn cmd_push_descriptor_set( &self, command_buffer: vk::CommandBuffer, @@ -36,7 +36,7 @@ impl PushDescriptor { ); } - #[doc = ""] + /// pub unsafe fn cmd_push_descriptor_set_with_template( &self, command_buffer: vk::CommandBuffer, diff --git a/ash/src/extensions/khr/ray_tracing_pipeline.rs b/ash/src/extensions/khr/ray_tracing_pipeline.rs index dc5bc8a..397410b 100644 --- a/ash/src/extensions/khr/ray_tracing_pipeline.rs +++ b/ash/src/extensions/khr/ray_tracing_pipeline.rs @@ -32,7 +32,7 @@ impl RayTracingPipeline { props_rt } - #[doc = ""] + /// pub unsafe fn cmd_trace_rays( &self, command_buffer: vk::CommandBuffer, @@ -56,7 +56,7 @@ impl RayTracingPipeline { ); } - #[doc = ""] + /// pub unsafe fn create_ray_tracing_pipelines( &self, deferred_operation: vk::DeferredOperationKHR, @@ -78,7 +78,7 @@ impl RayTracingPipeline { .result_with_success(pipelines) } - #[doc = ""] + /// pub unsafe fn get_ray_tracing_shader_group_handles( &self, pipeline: vk::Pipeline, @@ -99,7 +99,7 @@ impl RayTracingPipeline { err_code.result_with_success(data) } - #[doc = ""] + /// pub unsafe fn get_ray_tracing_capture_replay_shader_group_handles( &self, pipeline: vk::Pipeline, @@ -121,7 +121,7 @@ impl RayTracingPipeline { .result_with_success(data) } - #[doc = ""] + /// pub unsafe fn cmd_trace_rays_indirect( &self, command_buffer: vk::CommandBuffer, @@ -141,7 +141,7 @@ impl RayTracingPipeline { ); } - #[doc = ""] + /// pub unsafe fn get_ray_tracing_shader_group_stack_size( &self, pipeline: vk::Pipeline, @@ -156,7 +156,7 @@ impl RayTracingPipeline { ) } - #[doc = ""] + /// pub unsafe fn cmd_set_ray_tracing_pipeline_stack_size( &self, command_buffer: vk::CommandBuffer, diff --git a/ash/src/extensions/khr/surface.rs b/ash/src/extensions/khr/surface.rs index 7e4fd3d..df57ed0 100755 --- a/ash/src/extensions/khr/surface.rs +++ b/ash/src/extensions/khr/surface.rs @@ -20,7 +20,7 @@ impl Surface { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_physical_device_surface_support( &self, physical_device: vk::PhysicalDevice, @@ -38,7 +38,7 @@ impl Surface { .result_with_success(b > 0) } - #[doc = ""] + /// pub unsafe fn get_physical_device_surface_present_modes( &self, physical_device: vk::PhysicalDevice, @@ -54,7 +54,7 @@ impl Surface { }) } - #[doc = ""] + /// pub unsafe fn get_physical_device_surface_capabilities( &self, physical_device: vk::PhysicalDevice, @@ -70,7 +70,7 @@ impl Surface { .result_with_success(surface_capabilities) } - #[doc = ""] + /// pub unsafe fn get_physical_device_surface_formats( &self, physical_device: vk::PhysicalDevice, @@ -82,7 +82,7 @@ impl Surface { }) } - #[doc = ""] + /// pub unsafe fn destroy_surface( &self, surface: vk::SurfaceKHR, diff --git a/ash/src/extensions/khr/swapchain.rs b/ash/src/extensions/khr/swapchain.rs index 682ff04..4ed3f3d 100755 --- a/ash/src/extensions/khr/swapchain.rs +++ b/ash/src/extensions/khr/swapchain.rs @@ -20,7 +20,7 @@ impl Swapchain { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn destroy_swapchain( &self, swapchain: vk::SwapchainKHR, @@ -31,7 +31,7 @@ impl Swapchain { } /// On success, returns the next image's index and whether the swapchain is suboptimal for the surface. - #[doc = ""] + /// pub unsafe fn acquire_next_image( &self, swapchain: vk::SwapchainKHR, @@ -55,7 +55,7 @@ impl Swapchain { } } - #[doc = ""] + /// pub unsafe fn create_swapchain( &self, create_info: &vk::SwapchainCreateInfoKHR, @@ -73,7 +73,7 @@ impl Swapchain { } /// On success, returns whether the swapchain is suboptimal for the surface. - #[doc = ""] + /// pub unsafe fn queue_present( &self, queue: vk::Queue, @@ -87,7 +87,7 @@ impl Swapchain { } } - #[doc = ""] + /// pub unsafe fn get_swapchain_images( &self, swapchain: vk::SwapchainKHR, diff --git a/ash/src/extensions/khr/synchronization2.rs b/ash/src/extensions/khr/synchronization2.rs index d53cae6..36f1532 100644 --- a/ash/src/extensions/khr/synchronization2.rs +++ b/ash/src/extensions/khr/synchronization2.rs @@ -17,7 +17,7 @@ impl Synchronization2 { Self { fp } } - #[doc = ""] + /// pub unsafe fn cmd_pipeline_barrier2( &self, command_buffer: vk::CommandBuffer, @@ -27,7 +27,7 @@ impl Synchronization2 { .cmd_pipeline_barrier2_khr(command_buffer, dependency_info) } - #[doc = ""] + /// pub unsafe fn cmd_reset_event2( &self, command_buffer: vk::CommandBuffer, @@ -38,7 +38,7 @@ impl Synchronization2 { .cmd_reset_event2_khr(command_buffer, event, stage_mask) } - #[doc = ""] + /// pub unsafe fn cmd_set_event2( &self, command_buffer: vk::CommandBuffer, @@ -49,7 +49,7 @@ impl Synchronization2 { .cmd_set_event2_khr(command_buffer, event, dependency_info) } - #[doc = ""] + /// pub unsafe fn cmd_wait_events2( &self, command_buffer: vk::CommandBuffer, @@ -65,7 +65,7 @@ impl Synchronization2 { ) } - #[doc = ""] + /// pub unsafe fn cmd_write_timestamp2( &self, command_buffer: vk::CommandBuffer, @@ -77,7 +77,7 @@ impl Synchronization2 { .cmd_write_timestamp2_khr(command_buffer, stage, query_pool, query) } - #[doc = ""] + /// pub unsafe fn queue_submit2( &self, queue: vk::Queue, diff --git a/ash/src/extensions/khr/timeline_semaphore.rs b/ash/src/extensions/khr/timeline_semaphore.rs index 5896330..1c216c6 100644 --- a/ash/src/extensions/khr/timeline_semaphore.rs +++ b/ash/src/extensions/khr/timeline_semaphore.rs @@ -19,7 +19,7 @@ impl TimelineSemaphore { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn get_semaphore_counter_value(&self, semaphore: vk::Semaphore) -> VkResult { let mut value = 0; self.fp @@ -27,7 +27,7 @@ impl TimelineSemaphore { .result_with_success(value) } - #[doc = ""] + /// pub unsafe fn wait_semaphores( &self, wait_info: &vk::SemaphoreWaitInfo, @@ -38,7 +38,7 @@ impl TimelineSemaphore { .result() } - #[doc = ""] + /// pub unsafe fn signal_semaphore(&self, signal_info: &vk::SemaphoreSignalInfo) -> VkResult<()> { self.fp .signal_semaphore_khr(self.handle, signal_info) diff --git a/ash/src/extensions/khr/wayland_surface.rs b/ash/src/extensions/khr/wayland_surface.rs index 67848bc..8d12c90 100755 --- a/ash/src/extensions/khr/wayland_surface.rs +++ b/ash/src/extensions/khr/wayland_surface.rs @@ -20,7 +20,7 @@ impl WaylandSurface { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_wayland_surface( &self, create_info: &vk::WaylandSurfaceCreateInfoKHR, @@ -37,7 +37,7 @@ impl WaylandSurface { .result_with_success(surface) } - #[doc = ""] + /// pub unsafe fn get_physical_device_wayland_presentation_support( &self, physical_device: vk::PhysicalDevice, diff --git a/ash/src/extensions/khr/win32_surface.rs b/ash/src/extensions/khr/win32_surface.rs index 3713c19..674fbc5 100755 --- a/ash/src/extensions/khr/win32_surface.rs +++ b/ash/src/extensions/khr/win32_surface.rs @@ -20,7 +20,7 @@ impl Win32Surface { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_win32_surface( &self, create_info: &vk::Win32SurfaceCreateInfoKHR, @@ -37,7 +37,7 @@ impl Win32Surface { .result_with_success(surface) } - #[doc = ""] + /// pub unsafe fn get_physical_device_win32_presentation_support( &self, physical_device: vk::PhysicalDevice, diff --git a/ash/src/extensions/khr/xcb_surface.rs b/ash/src/extensions/khr/xcb_surface.rs index db30e29..de18977 100755 --- a/ash/src/extensions/khr/xcb_surface.rs +++ b/ash/src/extensions/khr/xcb_surface.rs @@ -20,7 +20,7 @@ impl XcbSurface { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_xcb_surface( &self, create_info: &vk::XcbSurfaceCreateInfoKHR, @@ -37,7 +37,7 @@ impl XcbSurface { .result_with_success(surface) } - #[doc = ""] + /// pub unsafe fn get_physical_device_xcb_presentation_support( &self, physical_device: vk::PhysicalDevice, diff --git a/ash/src/extensions/khr/xlib_surface.rs b/ash/src/extensions/khr/xlib_surface.rs index 16e4bcc..ac647d6 100755 --- a/ash/src/extensions/khr/xlib_surface.rs +++ b/ash/src/extensions/khr/xlib_surface.rs @@ -20,7 +20,7 @@ impl XlibSurface { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_xlib_surface( &self, create_info: &vk::XlibSurfaceCreateInfoKHR, @@ -37,7 +37,7 @@ impl XlibSurface { .result_with_success(surface) } - #[doc = ""] + /// pub unsafe fn get_physical_device_xlib_presentation_support( &self, physical_device: vk::PhysicalDevice, diff --git a/ash/src/extensions/mvk/ios_surface.rs b/ash/src/extensions/mvk/ios_surface.rs index 3ab7ec8..d7b796f 100755 --- a/ash/src/extensions/mvk/ios_surface.rs +++ b/ash/src/extensions/mvk/ios_surface.rs @@ -20,7 +20,7 @@ impl IOSSurface { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_ios_surface( &self, create_info: &vk::IOSSurfaceCreateInfoMVK, diff --git a/ash/src/extensions/mvk/macos_surface.rs b/ash/src/extensions/mvk/macos_surface.rs index e916ef6..2c6c8be 100755 --- a/ash/src/extensions/mvk/macos_surface.rs +++ b/ash/src/extensions/mvk/macos_surface.rs @@ -20,7 +20,7 @@ impl MacOSSurface { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_mac_os_surface( &self, create_info: &vk::MacOSSurfaceCreateInfoMVK, diff --git a/ash/src/extensions/nn/vi_surface.rs b/ash/src/extensions/nn/vi_surface.rs index 03ae975..2959af2 100644 --- a/ash/src/extensions/nn/vi_surface.rs +++ b/ash/src/extensions/nn/vi_surface.rs @@ -20,7 +20,7 @@ impl ViSurface { Self { handle, fp } } - #[doc = ""] + /// pub unsafe fn create_vi_surface( &self, create_info: &vk::ViSurfaceCreateInfoNN, diff --git a/ash/src/extensions/nv/device_diagnostic_checkpoints.rs b/ash/src/extensions/nv/device_diagnostic_checkpoints.rs index a55bbde..a87bba3 100644 --- a/ash/src/extensions/nv/device_diagnostic_checkpoints.rs +++ b/ash/src/extensions/nv/device_diagnostic_checkpoints.rs @@ -17,7 +17,7 @@ impl DeviceDiagnosticCheckpoints { Self { fp } } - #[doc = ""] + /// pub unsafe fn cmd_set_checkpoint( &self, command_buffer: vk::CommandBuffer, @@ -27,7 +27,7 @@ impl DeviceDiagnosticCheckpoints { .cmd_set_checkpoint_nv(command_buffer, p_checkpoint_marker); } - #[doc = ""] + /// pub unsafe fn get_queue_checkpoint_data(&self, queue: vk::Queue) -> Vec { let mut checkpoint_data_count: u32 = 0; self.fp.get_queue_checkpoint_data_nv( diff --git a/ash/src/extensions/nv/mesh_shader.rs b/ash/src/extensions/nv/mesh_shader.rs index 63fb4da..8ff0e26 100755 --- a/ash/src/extensions/nv/mesh_shader.rs +++ b/ash/src/extensions/nv/mesh_shader.rs @@ -16,7 +16,7 @@ impl MeshShader { Self { fp } } - #[doc = ""] + /// pub unsafe fn cmd_draw_mesh_tasks( &self, command_buffer: vk::CommandBuffer, @@ -27,7 +27,7 @@ impl MeshShader { .cmd_draw_mesh_tasks_nv(command_buffer, task_count, first_task); } - #[doc = ""] + /// pub unsafe fn cmd_draw_mesh_tasks_indirect( &self, command_buffer: vk::CommandBuffer, @@ -40,7 +40,7 @@ impl MeshShader { .cmd_draw_mesh_tasks_indirect_nv(command_buffer, buffer, offset, draw_count, stride); } - #[doc = ""] + /// pub unsafe fn cmd_draw_mesh_tasks_indirect_count( &self, command_buffer: vk::CommandBuffer, diff --git a/ash/src/extensions/nv/ray_tracing.rs b/ash/src/extensions/nv/ray_tracing.rs index 1a46f3f..a71c1ec 100755 --- a/ash/src/extensions/nv/ray_tracing.rs +++ b/ash/src/extensions/nv/ray_tracing.rs @@ -32,7 +32,7 @@ impl RayTracing { props_rt } - #[doc = ""] + /// pub unsafe fn create_acceleration_structure( &self, create_info: &vk::AccelerationStructureCreateInfoNV, @@ -49,7 +49,7 @@ impl RayTracing { .result_with_success(accel_struct) } - #[doc = ""] + /// pub unsafe fn destroy_acceleration_structure( &self, accel_struct: vk::AccelerationStructureNV, @@ -62,7 +62,7 @@ impl RayTracing { ); } - #[doc = ""] + /// pub unsafe fn get_acceleration_structure_memory_requirements( &self, info: &vk::AccelerationStructureMemoryRequirementsInfoNV, @@ -76,7 +76,7 @@ impl RayTracing { requirements } - #[doc = ""] + /// pub unsafe fn bind_acceleration_structure_memory( &self, bind_info: &[vk::BindAccelerationStructureMemoryInfoNV], @@ -90,7 +90,7 @@ impl RayTracing { .result() } - #[doc = ""] + /// pub unsafe fn cmd_build_acceleration_structure( &self, command_buffer: vk::CommandBuffer, @@ -116,7 +116,7 @@ impl RayTracing { ); } - #[doc = ""] + /// pub unsafe fn cmd_copy_acceleration_structure( &self, command_buffer: vk::CommandBuffer, @@ -128,7 +128,7 @@ impl RayTracing { .cmd_copy_acceleration_structure_nv(command_buffer, dst, src, mode); } - #[doc = ""] + /// pub unsafe fn cmd_trace_rays( &self, command_buffer: vk::CommandBuffer, @@ -166,7 +166,7 @@ impl RayTracing { ); } - #[doc = ""] + /// pub unsafe fn create_ray_tracing_pipelines( &self, pipeline_cache: vk::PipelineCache, @@ -186,7 +186,7 @@ impl RayTracing { .result_with_success(pipelines) } - #[doc = ""] + /// pub unsafe fn get_ray_tracing_shader_group_handles( &self, pipeline: vk::Pipeline, @@ -206,7 +206,7 @@ impl RayTracing { .result() } - #[doc = ""] + /// pub unsafe fn get_acceleration_structure_handle( &self, accel_struct: vk::AccelerationStructureNV, @@ -223,7 +223,7 @@ impl RayTracing { .result_with_success(handle) } - #[doc = ""] + /// pub unsafe fn cmd_write_acceleration_structures_properties( &self, command_buffer: vk::CommandBuffer, @@ -242,7 +242,7 @@ impl RayTracing { ); } - #[doc = ""] + /// pub unsafe fn compile_deferred(&self, pipeline: vk::Pipeline, shader: u32) -> VkResult<()> { self.fp .compile_deferred_nv(self.handle, pipeline, shader) diff --git a/ash/src/instance.rs b/ash/src/instance.rs index 87064c7..2a9fcd4 100644 --- a/ash/src/instance.rs +++ b/ash/src/instance.rs @@ -6,7 +6,7 @@ use std::mem; use std::os::raw::c_char; use std::ptr; -#[doc = ""] +/// #[derive(Clone)] pub struct Instance { pub(crate) handle: vk::Instance, @@ -59,7 +59,7 @@ impl Instance { .result_with_success(group_count as usize) } - #[doc = ""] + /// /// /// Call [`Self::enumerate_physical_device_groups_len()`] to query the number of elements to pass to `out`. /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. @@ -75,7 +75,7 @@ impl Instance { Ok(()) } - #[doc = ""] + /// pub unsafe fn get_physical_device_features2( &self, physical_device: vk::PhysicalDevice, @@ -85,7 +85,7 @@ impl Instance { .get_physical_device_features2(physical_device, features); } - #[doc = ""] + /// pub unsafe fn get_physical_device_properties2( &self, physical_device: vk::PhysicalDevice, @@ -95,7 +95,7 @@ impl Instance { .get_physical_device_properties2(physical_device, prop); } - #[doc = ""] + /// pub unsafe fn get_physical_device_format_properties2( &self, physical_device: vk::PhysicalDevice, @@ -106,7 +106,7 @@ impl Instance { .get_physical_device_format_properties2(physical_device, format, out); } - #[doc = ""] + /// pub unsafe fn get_physical_device_image_format_properties2( &self, physical_device: vk::PhysicalDevice, @@ -137,7 +137,7 @@ impl Instance { queue_count as usize } - #[doc = ""] + /// /// /// Call [`Self::get_physical_device_queue_family_properties2_len()`] to query the number of elements to pass to `out`. /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. @@ -156,7 +156,7 @@ impl Instance { assert_eq!(count as usize, out.len()); } - #[doc = ""] + /// pub unsafe fn get_physical_device_memory_properties2( &self, physical_device: vk::PhysicalDevice, @@ -183,7 +183,7 @@ impl Instance { format_count as usize } - #[doc = ""] + /// /// /// Call [`Self::get_physical_device_sparse_image_format_properties2_len()`] to query the number of elements to pass to `out`. /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. @@ -204,7 +204,7 @@ impl Instance { assert_eq!(count as usize, out.len()); } - #[doc = ""] + /// pub unsafe fn get_physical_device_external_buffer_properties( &self, physical_device: vk::PhysicalDevice, @@ -219,7 +219,7 @@ impl Instance { ); } - #[doc = ""] + /// pub unsafe fn get_physical_device_external_fence_properties( &self, physical_device: vk::PhysicalDevice, @@ -234,7 +234,7 @@ impl Instance { ); } - #[doc = ""] + /// pub unsafe fn get_physical_device_external_semaphore_properties( &self, physical_device: vk::PhysicalDevice, @@ -257,7 +257,7 @@ impl Instance { &self.instance_fn_1_0 } - #[doc = ""] + /// /// /// # Safety /// In order for the created [`Device`] to be valid for the duration of its @@ -281,7 +281,7 @@ impl Instance { Ok(Device::load(&self.instance_fn_1_0, device)) } - #[doc = ""] + /// pub unsafe fn get_device_proc_addr( &self, device: vk::Device, @@ -290,13 +290,13 @@ impl Instance { self.instance_fn_1_0.get_device_proc_addr(device, p_name) } - #[doc = ""] + /// pub unsafe fn destroy_instance(&self, allocation_callbacks: Option<&vk::AllocationCallbacks>) { self.instance_fn_1_0 .destroy_instance(self.handle(), allocation_callbacks.as_raw_ptr()); } - #[doc = ""] + /// pub unsafe fn get_physical_device_format_properties( &self, physical_device: vk::PhysicalDevice, @@ -311,7 +311,7 @@ impl Instance { format_prop } - #[doc = ""] + /// pub unsafe fn get_physical_device_image_format_properties( &self, physical_device: vk::PhysicalDevice, @@ -335,7 +335,7 @@ impl Instance { .result_with_success(image_format_prop) } - #[doc = ""] + /// pub unsafe fn get_physical_device_memory_properties( &self, physical_device: vk::PhysicalDevice, @@ -346,7 +346,7 @@ impl Instance { memory_prop } - #[doc = ""] + /// pub unsafe fn get_physical_device_properties( &self, physical_device: vk::PhysicalDevice, @@ -357,7 +357,7 @@ impl Instance { prop } - #[doc = ""] + /// pub unsafe fn get_physical_device_queue_family_properties( &self, physical_device: vk::PhysicalDevice, @@ -371,7 +371,7 @@ impl Instance { .unwrap() } - #[doc = ""] + /// pub unsafe fn get_physical_device_features( &self, physical_device: vk::PhysicalDevice, @@ -382,7 +382,7 @@ impl Instance { prop } - #[doc = ""] + /// pub unsafe fn enumerate_physical_devices(&self) -> VkResult> { read_into_uninitialized_vector(|count, data| { self.instance_fn_1_0 @@ -390,7 +390,7 @@ impl Instance { }) } - #[doc = ""] + /// pub unsafe fn enumerate_device_extension_properties( &self, device: vk::PhysicalDevice, @@ -405,7 +405,7 @@ impl Instance { }) } - #[doc = ""] + /// pub unsafe fn enumerate_device_layer_properties( &self, device: vk::PhysicalDevice, @@ -416,7 +416,7 @@ impl Instance { }) } - #[doc = ""] + /// pub unsafe fn get_physical_device_sparse_image_format_properties( &self, physical_device: vk::PhysicalDevice,