diff --git a/ash/src/allocator.rs b/ash/src/allocator.rs index 3cd1569..1e0f4b0 100644 --- a/ash/src/allocator.rs +++ b/ash/src/allocator.rs @@ -117,4 +117,4 @@ impl VkAllocation for DefaultAllocatorCallback { fn create_allocation_callback() -> Option { None } -} +} \ No newline at end of file diff --git a/ash/src/device.rs b/ash/src/device.rs index a93163f..5684678 100644 --- a/ash/src/device.rs +++ b/ash/src/device.rs @@ -10,6 +10,7 @@ use RawPtr; pub trait DeviceV1_1: DeviceV1_0 { fn fp_v1_1(&self) -> &vk::DeviceFnV1_1; + #[doc = ""] unsafe fn bind_buffer_memory2(&self, bind_infos: &[vk::BindBufferMemoryInfo]) -> VkResult<()> { let err_code = self.fp_v1_1().bind_buffer_memory2( self.handle(), @@ -22,6 +23,7 @@ pub trait DeviceV1_1: DeviceV1_0 { } } + #[doc = ""] unsafe fn bind_image_memory2(&self, bind_infos: &[vk::BindImageMemoryInfo]) -> VkResult<()> { let err_code = self.fp_v1_1().bind_image_memory2( self.handle(), @@ -34,6 +36,7 @@ pub trait DeviceV1_1: DeviceV1_0 { } } + #[doc = ""] unsafe fn get_device_group_peer_memory_features( &self, heap_index: u32, @@ -51,11 +54,13 @@ pub trait DeviceV1_1: DeviceV1_0 { peer_memory_features } + #[doc = ""] unsafe fn cmd_set_device_mask(&self, command_buffer: vk::CommandBuffer, device_mask: u32) { self.fp_v1_1() .cmd_set_device_mask(command_buffer, device_mask); } + #[doc = ""] unsafe fn cmd_dispatch_base( &self, command_buffer: vk::CommandBuffer, @@ -77,6 +82,7 @@ pub trait DeviceV1_1: DeviceV1_0 { ); } + #[doc = ""] unsafe fn get_image_memory_requirements2( &self, info: &vk::ImageMemoryRequirementsInfo2, @@ -86,6 +92,7 @@ pub trait DeviceV1_1: DeviceV1_0 { .get_image_memory_requirements2(self.handle(), info, out); } + #[doc = ""] unsafe fn get_buffer_memory_requirements2( &self, info: &vk::BufferMemoryRequirementsInfo2, @@ -109,6 +116,7 @@ pub trait DeviceV1_1: DeviceV1_0 { count as usize } + #[doc = ""] unsafe fn get_image_sparse_memory_requirements2( &self, info: &vk::ImageSparseMemoryRequirementsInfo2, @@ -123,6 +131,7 @@ pub trait DeviceV1_1: DeviceV1_0 { ); } + #[doc = ""] unsafe fn trim_command_pool( &self, command_pool: vk::CommandPool, @@ -132,6 +141,7 @@ pub trait DeviceV1_1: DeviceV1_0 { .trim_command_pool(self.handle(), command_pool, flags); } + #[doc = ""] unsafe fn create_sampler_ycbcr_conversion( &self, create_info: &vk::SamplerYcbcrConversionCreateInfo, @@ -150,6 +160,7 @@ pub trait DeviceV1_1: DeviceV1_0 { } } + #[doc = ""] unsafe fn destroy_sampler_ycbcr_conversion( &self, ycbcr_conversion: vk::SamplerYcbcrConversion, @@ -162,6 +173,7 @@ pub trait DeviceV1_1: DeviceV1_0 { ); } + #[doc = ""] unsafe fn create_descriptor_update_template( &self, create_info: &vk::DescriptorUpdateTemplateCreateInfo, @@ -180,6 +192,7 @@ pub trait DeviceV1_1: DeviceV1_0 { } } + #[doc = ""] unsafe fn destroy_descriptor_update_template( &self, descriptor_update_template: vk::DescriptorUpdateTemplate, @@ -192,6 +205,7 @@ pub trait DeviceV1_1: DeviceV1_0 { ); } + #[doc = ""] unsafe fn update_descriptor_set_with_template( &self, descriptor_set: vk::DescriptorSet, @@ -206,6 +220,7 @@ pub trait DeviceV1_1: DeviceV1_0 { ); } + #[doc = ""] unsafe fn get_descriptor_set_layout_support( &self, create_info: &vk::DescriptorSetLayoutCreateInfo, @@ -220,11 +235,13 @@ pub trait DeviceV1_1: DeviceV1_0 { pub trait DeviceV1_0 { fn handle(&self) -> vk::Device; fn fp_v1_0(&self) -> &vk::DeviceFnV1_0; + #[doc = ""] unsafe fn destroy_device(&self, allocation_callbacks: Option<&vk::AllocationCallbacks>) { self.fp_v1_0() .destroy_device(self.handle(), allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn destroy_sampler( &self, sampler: vk::Sampler, @@ -234,6 +251,7 @@ pub trait DeviceV1_0 { .destroy_sampler(self.handle(), sampler, allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn free_memory( &self, memory: vk::DeviceMemory, @@ -243,6 +261,7 @@ pub trait DeviceV1_0 { .free_memory(self.handle(), memory, allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn free_command_buffers( &self, command_pool: vk::CommandPool, @@ -256,6 +275,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn create_event( &self, create_info: &vk::EventCreateInfo, @@ -276,6 +296,7 @@ pub trait DeviceV1_0 { /// Returns true if the event was set, and false if the event was reset, otherwise it will /// return the error code. + #[doc = ""] unsafe fn get_event_status(&self, event: vk::Event) -> VkResult { let err_code = self.fp_v1_0().get_event_status(self.handle(), event); match err_code { @@ -285,6 +306,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn set_event(&self, event: vk::Event) -> VkResult<()> { let err_code = self.fp_v1_0().set_event(self.handle(), event); match err_code { @@ -293,6 +315,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn reset_event(&self, event: vk::Event) -> VkResult<()> { let err_code = self.fp_v1_0().reset_event(self.handle(), event); match err_code { @@ -300,6 +323,7 @@ pub trait DeviceV1_0 { _ => Err(err_code), } } + #[doc = ""] unsafe fn cmd_set_event( &self, command_buffer: vk::CommandBuffer, @@ -309,6 +333,7 @@ pub trait DeviceV1_0 { self.fp_v1_0() .cmd_set_event(command_buffer, event, stage_mask); } + #[doc = ""] unsafe fn cmd_reset_event( &self, command_buffer: vk::CommandBuffer, @@ -319,6 +344,7 @@ pub trait DeviceV1_0 { .cmd_reset_event(command_buffer, event, stage_mask); } + #[doc = ""] unsafe fn cmd_wait_events( &self, command_buffer: vk::CommandBuffer, @@ -344,6 +370,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn destroy_fence( &self, fence: vk::Fence, @@ -353,6 +380,7 @@ pub trait DeviceV1_0 { .destroy_fence(self.handle(), fence, allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn destroy_event( &self, event: vk::Event, @@ -362,6 +390,7 @@ pub trait DeviceV1_0 { .destroy_event(self.handle(), event, allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn destroy_image( &self, image: vk::Image, @@ -371,6 +400,7 @@ pub trait DeviceV1_0 { .destroy_image(self.handle(), image, allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn destroy_command_pool( &self, pool: vk::CommandPool, @@ -380,6 +410,7 @@ pub trait DeviceV1_0 { .destroy_command_pool(self.handle(), pool, allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn destroy_image_view( &self, image_view: vk::ImageView, @@ -392,6 +423,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn destroy_render_pass( &self, renderpass: vk::RenderPass, @@ -404,6 +436,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn destroy_framebuffer( &self, framebuffer: vk::Framebuffer, @@ -416,6 +449,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn destroy_pipeline_layout( &self, pipeline_layout: vk::PipelineLayout, @@ -428,6 +462,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn destroy_pipeline_cache( &self, pipeline_cache: vk::PipelineCache, @@ -440,6 +475,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn destroy_buffer( &self, buffer: vk::Buffer, @@ -449,6 +485,7 @@ pub trait DeviceV1_0 { .destroy_buffer(self.handle(), buffer, allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn destroy_shader_module( &self, shader: vk::ShaderModule, @@ -461,6 +498,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn destroy_pipeline( &self, pipeline: vk::Pipeline, @@ -470,6 +508,7 @@ pub trait DeviceV1_0 { .destroy_pipeline(self.handle(), pipeline, allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn destroy_semaphore( &self, semaphore: vk::Semaphore, @@ -482,6 +521,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn destroy_descriptor_pool( &self, pool: vk::DescriptorPool, @@ -494,6 +534,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn destroy_query_pool( &self, pool: vk::QueryPool, @@ -503,6 +544,7 @@ pub trait DeviceV1_0 { .destroy_query_pool(self.handle(), pool, allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn destroy_descriptor_set_layout( &self, layout: vk::DescriptorSetLayout, @@ -515,6 +557,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn free_descriptor_sets( &self, pool: vk::DescriptorPool, @@ -528,6 +571,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn update_descriptor_sets( &self, descriptor_writes: &[vk::WriteDescriptorSet], @@ -542,6 +586,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn create_sampler( &self, create_info: &vk::SamplerCreateInfo, @@ -560,6 +605,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn cmd_blit_image( &self, command_buffer: vk::CommandBuffer, @@ -582,6 +628,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_resolve_image( &self, command_buffer: vk::CommandBuffer, @@ -602,6 +649,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_fill_buffer( &self, command_buffer: vk::CommandBuffer, @@ -614,6 +662,7 @@ pub trait DeviceV1_0 { .cmd_fill_buffer(command_buffer, buffer, offset, size, data); } + #[doc = ""] unsafe fn cmd_update_buffer( &self, command_buffer: vk::CommandBuffer, @@ -630,6 +679,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_copy_buffer( &self, command_buffer: vk::CommandBuffer, @@ -646,6 +696,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_copy_image_to_buffer( &self, command_buffer: vk::CommandBuffer, @@ -664,6 +715,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_copy_buffer_to_image( &self, command_buffer: vk::CommandBuffer, @@ -682,6 +734,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_copy_image( &self, command_buffer: vk::CommandBuffer, @@ -702,6 +755,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn allocate_descriptor_sets( &self, create_info: &vk::DescriptorSetAllocateInfo, @@ -720,6 +774,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_descriptor_set_layout( &self, create_info: &vk::DescriptorSetLayoutCreateInfo, @@ -738,6 +793,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn device_wait_idle(&self) -> VkResult<()> { let err_code = self.fp_v1_0().device_wait_idle(self.handle()); match err_code { @@ -746,6 +802,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_descriptor_pool( &self, create_info: &vk::DescriptorPoolCreateInfo, @@ -764,6 +821,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn reset_descriptor_pool( &self, pool: vk::DescriptorPool, @@ -778,6 +836,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn reset_command_pool( &self, command_pool: vk::CommandPool, @@ -792,6 +851,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn reset_command_buffer( &self, command_buffer: vk::CommandBuffer, @@ -804,6 +864,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn reset_fences(&self, fences: &[vk::Fence]) -> VkResult<()> { let err_code = self.fp_v1_0() @@ -814,6 +875,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn cmd_bind_index_buffer( &self, command_buffer: vk::CommandBuffer, @@ -825,6 +887,7 @@ pub trait DeviceV1_0 { .cmd_bind_index_buffer(command_buffer, buffer, offset, index_type); } + #[doc = ""] unsafe fn cmd_clear_color_image( &self, command_buffer: vk::CommandBuffer, @@ -843,6 +906,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_clear_depth_stencil_image( &self, command_buffer: vk::CommandBuffer, @@ -861,6 +925,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_clear_attachments( &self, command_buffer: vk::CommandBuffer, @@ -876,6 +941,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_draw_indexed( &self, command_buffer: vk::CommandBuffer, @@ -895,6 +961,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_draw_indexed_indirect( &self, command_buffer: vk::CommandBuffer, @@ -912,6 +979,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_execute_commands( &self, primary_command_buffer: vk::CommandBuffer, @@ -924,6 +992,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_bind_descriptor_sets( &self, command_buffer: vk::CommandBuffer, @@ -945,6 +1014,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_copy_query_pool_results( &self, command_buffer: vk::CommandBuffer, @@ -968,6 +1038,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_push_constants( &self, command_buffer: vk::CommandBuffer, @@ -986,6 +1057,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_begin_render_pass( &self, command_buffer: vk::CommandBuffer, @@ -996,6 +1068,7 @@ pub trait DeviceV1_0 { .cmd_begin_render_pass(command_buffer, create_info, contents); } + #[doc = ""] unsafe fn cmd_next_subpass( &self, command_buffer: vk::CommandBuffer, @@ -1004,6 +1077,7 @@ pub trait DeviceV1_0 { self.fp_v1_0().cmd_next_subpass(command_buffer, contents); } + #[doc = ""] unsafe fn cmd_bind_pipeline( &self, command_buffer: vk::CommandBuffer, @@ -1014,6 +1088,7 @@ pub trait DeviceV1_0 { .cmd_bind_pipeline(command_buffer, pipeline_bind_point, pipeline); } + #[doc = ""] unsafe fn cmd_set_scissor( &self, command_buffer: vk::CommandBuffer, @@ -1028,11 +1103,13 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_set_line_width(&self, command_buffer: vk::CommandBuffer, line_width: f32) { self.fp_v1_0() .cmd_set_line_width(command_buffer, line_width); } + #[doc = ""] unsafe fn cmd_bind_vertex_buffers( &self, command_buffer: vk::CommandBuffer, @@ -1050,10 +1127,12 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_end_render_pass(&self, command_buffer: vk::CommandBuffer) { self.fp_v1_0().cmd_end_render_pass(command_buffer); } + #[doc = ""] unsafe fn cmd_draw( &self, command_buffer: vk::CommandBuffer, @@ -1071,6 +1150,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_draw_indirect( &self, command_buffer: vk::CommandBuffer, @@ -1083,6 +1163,7 @@ pub trait DeviceV1_0 { .cmd_draw_indirect(command_buffer, buffer, offset, draw_count, stride); } + #[doc = ""] unsafe fn cmd_dispatch( &self, command_buffer: vk::CommandBuffer, @@ -1094,6 +1175,7 @@ pub trait DeviceV1_0 { .cmd_dispatch(command_buffer, group_count_x, group_count_y, group_count_z); } + #[doc = ""] unsafe fn cmd_dispatch_indirect( &self, command_buffer: vk::CommandBuffer, @@ -1104,6 +1186,7 @@ pub trait DeviceV1_0 { .cmd_dispatch_indirect(command_buffer, buffer, offset); } + #[doc = ""] unsafe fn cmd_set_viewport( &self, command_buffer: vk::CommandBuffer, @@ -1118,6 +1201,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn cmd_set_depth_bias( &self, command_buffer: vk::CommandBuffer, @@ -1129,6 +1213,7 @@ pub trait DeviceV1_0 { .cmd_set_depth_bias(command_buffer, constant_factor, clamp, slope_factor); } + #[doc = ""] unsafe fn cmd_set_blend_constants( &self, command_buffer: vk::CommandBuffer, @@ -1138,6 +1223,7 @@ pub trait DeviceV1_0 { .cmd_set_blend_constants(command_buffer, blend_constants); } + #[doc = ""] unsafe fn cmd_set_depth_bounds( &self, command_buffer: vk::CommandBuffer, @@ -1148,6 +1234,7 @@ pub trait DeviceV1_0 { .cmd_set_depth_bounds(command_buffer, min_depth_bounds, max_depth_bounds); } + #[doc = ""] unsafe fn cmd_set_stencil_compare_mask( &self, command_buffer: vk::CommandBuffer, @@ -1158,6 +1245,7 @@ pub trait DeviceV1_0 { .cmd_set_stencil_compare_mask(command_buffer, face_mask, compare_mask); } + #[doc = ""] unsafe fn cmd_set_stencil_write_mask( &self, command_buffer: vk::CommandBuffer, @@ -1168,6 +1256,7 @@ pub trait DeviceV1_0 { .cmd_set_stencil_write_mask(command_buffer, face_mask, write_mask); } + #[doc = ""] unsafe fn cmd_set_stencil_reference( &self, command_buffer: vk::CommandBuffer, @@ -1178,6 +1267,7 @@ pub trait DeviceV1_0 { .cmd_set_stencil_reference(command_buffer, face_mask, reference); } + #[doc = ""] unsafe fn get_query_pool_results( &self, query_pool: vk::QueryPool, @@ -1213,6 +1303,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn cmd_begin_query( &self, command_buffer: vk::CommandBuffer, @@ -1224,6 +1315,7 @@ pub trait DeviceV1_0 { .cmd_begin_query(command_buffer, query_pool, query, flags); } + #[doc = ""] unsafe fn cmd_end_query( &self, command_buffer: vk::CommandBuffer, @@ -1234,6 +1326,7 @@ pub trait DeviceV1_0 { .cmd_end_query(command_buffer, query_pool, query); } + #[doc = ""] unsafe fn cmd_reset_query_pool( &self, command_buffer: vk::CommandBuffer, @@ -1245,6 +1338,7 @@ pub trait DeviceV1_0 { .cmd_reset_query_pool(command_buffer, pool, first_query, query_count); } + #[doc = ""] unsafe fn cmd_write_timestamp( &self, command_buffer: vk::CommandBuffer, @@ -1256,6 +1350,7 @@ pub trait DeviceV1_0 { .cmd_write_timestamp(command_buffer, pipeline_stage, query_pool, query); } + #[doc = ""] unsafe fn create_semaphore( &self, create_info: &vk::SemaphoreCreateInfo, @@ -1274,6 +1369,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_graphics_pipelines( &self, pipeline_cache: vk::PipelineCache, @@ -1296,6 +1392,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_compute_pipelines( &self, pipeline_cache: vk::PipelineCache, @@ -1318,6 +1415,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_buffer( &self, create_info: &vk::BufferCreateInfo, @@ -1336,6 +1434,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_pipeline_layout( &self, create_info: &vk::PipelineLayoutCreateInfo, @@ -1354,6 +1453,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_pipeline_cache( &self, create_info: &vk::PipelineCacheCreateInfo, @@ -1373,6 +1473,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn get_pipeline_cache_data( &self, pipeline_cache: vk::PipelineCache, @@ -1401,6 +1502,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn map_memory( &self, memory: vk::DeviceMemory, @@ -1418,10 +1520,12 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn unmap_memory(&self, memory: vk::DeviceMemory) { self.fp_v1_0().unmap_memory(self.handle(), memory); } + #[doc = ""] unsafe fn invalidate_mapped_memory_ranges( &self, ranges: &[vk::MappedMemoryRange], @@ -1437,6 +1541,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn flush_mapped_memory_ranges(&self, ranges: &[vk::MappedMemoryRange]) -> VkResult<()> { let err_code = self.fp_v1_0().flush_mapped_memory_ranges( self.handle(), @@ -1449,6 +1554,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_framebuffer( &self, create_info: &vk::FramebufferCreateInfo, @@ -1467,6 +1573,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn get_device_queue(&self, queue_family_index: u32, queue_index: u32) -> vk::Queue { let mut queue = mem::uninitialized(); self.fp_v1_0() @@ -1474,6 +1581,7 @@ pub trait DeviceV1_0 { queue } + #[doc = ""] unsafe fn cmd_pipeline_barrier( &self, command_buffer: vk::CommandBuffer, @@ -1498,6 +1606,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn create_render_pass( &self, create_info: &vk::RenderPassCreateInfo, @@ -1516,6 +1625,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn begin_command_buffer( &self, command_buffer: vk::CommandBuffer, @@ -1530,6 +1640,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn end_command_buffer(&self, command_buffer: vk::CommandBuffer) -> VkResult<()> { let err_code = self.fp_v1_0().end_command_buffer(command_buffer); match err_code { @@ -1538,6 +1649,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn wait_for_fences( &self, fences: &[vk::Fence], @@ -1557,6 +1669,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn get_fence_status(&self, fence: vk::Fence) -> VkResult<()> { let err_code = self.fp_v1_0().get_fence_status(self.handle(), fence); match err_code { @@ -1565,6 +1678,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn queue_wait_idle(&self, queue: vk::Queue) -> VkResult<()> { let err_code = self.fp_v1_0().queue_wait_idle(queue); match err_code { @@ -1573,6 +1687,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn queue_submit( &self, queue: vk::Queue, @@ -1588,6 +1703,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_buffer_view( &self, create_info: &vk::BufferViewCreateInfo, @@ -1606,6 +1722,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn destroy_buffer_view( &self, buffer_view: vk::BufferView, @@ -1618,6 +1735,7 @@ pub trait DeviceV1_0 { ); } + #[doc = ""] unsafe fn create_image_view( &self, create_info: &vk::ImageViewCreateInfo, @@ -1636,6 +1754,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn allocate_command_buffers( &self, create_info: &vk::CommandBufferAllocateInfo, @@ -1653,6 +1772,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_command_pool( &self, create_info: &vk::CommandPoolCreateInfo, @@ -1671,6 +1791,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_query_pool( &self, create_info: &vk::QueryPoolCreateInfo, @@ -1689,6 +1810,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_image( &self, create_info: &vk::ImageCreateInfo, @@ -1707,6 +1829,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn get_image_subresource_layout( &self, image: vk::Image, @@ -1722,6 +1845,7 @@ pub trait DeviceV1_0 { layout } + #[doc = ""] unsafe fn get_image_memory_requirements(&self, image: vk::Image) -> vk::MemoryRequirements { let mut mem_req = mem::uninitialized(); self.fp_v1_0() @@ -1729,6 +1853,7 @@ pub trait DeviceV1_0 { mem_req } + #[doc = ""] unsafe fn get_buffer_memory_requirements(&self, buffer: vk::Buffer) -> vk::MemoryRequirements { let mut mem_req = mem::uninitialized(); self.fp_v1_0() @@ -1736,6 +1861,7 @@ pub trait DeviceV1_0 { mem_req } + #[doc = ""] unsafe fn allocate_memory( &self, create_info: &vk::MemoryAllocateInfo, @@ -1754,6 +1880,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_shader_module( &self, create_info: &vk::ShaderModuleCreateInfo, @@ -1772,6 +1899,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn create_fence( &self, create_info: &vk::FenceCreateInfo, @@ -1790,6 +1918,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn bind_buffer_memory( &self, buffer: vk::Buffer, @@ -1805,6 +1934,7 @@ pub trait DeviceV1_0 { } } + #[doc = ""] unsafe fn bind_image_memory( &self, image: vk::Image, @@ -1821,6 +1951,7 @@ pub trait DeviceV1_0 { } } +#[doc = ""] #[derive(Clone)] pub struct Device { handle: vk::Device, diff --git a/ash/src/entry.rs b/ash/src/entry.rs index 70b4ba4..a8cc875 100644 --- a/ash/src/entry.rs +++ b/ash/src/entry.rs @@ -76,11 +76,14 @@ pub trait EntryV1_0 { type Instance; fn fp_v1_0(&self) -> &vk::EntryFnV1_0; fn static_fn(&self) -> &vk::StaticFn; + #[doc = ""] unsafe fn create_instance( &self, create_info: &vk::InstanceCreateInfo, allocation_callbacks: Option<&vk::AllocationCallbacks>, ) -> Result; + + #[doc = ""] fn enumerate_instance_layer_properties(&self) -> VkResult> { unsafe { let mut num = 0; @@ -98,6 +101,8 @@ pub trait EntryV1_0 { } } } + + #[doc = ""] fn enumerate_instance_extension_properties(&self) -> VkResult> { unsafe { let mut num = 0; @@ -131,6 +136,7 @@ pub trait EntryV1_0 { impl EntryV1_0 for EntryCustom { type Instance = Instance; + #[doc = ""] unsafe fn create_instance( &self, create_info: &vk::InstanceCreateInfo, @@ -159,6 +165,7 @@ impl EntryV1_0 for EntryCustom { pub trait EntryV1_1: EntryV1_0 { fn fp_v1_1(&self) -> &vk::EntryFnV1_1; + #[doc = ""] fn enumerate_instance_version(&self) -> VkResult { unsafe { let mut api_version = 0; diff --git a/ash/src/extensions/ext/debug_marker.rs b/ash/src/extensions/ext/debug_marker.rs index 529c412..11f6ce6 100644 --- a/ash/src/extensions/ext/debug_marker.rs +++ b/ash/src/extensions/ext/debug_marker.rs @@ -24,6 +24,7 @@ impl DebugMarker { vk::ExtDebugMarkerFn::name() } + #[doc = ""] pub unsafe fn debug_marker_set_object_name( &self, device: vk::Device, @@ -38,6 +39,7 @@ impl DebugMarker { } } + #[doc = ""] pub unsafe fn cmd_debug_marker_begin( &self, command_buffer: vk::CommandBuffer, @@ -47,11 +49,13 @@ 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.debug_marker_fn .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 5b44d1a..1d50117 100644 --- a/ash/src/extensions/ext/debug_report.rs +++ b/ash/src/extensions/ext/debug_report.rs @@ -27,6 +27,7 @@ impl DebugReport { vk::ExtDebugReportFn::name() } + #[doc = ""] pub unsafe fn destroy_debug_report_callback( &self, debug: vk::DebugReportCallbackEXT, @@ -39,6 +40,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 bbe5bc2..a8acffd 100644 --- a/ash/src/extensions/ext/debug_utils.rs +++ b/ash/src/extensions/ext/debug_utils.rs @@ -26,6 +26,7 @@ impl DebugUtils { vk::ExtDebugUtilsFn::name() } + #[doc = ""] pub unsafe fn debug_utils_set_object_name( &self, device: vk::Device, @@ -40,6 +41,7 @@ impl DebugUtils { } } + #[doc = ""] pub unsafe fn debug_utils_set_object_tag( &self, device: vk::Device, @@ -54,6 +56,7 @@ impl DebugUtils { } } + #[doc = ""] pub unsafe fn cmd_begin_debug_utils_label( &self, command_buffer: vk::CommandBuffer, @@ -63,11 +66,13 @@ 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.debug_utils_fn .cmd_end_debug_utils_label_ext(command_buffer); } + #[doc = ""] pub unsafe fn cmd_insert_debug_utils_label( &self, command_buffer: vk::CommandBuffer, @@ -77,6 +82,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, @@ -86,10 +92,12 @@ impl DebugUtils { .queue_begin_debug_utils_label_ext(queue, label); } + #[doc = ""] pub unsafe fn queue_end_debug_utils_label(&self, queue: vk::Queue) { self.debug_utils_fn.queue_end_debug_utils_label_ext(queue); } + #[doc = ""] pub unsafe fn queue_insert_debug_utils_label( &self, queue: vk::Queue, @@ -99,6 +107,7 @@ impl DebugUtils { .queue_insert_debug_utils_label_ext(queue, label); } + #[doc = ""] pub unsafe fn create_debug_utils_messenger( &self, create_info: &vk::DebugUtilsMessengerCreateInfoEXT, @@ -117,6 +126,7 @@ impl DebugUtils { } } + #[doc = ""] pub unsafe fn destroy_debug_utils_messenger( &self, messenger: vk::DebugUtilsMessengerEXT, @@ -129,6 +139,7 @@ impl DebugUtils { ); } + #[doc = ""] pub unsafe fn submit_debug_utils_message( &self, instance: vk::Instance, diff --git a/ash/src/extensions/khr/android_surface.rs b/ash/src/extensions/khr/android_surface.rs index 4fa6438..d9d343d 100644 --- a/ash/src/extensions/khr/android_surface.rs +++ b/ash/src/extensions/khr/android_surface.rs @@ -27,6 +27,7 @@ impl AndroidSurface { vk::KhrAndroidSurfaceFn::name() } + #[doc = ""] pub unsafe fn create_android_surface( &self, create_info: &vk::AndroidSurfaceCreateInfoKHR, diff --git a/ash/src/extensions/khr/display_swapchain.rs b/ash/src/extensions/khr/display_swapchain.rs index ca056d1..29c3b5d 100644 --- a/ash/src/extensions/khr/display_swapchain.rs +++ b/ash/src/extensions/khr/display_swapchain.rs @@ -27,6 +27,7 @@ impl DisplaySwapchain { vk::KhrDisplaySwapchainFn::name() } + #[doc = ""] pub unsafe fn create_shared_swapchains( &self, create_infos: &[vk::SwapchainCreateInfoKHR], diff --git a/ash/src/extensions/khr/surface.rs b/ash/src/extensions/khr/surface.rs index 3e0648e..a0ca5ad 100644 --- a/ash/src/extensions/khr/surface.rs +++ b/ash/src/extensions/khr/surface.rs @@ -28,6 +28,7 @@ impl Surface { vk::KhrSurfaceFn::name() } + #[doc = ""] pub unsafe fn get_physical_device_surface_support( &self, physical_device: vk::PhysicalDevice, @@ -44,6 +45,7 @@ impl Surface { b > 0 } + #[doc = ""] pub unsafe fn get_physical_device_surface_present_modes( &self, physical_device: vk::PhysicalDevice, @@ -73,6 +75,7 @@ impl Surface { } } + #[doc = ""] pub unsafe fn get_physical_device_surface_capabilities( &self, physical_device: vk::PhysicalDevice, @@ -92,6 +95,7 @@ impl Surface { } } + #[doc = ""] pub unsafe fn get_physical_device_surface_formats( &self, physical_device: vk::PhysicalDevice, @@ -118,6 +122,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 aedcb8c..ade5d04 100644 --- a/ash/src/extensions/khr/swapchain.rs +++ b/ash/src/extensions/khr/swapchain.rs @@ -28,6 +28,7 @@ impl Swapchain { vk::KhrSwapchainFn::name() } + #[doc = ""] pub unsafe fn destroy_swapchain( &self, swapchain: vk::SwapchainKHR, @@ -41,6 +42,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, @@ -64,6 +66,7 @@ impl Swapchain { } } + #[doc = ""] pub unsafe fn create_swapchain( &self, create_info: &vk::SwapchainCreateInfoKHR, @@ -83,6 +86,7 @@ impl Swapchain { } /// On success, returns whether the swapchain is suboptimal for the surface. + #[doc = ""] pub unsafe fn queue_present( &self, queue: vk::Queue, @@ -96,6 +100,7 @@ impl Swapchain { } } + #[doc = ""] pub unsafe fn get_swapchain_images( &self, swapchain: vk::SwapchainKHR, diff --git a/ash/src/extensions/khr/wayland_surface.rs b/ash/src/extensions/khr/wayland_surface.rs index 5308706..ec5480d 100644 --- a/ash/src/extensions/khr/wayland_surface.rs +++ b/ash/src/extensions/khr/wayland_surface.rs @@ -27,6 +27,7 @@ impl WaylandSurface { vk::KhrWaylandSurfaceFn::name() } + #[doc = ""] pub unsafe fn create_wayland_surface( &self, create_info: &vk::WaylandSurfaceCreateInfoKHR, diff --git a/ash/src/extensions/khr/win32_surface.rs b/ash/src/extensions/khr/win32_surface.rs index e32f046..72ae7ef 100644 --- a/ash/src/extensions/khr/win32_surface.rs +++ b/ash/src/extensions/khr/win32_surface.rs @@ -27,6 +27,7 @@ impl Win32Surface { vk::KhrWin32SurfaceFn::name() } + #[doc = ""] pub unsafe fn create_win32_surface( &self, create_info: &vk::Win32SurfaceCreateInfoKHR, diff --git a/ash/src/extensions/khr/xcb_surface.rs b/ash/src/extensions/khr/xcb_surface.rs index ede5859..dbd05e8 100644 --- a/ash/src/extensions/khr/xcb_surface.rs +++ b/ash/src/extensions/khr/xcb_surface.rs @@ -27,6 +27,7 @@ impl XcbSurface { vk::KhrXcbSurfaceFn::name() } + #[doc = ""] pub unsafe fn create_xcb_surface( &self, create_info: &vk::XcbSurfaceCreateInfoKHR, diff --git a/ash/src/extensions/khr/xlib_surface.rs b/ash/src/extensions/khr/xlib_surface.rs index 32ab541..aed6ca4 100644 --- a/ash/src/extensions/khr/xlib_surface.rs +++ b/ash/src/extensions/khr/xlib_surface.rs @@ -27,6 +27,7 @@ impl XlibSurface { vk::KhrXlibSurfaceFn::name() } + #[doc = ""] pub unsafe fn create_xlib_surface( &self, create_info: &vk::XlibSurfaceCreateInfoKHR, diff --git a/ash/src/extensions/mvk/ios_surface.rs b/ash/src/extensions/mvk/ios_surface.rs index a1ffd93..4aac1c5 100644 --- a/ash/src/extensions/mvk/ios_surface.rs +++ b/ash/src/extensions/mvk/ios_surface.rs @@ -27,6 +27,7 @@ impl IOSSurface { vk::MvkIosSurfaceFn::name() } + #[doc = ""] pub unsafe fn create_ios_surface_mvk( &self, create_info: &vk::IOSSurfaceCreateInfoMVK, diff --git a/ash/src/extensions/mvk/macos_surface.rs b/ash/src/extensions/mvk/macos_surface.rs index 9fc1910..9dbf44b 100644 --- a/ash/src/extensions/mvk/macos_surface.rs +++ b/ash/src/extensions/mvk/macos_surface.rs @@ -27,6 +27,7 @@ impl MacOSSurface { vk::MvkMacosSurfaceFn::name() } + #[doc = ""] pub unsafe fn create_mac_os_surface_mvk( &self, create_info: &vk::MacOSSurfaceCreateInfoMVK, diff --git a/ash/src/extensions/nv/mesh_shader.rs b/ash/src/extensions/nv/mesh_shader.rs index 9e00e6b..c982951 100644 --- a/ash/src/extensions/nv/mesh_shader.rs +++ b/ash/src/extensions/nv/mesh_shader.rs @@ -16,6 +16,7 @@ impl MeshShader { }); MeshShader { mesh_shader_fn } } + #[doc = ""] pub unsafe fn cmd_draw_mesh_tasks( &self, command_buffer: vk::CommandBuffer, @@ -25,6 +26,7 @@ impl MeshShader { self.mesh_shader_fn .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, @@ -41,6 +43,7 @@ impl MeshShader { 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 1cde467..02aa71f 100644 --- a/ash/src/extensions/nv/ray_tracing.rs +++ b/ash/src/extensions/nv/ray_tracing.rs @@ -35,6 +35,7 @@ impl RayTracing { props_rt } + #[doc = ""] pub unsafe fn create_acceleration_structure( &self, create_info: &vk::AccelerationStructureCreateInfoNV, @@ -53,6 +54,7 @@ impl RayTracing { } } + #[doc = ""] pub unsafe fn destroy_acceleration_structure( &self, accel_struct: vk::AccelerationStructureNV, @@ -65,6 +67,7 @@ impl RayTracing { ); } + #[doc = ""] pub unsafe fn get_acceleration_structure_memory_requirements( &self, info: &vk::AccelerationStructureMemoryRequirementsInfoNV, @@ -79,6 +82,7 @@ impl RayTracing { requirements } + #[doc = ""] pub unsafe fn bind_acceleration_structure_memory( &self, bind_info: &[vk::BindAccelerationStructureMemoryInfoNV], @@ -94,6 +98,7 @@ impl RayTracing { } } + #[doc = ""] pub unsafe fn cmd_build_acceleration_structure( &self, command_buffer: vk::CommandBuffer, @@ -119,6 +124,7 @@ impl RayTracing { ); } + #[doc = ""] pub unsafe fn cmd_copy_acceleration_structure( &self, command_buffer: vk::CommandBuffer, @@ -130,6 +136,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, @@ -167,6 +174,7 @@ impl RayTracing { ); } + #[doc = ""] pub unsafe fn create_ray_tracing_pipelines( &self, pipeline_cache: vk::PipelineCache, @@ -188,6 +196,7 @@ impl RayTracing { } } + #[doc = ""] pub unsafe fn get_ray_tracing_shader_group_handles( &self, pipeline: vk::Pipeline, @@ -209,6 +218,7 @@ impl RayTracing { } } + #[doc = ""] pub unsafe fn get_acceleration_structure_handle( &self, accel_struct: vk::AccelerationStructureNV, @@ -227,6 +237,7 @@ impl RayTracing { } } + #[doc = ""] pub unsafe fn cmd_write_acceleration_structures_properties( &self, command_buffer: vk::CommandBuffer, @@ -246,6 +257,7 @@ impl RayTracing { ); } + #[doc = ""] pub unsafe fn compile_deferred(&self, pipeline: vk::Pipeline, shader: u32) -> VkResult<()> { let err_code = self .ray_tracing_fn diff --git a/ash/src/instance.rs b/ash/src/instance.rs index df5146c..4db5ceb 100644 --- a/ash/src/instance.rs +++ b/ash/src/instance.rs @@ -7,6 +7,7 @@ use std::ptr; use vk; use RawPtr; +#[doc = ""] #[derive(Clone)] pub struct Instance { handle: vk::Instance, @@ -32,6 +33,7 @@ impl Instance { impl InstanceV1_0 for Instance { type Device = Device; + #[doc = ""] unsafe fn create_device( &self, physical_device: vk::PhysicalDevice, @@ -79,6 +81,7 @@ pub trait InstanceV1_1: InstanceV1_0 { group_count as usize } + #[doc = ""] fn enumerate_physical_device_groups( &self, out: &mut [vk::PhysicalDeviceGroupProperties], @@ -98,6 +101,7 @@ pub trait InstanceV1_1: InstanceV1_0 { } } + #[doc = ""] unsafe fn get_physical_device_properties2( &self, physical_device: vk::PhysicalDevice, @@ -107,6 +111,7 @@ pub trait InstanceV1_1: InstanceV1_0 { .get_physical_device_properties2(physical_device, prop); } + #[doc = ""] unsafe fn get_physical_device_format_properties2( &self, physical_device: vk::PhysicalDevice, @@ -117,6 +122,7 @@ pub trait InstanceV1_1: InstanceV1_0 { .get_physical_device_format_properties2(physical_device, format, out); } + #[doc = ""] unsafe fn get_physical_device_image_format_properties2( &self, physical_device: vk::PhysicalDevice, @@ -148,6 +154,7 @@ pub trait InstanceV1_1: InstanceV1_0 { queue_count as usize } + #[doc = ""] unsafe fn get_physical_device_queue_family_properties2( &self, physical_device: vk::PhysicalDevice, @@ -161,6 +168,7 @@ pub trait InstanceV1_1: InstanceV1_0 { ); } + #[doc = ""] unsafe fn get_physical_device_memory_properties2( &self, physical_device: vk::PhysicalDevice, @@ -186,6 +194,7 @@ pub trait InstanceV1_1: InstanceV1_0 { format_count as usize } + #[doc = ""] unsafe fn get_physical_device_sparse_image_format_properties2( &self, physical_device: vk::PhysicalDevice, @@ -202,6 +211,7 @@ pub trait InstanceV1_1: InstanceV1_0 { ); } + #[doc = ""] unsafe fn get_physical_device_external_buffer_properties( &self, physical_device: vk::PhysicalDevice, @@ -216,6 +226,7 @@ pub trait InstanceV1_1: InstanceV1_0 { ); } + #[doc = ""] unsafe fn get_physical_device_external_fence_properties( &self, physical_device: vk::PhysicalDevice, @@ -230,6 +241,7 @@ pub trait InstanceV1_1: InstanceV1_0 { ); } + #[doc = ""] unsafe fn get_physical_device_external_semaphore_properties( &self, physical_device: vk::PhysicalDevice, @@ -250,6 +262,7 @@ pub trait InstanceV1_0 { type Device; fn handle(&self) -> vk::Instance; fn fp_v1_0(&self) -> &vk::InstanceFnV1_0; + #[doc = ""] unsafe fn create_device( &self, physical_device: vk::PhysicalDevice, @@ -257,6 +270,7 @@ pub trait InstanceV1_0 { allocation_callbacks: Option<&vk::AllocationCallbacks>, ) -> Result; + #[doc = ""] unsafe fn get_device_proc_addr( &self, device: vk::Device, @@ -265,11 +279,13 @@ pub trait InstanceV1_0 { self.fp_v1_0().get_device_proc_addr(device, p_name) } + #[doc = ""] unsafe fn destroy_instance(&self, allocation_callbacks: Option<&vk::AllocationCallbacks>) { self.fp_v1_0() .destroy_instance(self.handle(), allocation_callbacks.as_raw_ptr()); } + #[doc = ""] unsafe fn get_physical_device_format_properties( &self, physical_device: vk::PhysicalDevice, @@ -284,6 +300,7 @@ pub trait InstanceV1_0 { format_prop } + #[doc = ""] unsafe fn get_physical_device_image_format_properties( &self, physical_device: vk::PhysicalDevice, @@ -310,6 +327,7 @@ pub trait InstanceV1_0 { } } + #[doc = ""] unsafe fn get_physical_device_memory_properties( &self, physical_device: vk::PhysicalDevice, @@ -320,6 +338,7 @@ pub trait InstanceV1_0 { memory_prop } + #[doc = ""] unsafe fn get_physical_device_properties( &self, physical_device: vk::PhysicalDevice, @@ -330,6 +349,7 @@ pub trait InstanceV1_0 { prop } + #[doc = ""] unsafe fn get_physical_device_queue_family_properties( &self, physical_device: vk::PhysicalDevice, @@ -350,6 +370,7 @@ pub trait InstanceV1_0 { queue_families_vec } + #[doc = ""] unsafe fn get_physical_device_features( &self, physical_device: vk::PhysicalDevice, @@ -360,6 +381,7 @@ pub trait InstanceV1_0 { prop } + #[doc = ""] unsafe fn enumerate_physical_devices(&self) -> VkResult> { let mut num = mem::uninitialized(); self.fp_v1_0() @@ -377,6 +399,7 @@ pub trait InstanceV1_0 { } } + #[doc = ""] unsafe fn enumerate_device_extension_properties( &self, device: vk::PhysicalDevice, diff --git a/generator/src/lib.rs b/generator/src/lib.rs index 886548f..06a892d 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -91,16 +91,6 @@ macro_rules! khronos_link ( } ); -pub fn define_khronos_link_macro() -> Tokens { - quote! { - macro_rules! khronos_link ( - ($name:expr) => { - Literal::string(&format!("", name=$name)) - } - ); - } -} - pub fn define_handle_macro() -> Tokens { quote! { #[macro_export] @@ -723,10 +713,6 @@ fn generate_function_pointers<'a>( let names_right = &names; let khronos_links: Vec<_> = raw_names.iter().map(|name| khronos_link!(name)).collect(); - for (name, link) in names.iter().zip(khronos_links.iter()) { - println!("{} {}", name, link); - } - let pfn_commands: Vec<_> = commands .iter() .filter(|cmd| {