| 1 | //! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_acceleration_structure.html> |
| 2 | |
| 3 | use craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::preluderust-analyzer cargo ash 0.38.0+1.3.281 prelude/::*; |
| 4 | use craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/; |
| 5 | use craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::RawPtrrust-analyzer cargo ash 0.38.0+1.3.281 RawPtr#; |
| 6 | use allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/::Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#; |
| 7 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/; |
| 8 | |
| 9 | impl craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/::acceleration_structurerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/::Devicerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device# { |
| 10 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCreateAccelerationStructureKHR.html> |
| 11 | #[inline] |
| 12 | pub unsafe fn create_acceleration_structurerust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]create_acceleration_structure().( |
| 13 | &self, |
| 14 | create_info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureCreateInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureCreateInfoKHR#<'_>, |
| 15 | allocation_callbacks: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AllocationCallbacksrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AllocationCallbacks#<'_>>, |
| 16 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureKHR#> { |
| 17 | let mut accel_struct = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::MaybeUninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/MaybeUninit#::uninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]uninit().(); |
| 18 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..create_acceleration_structure_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#create_acceleration_structure_khr.)( |
| 19 | self.handlerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#handle., |
| 20 | create_info, |
| 21 | allocation_callbacks.as_raw_ptrrust-analyzer cargo ash 0.38.0+1.3.281 impl#[`Option<&'r T>`][`RawPtr<T>`]as_raw_ptr().(), |
| 22 | accel_struct.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), |
| 23 | ) |
| 24 | .assume_init_on_successrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]assume_init_on_success().(accel_struct) |
| 25 | } |
| 26 | |
| 27 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkDestroyAccelerationStructureKHR.html> |
| 28 | #[inline] |
| 29 | pub unsafe fn destroy_acceleration_structurerust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]destroy_acceleration_structure().( |
| 30 | &self, |
| 31 | accel_struct: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureKHR#, |
| 32 | allocation_callbacks: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AllocationCallbacksrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AllocationCallbacks#<'_>>, |
| 33 | ) { |
| 34 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..destroy_acceleration_structure_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#destroy_acceleration_structure_khr.)( |
| 35 | self.handlerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#handle., |
| 36 | accel_struct, |
| 37 | allocation_callbacks.as_raw_ptrrust-analyzer cargo ash 0.38.0+1.3.281 impl#[`Option<&'r T>`][`RawPtr<T>`]as_raw_ptr().(), |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdBuildAccelerationStructuresKHR.html> |
| 42 | #[inline] |
| 43 | pub unsafe fn cmd_build_acceleration_structuresrust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]cmd_build_acceleration_structures().( |
| 44 | &self, |
| 45 | command_buffer: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CommandBufferrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CommandBuffer#, |
| 46 | infos: &[vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureBuildGeometryInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildGeometryInfoKHR#<'_>], |
| 47 | build_range_infos: &[&[vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureBuildRangeInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildRangeInfoKHR#]], |
| 48 | ) { |
| 49 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(infos.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(), build_range_infos.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()); |
| 50 | |
| 51 | let build_range_infos = build_range_infos |
| 52 | .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() |
| 53 | .ziprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#zip().(infos.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().()) |
| 54 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|(range_info, info)| { |
| 55 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(range_info.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(), info.geometry_countrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildGeometryInfoKHR#geometry_count. as usize); |
| 56 | range_info.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().() |
| 57 | }) |
| 58 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>(); |
| 59 | |
| 60 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..cmd_build_acceleration_structures_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#cmd_build_acceleration_structures_khr.)( |
| 61 | command_buffer, |
| 62 | infos.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() as _, |
| 63 | infos.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().(), |
| 64 | build_range_infos.as_ptrrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]as_ptr().(), |
| 65 | ); |
| 66 | } |
| 67 | |
| 68 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdBuildAccelerationStructuresIndirectKHR.html> |
| 69 | #[inline] |
| 70 | pub unsafe fn cmd_build_acceleration_structures_indirectrust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]cmd_build_acceleration_structures_indirect().( |
| 71 | &self, |
| 72 | command_buffer: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CommandBufferrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CommandBuffer#, |
| 73 | infos: &[vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureBuildGeometryInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildGeometryInfoKHR#<'_>], |
| 74 | indirect_device_addresses: &[vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::DeviceAddressrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/DeviceAddress#], |
| 75 | indirect_strides: &[u32], |
| 76 | max_primitive_counts: &[&[u32]], |
| 77 | ) { |
| 78 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(infos.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(), indirect_device_addresses.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()); |
| 79 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(infos.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(), indirect_strides.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()); |
| 80 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(infos.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(), max_primitive_counts.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()); |
| 81 | |
| 82 | let max_primitive_counts = max_primitive_counts |
| 83 | .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() |
| 84 | .ziprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#zip().(infos.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().()) |
| 85 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|(cnt, info)| { |
| 86 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(cnt.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(), info.geometry_countrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildGeometryInfoKHR#geometry_count. as usize); |
| 87 | cnt.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().() |
| 88 | }) |
| 89 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>(); |
| 90 | |
| 91 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..cmd_build_acceleration_structures_indirect_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#cmd_build_acceleration_structures_indirect_khr.)( |
| 92 | command_buffer, |
| 93 | infos.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() as _, |
| 94 | infos.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().(), |
| 95 | indirect_device_addresses.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().(), |
| 96 | indirect_strides.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().(), |
| 97 | max_primitive_counts.as_ptrrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]as_ptr().(), |
| 98 | ); |
| 99 | } |
| 100 | |
| 101 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkBuildAccelerationStructuresKHR.html> |
| 102 | #[inline] |
| 103 | pub unsafe fn build_acceleration_structuresrust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]build_acceleration_structures().( |
| 104 | &self, |
| 105 | deferred_operation: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::DeferredOperationKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/DeferredOperationKHR#, |
| 106 | infos: &[vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureBuildGeometryInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildGeometryInfoKHR#<'_>], |
| 107 | build_range_infos: &[&[vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureBuildRangeInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildRangeInfoKHR#]], |
| 108 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<()> { |
| 109 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(infos.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(), build_range_infos.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()); |
| 110 | |
| 111 | let build_range_infos = build_range_infos |
| 112 | .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() |
| 113 | .ziprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#zip().(infos.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().()) |
| 114 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|(range_info, info)| { |
| 115 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(range_info.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(), info.geometry_countrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildGeometryInfoKHR#geometry_count. as usize); |
| 116 | range_info.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().() |
| 117 | }) |
| 118 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>(); |
| 119 | |
| 120 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..build_acceleration_structures_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#build_acceleration_structures_khr.)( |
| 121 | self.handlerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#handle., |
| 122 | deferred_operation, |
| 123 | infos.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() as _, |
| 124 | infos.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().(), |
| 125 | build_range_infos.as_ptrrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]as_ptr().(), |
| 126 | ) |
| 127 | .resultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]result().() |
| 128 | } |
| 129 | |
| 130 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCopyAccelerationStructureKHR.html> |
| 131 | #[inline] |
| 132 | pub unsafe fn copy_acceleration_structurerust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]copy_acceleration_structure().( |
| 133 | &self, |
| 134 | deferred_operation: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::DeferredOperationKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/DeferredOperationKHR#, |
| 135 | info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CopyAccelerationStructureInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CopyAccelerationStructureInfoKHR#<'_>, |
| 136 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<()> { |
| 137 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..copy_acceleration_structure_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#copy_acceleration_structure_khr.)(self.handlerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#handle., deferred_operation, info).resultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]result().() |
| 138 | } |
| 139 | |
| 140 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCopyAccelerationStructureToMemoryKHR.html> |
| 141 | #[inline] |
| 142 | pub unsafe fn copy_acceleration_structure_to_memoryrust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]copy_acceleration_structure_to_memory().( |
| 143 | &self, |
| 144 | deferred_operation: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::DeferredOperationKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/DeferredOperationKHR#, |
| 145 | info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CopyAccelerationStructureToMemoryInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CopyAccelerationStructureToMemoryInfoKHR#<'_>, |
| 146 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<()> { |
| 147 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..copy_acceleration_structure_to_memory_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#copy_acceleration_structure_to_memory_khr.)(self.handlerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#handle., deferred_operation, info) |
| 148 | .resultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]result().() |
| 149 | } |
| 150 | |
| 151 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCopyMemoryToAccelerationStructureKHR.html> |
| 152 | #[inline] |
| 153 | pub unsafe fn copy_memory_to_acceleration_structurerust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]copy_memory_to_acceleration_structure().( |
| 154 | &self, |
| 155 | deferred_operation: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::DeferredOperationKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/DeferredOperationKHR#, |
| 156 | info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CopyMemoryToAccelerationStructureInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CopyMemoryToAccelerationStructureInfoKHR#<'_>, |
| 157 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<()> { |
| 158 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..copy_memory_to_acceleration_structure_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#copy_memory_to_acceleration_structure_khr.)(self.handlerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#handle., deferred_operation, info) |
| 159 | .resultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]result().() |
| 160 | } |
| 161 | |
| 162 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkWriteAccelerationStructuresPropertiesKHR.html> |
| 163 | #[inline] |
| 164 | pub unsafe fn write_acceleration_structures_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]write_acceleration_structures_properties().( |
| 165 | &self, |
| 166 | acceleration_structures: &[vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureKHR#], |
| 167 | query_type: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::QueryTyperust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/QueryType#, |
| 168 | data: &mut [u8], |
| 169 | stride: usize, |
| 170 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<()> { |
| 171 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..write_acceleration_structures_properties_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#write_acceleration_structures_properties_khr.)( |
| 172 | self.handlerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#handle., |
| 173 | acceleration_structures.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() as _, |
| 174 | acceleration_structures.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().(), |
| 175 | query_type, |
| 176 | data.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(), |
| 177 | data.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_mut_ptr().().castrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`]cast().(), |
| 178 | stride, |
| 179 | ) |
| 180 | .resultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]result().() |
| 181 | } |
| 182 | |
| 183 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdCopyAccelerationStructureKHR.html> |
| 184 | #[inline] |
| 185 | pub unsafe fn cmd_copy_acceleration_structurerust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]cmd_copy_acceleration_structure().( |
| 186 | &self, |
| 187 | command_buffer: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CommandBufferrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CommandBuffer#, |
| 188 | info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CopyAccelerationStructureInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CopyAccelerationStructureInfoKHR#<'_>, |
| 189 | ) { |
| 190 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..cmd_copy_acceleration_structure_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#cmd_copy_acceleration_structure_khr.)(command_buffer, info); |
| 191 | } |
| 192 | |
| 193 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdCopyAccelerationStructureToMemoryKHR.html> |
| 194 | #[inline] |
| 195 | pub unsafe fn cmd_copy_acceleration_structure_to_memoryrust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]cmd_copy_acceleration_structure_to_memory().( |
| 196 | &self, |
| 197 | command_buffer: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CommandBufferrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CommandBuffer#, |
| 198 | info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CopyAccelerationStructureToMemoryInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CopyAccelerationStructureToMemoryInfoKHR#<'_>, |
| 199 | ) { |
| 200 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..cmd_copy_acceleration_structure_to_memory_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#cmd_copy_acceleration_structure_to_memory_khr.)(command_buffer, info); |
| 201 | } |
| 202 | |
| 203 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdCopyMemoryToAccelerationStructureKHR.html> |
| 204 | #[inline] |
| 205 | pub unsafe fn cmd_copy_memory_to_acceleration_structurerust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]cmd_copy_memory_to_acceleration_structure().( |
| 206 | &self, |
| 207 | command_buffer: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CommandBufferrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CommandBuffer#, |
| 208 | info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CopyMemoryToAccelerationStructureInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CopyMemoryToAccelerationStructureInfoKHR#<'_>, |
| 209 | ) { |
| 210 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..cmd_copy_memory_to_acceleration_structure_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#cmd_copy_memory_to_acceleration_structure_khr.)(command_buffer, info); |
| 211 | } |
| 212 | |
| 213 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetAccelerationStructureHandleKHR.html> |
| 214 | #[inline] |
| 215 | pub unsafe fn get_acceleration_structure_device_addressrust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]get_acceleration_structure_device_address().( |
| 216 | &self, |
| 217 | info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureDeviceAddressInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureDeviceAddressInfoKHR#<'_>, |
| 218 | ) -> vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::DeviceAddressrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/DeviceAddress# { |
| 219 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..get_acceleration_structure_device_address_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#get_acceleration_structure_device_address_khr.)(self.handlerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#handle., info) |
| 220 | } |
| 221 | |
| 222 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdWriteAccelerationStructuresPropertiesKHR.html> |
| 223 | #[inline] |
| 224 | pub unsafe fn cmd_write_acceleration_structures_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]cmd_write_acceleration_structures_properties().( |
| 225 | &self, |
| 226 | command_buffer: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CommandBufferrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CommandBuffer#, |
| 227 | structures: &[vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureKHR#], |
| 228 | query_type: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::QueryTyperust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/QueryType#, |
| 229 | query_pool: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::QueryPoolrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/QueryPool#, |
| 230 | first_query: u32, |
| 231 | ) { |
| 232 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..cmd_write_acceleration_structures_properties_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#cmd_write_acceleration_structures_properties_khr.)( |
| 233 | command_buffer, |
| 234 | structures.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() as _, |
| 235 | structures.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().(), |
| 236 | query_type, |
| 237 | query_pool, |
| 238 | first_query, |
| 239 | ); |
| 240 | } |
| 241 | |
| 242 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetDeviceAccelerationStructureCompatibilityKHR.html> |
| 243 | #[inline] |
| 244 | pub unsafe fn get_device_acceleration_structure_compatibilityrust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]get_device_acceleration_structure_compatibility().( |
| 245 | &self, |
| 246 | version: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureVersionInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureVersionInfoKHR#<'_>, |
| 247 | ) -> vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureCompatibilityKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/AccelerationStructureCompatibilityKHR# { |
| 248 | let mut compatibility = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::MaybeUninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/MaybeUninit#::uninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]uninit().(); |
| 249 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..get_device_acceleration_structure_compatibility_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#get_device_acceleration_structure_compatibility_khr.)( |
| 250 | self.handlerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#handle., |
| 251 | version, |
| 252 | compatibility.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), |
| 253 | ); |
| 254 | compatibility.assume_initrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]assume_init().() |
| 255 | } |
| 256 | |
| 257 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetAccelerationStructureBuildSizesKHR.html> |
| 258 | #[inline] |
| 259 | pub unsafe fn get_acceleration_structure_build_sizesrust-analyzer cargo ash 0.38.0+1.3.281 extensions/khr/acceleration_structure/impl#[`crate::khr::acceleration_structure::Device`]get_acceleration_structure_build_sizes().( |
| 260 | &self, |
| 261 | build_type: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureBuildTypeKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/AccelerationStructureBuildTypeKHR#, |
| 262 | build_info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureBuildGeometryInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildGeometryInfoKHR#<'_>, |
| 263 | max_primitive_counts: &[u32], |
| 264 | size_info: &mut vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::AccelerationStructureBuildSizesInfoKHRrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildSizesInfoKHR#<'_>, |
| 265 | ) { |
| 266 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(max_primitive_counts.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(), build_info.geometry_countrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/AccelerationStructureBuildGeometryInfoKHR#geometry_count. as _); |
| 267 | |
| 268 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#fp..get_acceleration_structure_build_sizes_khrrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/DeviceFn#get_acceleration_structure_build_sizes_khr.)( |
| 269 | self.handlerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/khr/acceleration_structure/Device#handle., |
| 270 | build_type, |
| 271 | build_info, |
| 272 | max_primitive_counts.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().(), |
| 273 | size_info, |
| 274 | ) |
| 275 | } |
| 276 | } |