| 1 | #[cfg(doc)] |
| 2 | use superrust-analyzer cargo ash 0.38.0+1.3.281 crate/::Entryrust-analyzer cargo ash 0.38.0+1.3.281 entry/Entry#; |
| 3 | use craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::devicerust-analyzer cargo ash 0.38.0+1.3.281 device/::Devicerust-analyzer cargo ash 0.38.0+1.3.281 device/Device#; |
| 4 | use craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::preluderust-analyzer cargo ash 0.38.0+1.3.281 prelude/::*; |
| 5 | use craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/; |
| 6 | use craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::RawPtrrust-analyzer cargo ash 0.38.0+1.3.281 RawPtr#; |
| 7 | 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#; |
| 8 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::ffirust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/; |
| 9 | 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/; |
| 10 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/; |
| 11 | |
| 12 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkInstance.html> |
| 13 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 14 | pub struct Instancerust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance# { |
| 15 | pub(craterust-analyzer cargo ash 0.38.0+1.3.281 crate/) handlerust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#handle.: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Instancerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/Instance#, |
| 16 | |
| 17 | pub(craterust-analyzer cargo ash 0.38.0+1.3.281 crate/) instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0.: craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_0rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#, |
| 18 | pub(craterust-analyzer cargo ash 0.38.0+1.3.281 crate/) instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1.: craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_1rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#, |
| 19 | pub(craterust-analyzer cargo ash 0.38.0+1.3.281 crate/) instance_fn_1_3rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_3.: craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_3rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_3#, |
| 20 | } |
| 21 | |
| 22 | impl Instancerust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance# { |
| 23 | pub unsafe fn loadrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]load().(static_fn: &craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::StaticFnrust-analyzer cargo ash 0.38.0+1.3.281 tables/StaticFn#, instance: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Instancerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/Instance#) -> Selfrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance] { |
| 24 | Selfrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]::load_withrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]load_with().( |
| 25 | |name| memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().((static_fn.get_instance_proc_addrrust-analyzer cargo ash 0.38.0+1.3.281 tables/StaticFn#get_instance_proc_addr.)(instance, name.as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_str/impl#[CStr]as_ptr().())), |
| 26 | instance, |
| 27 | ) |
| 28 | } |
| 29 | |
| 30 | pub unsafe fn load_withrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]load_with().( |
| 31 | mut load_fn: impl FnMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/function/FnMut#(&ffirust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/::CStrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_str/CStr#) -> *const ffirust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/::c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#, |
| 32 | instance: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Instancerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/Instance#, |
| 33 | ) -> Selfrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance] { |
| 34 | Selfrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]::from_parts_1_3rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]from_parts_1_3().( |
| 35 | instance, |
| 36 | craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_0rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#::loadrust-analyzer cargo ash 0.38.0+1.3.281 tables/impl#[InstanceFnV1_0]load().(&mut load_fn), |
| 37 | craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_1rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#::loadrust-analyzer cargo ash 0.38.0+1.3.281 tables/impl#[InstanceFnV1_1]load().(&mut load_fn), |
| 38 | craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_3rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_3#::loadrust-analyzer cargo ash 0.38.0+1.3.281 tables/impl#[InstanceFnV1_3]load().(&mut load_fn), |
| 39 | ) |
| 40 | } |
| 41 | |
| 42 | #[inline] |
| 43 | pub fn from_parts_1_3rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]from_parts_1_3().( |
| 44 | handle: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Instancerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/Instance#, |
| 45 | instance_fn_1_0: craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_0rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#, |
| 46 | instance_fn_1_1: craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_1rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#, |
| 47 | instance_fn_1_3: craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_3rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_3#, |
| 48 | ) -> Selfrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance] { |
| 49 | Selfrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance] { |
| 50 | handlerust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#handle., |
| 51 | |
| 52 | instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0., |
| 53 | instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1., |
| 54 | instance_fn_1_3rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_3., |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | #[inline] |
| 59 | pub fn handlerust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]handle().(&self) -> vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Instancerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/Instance# { |
| 60 | self.handlerust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#handle. |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | /// Vulkan core 1.3 |
| 65 | impl Instancerust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance# { |
| 66 | #[inline] |
| 67 | pub fn fp_v1_3rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]fp_v1_3().(&self) -> &craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_3rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_3# { |
| 68 | &self.instance_fn_1_3rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_3. |
| 69 | } |
| 70 | |
| 71 | /// Retrieve the number of elements to pass to [`get_physical_device_tool_properties()`][Self::get_physical_device_tool_properties()] |
| 72 | #[inline] |
| 73 | pub unsafe fn get_physical_device_tool_properties_lenrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_tool_properties_len().( |
| 74 | &self, |
| 75 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 76 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<usize> { |
| 77 | let mut count = 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().(); |
| 78 | (self.instance_fn_1_3rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_3..get_physical_device_tool_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_3#get_physical_device_tool_properties.)( |
| 79 | physical_device, |
| 80 | count.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), |
| 81 | ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::null_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/null_mut().(), |
| 82 | ) |
| 83 | .assume_init_on_successrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]assume_init_on_success().(count) |
| 84 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(|c| c as usize) |
| 85 | } |
| 86 | |
| 87 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceToolProperties.html> |
| 88 | /// |
| 89 | /// Call [`get_physical_device_tool_properties_len()`][Self::get_physical_device_tool_properties_len()] to query the number of elements to pass to `out`. |
| 90 | /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. |
| 91 | #[inline] |
| 92 | pub unsafe fn get_physical_device_tool_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_tool_properties().( |
| 93 | &self, |
| 94 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 95 | out: &mut [vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceToolPropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceToolProperties#<'_>], |
| 96 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<()> { |
| 97 | let mut count = out.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() as u32; |
| 98 | (self.instance_fn_1_3rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_3..get_physical_device_tool_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_3#get_physical_device_tool_properties.)( |
| 99 | physical_device, |
| 100 | &mut count, |
| 101 | out.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_mut_ptr().(), |
| 102 | ) |
| 103 | .resultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]result().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 104 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(count as usize, out.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()); |
| 105 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()) |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | /// Vulkan core 1.1 |
| 110 | impl Instancerust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance# { |
| 111 | #[inline] |
| 112 | pub fn fp_v1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]fp_v1_1().(&self) -> &craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_1rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1# { |
| 113 | &self.instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1. |
| 114 | } |
| 115 | |
| 116 | /// Retrieve the number of elements to pass to [`enumerate_physical_device_groups()`][Self::enumerate_physical_device_groups()] |
| 117 | #[inline] |
| 118 | pub unsafe fn enumerate_physical_device_groups_lenrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]enumerate_physical_device_groups_len().(&self) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<usize> { |
| 119 | let mut group_count = 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().(); |
| 120 | (self.instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1..enumerate_physical_device_groupsrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#enumerate_physical_device_groups.)( |
| 121 | self.handlerust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]handle().(), |
| 122 | group_count.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), |
| 123 | ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::null_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/null_mut().(), |
| 124 | ) |
| 125 | .assume_init_on_successrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]assume_init_on_success().(group_count) |
| 126 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(|c| c as usize) |
| 127 | } |
| 128 | |
| 129 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkEnumeratePhysicalDeviceGroups.html> |
| 130 | /// |
| 131 | /// Call [`enumerate_physical_device_groups_len()`][Self::enumerate_physical_device_groups_len()] to query the number of elements to pass to `out`. |
| 132 | /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. |
| 133 | #[inline] |
| 134 | pub unsafe fn enumerate_physical_device_groupsrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]enumerate_physical_device_groups().( |
| 135 | &self, |
| 136 | out: &mut [vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceGroupPropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceGroupProperties#<'_>], |
| 137 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<()> { |
| 138 | let mut count = out.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() as u32; |
| 139 | (self.instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1..enumerate_physical_device_groupsrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#enumerate_physical_device_groups.)( |
| 140 | self.handlerust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]handle().(), |
| 141 | &mut count, |
| 142 | out.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_mut_ptr().(), |
| 143 | ) |
| 144 | .resultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]result().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 145 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(count as usize, out.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()); |
| 146 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()) |
| 147 | } |
| 148 | |
| 149 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceFeatures2.html> |
| 150 | #[inline] |
| 151 | pub unsafe fn get_physical_device_features2rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_features2().( |
| 152 | &self, |
| 153 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 154 | features: &mut vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceFeatures2rust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceFeatures2#<'_>, |
| 155 | ) { |
| 156 | (self.instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1..get_physical_device_features2rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_features2.)(physical_device, features); |
| 157 | } |
| 158 | |
| 159 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceProperties2.html> |
| 160 | #[inline] |
| 161 | pub unsafe fn get_physical_device_properties2rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_properties2().( |
| 162 | &self, |
| 163 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 164 | prop: &mut vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceProperties2rust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceProperties2#<'_>, |
| 165 | ) { |
| 166 | (self.instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1..get_physical_device_properties2rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_properties2.)(physical_device, prop); |
| 167 | } |
| 168 | |
| 169 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceFormatProperties2.html> |
| 170 | #[inline] |
| 171 | pub unsafe fn get_physical_device_format_properties2rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_format_properties2().( |
| 172 | &self, |
| 173 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 174 | format: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Formatrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/Format#, |
| 175 | out: &mut vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::FormatProperties2rust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/FormatProperties2#<'_>, |
| 176 | ) { |
| 177 | (self.instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1..get_physical_device_format_properties2rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_format_properties2.)(physical_device, format, out); |
| 178 | } |
| 179 | |
| 180 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceImageFormatProperties2.html> |
| 181 | #[inline] |
| 182 | pub unsafe fn get_physical_device_image_format_properties2rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_image_format_properties2().( |
| 183 | &self, |
| 184 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 185 | format_info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceImageFormatInfo2rust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceImageFormatInfo2#<'_>, |
| 186 | image_format_prop: &mut vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ImageFormatProperties2rust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/ImageFormatProperties2#<'_>, |
| 187 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<()> { |
| 188 | (self |
| 189 | .instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1. |
| 190 | .get_physical_device_image_format_properties2rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_image_format_properties2.)( |
| 191 | physical_device, |
| 192 | format_info, |
| 193 | image_format_prop, |
| 194 | ) |
| 195 | .resultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]result().() |
| 196 | } |
| 197 | |
| 198 | /// Retrieve the number of elements to pass to [`get_physical_device_queue_family_properties2()`][Self::get_physical_device_queue_family_properties2()] |
| 199 | #[inline] |
| 200 | pub unsafe fn get_physical_device_queue_family_properties2_lenrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_queue_family_properties2_len().( |
| 201 | &self, |
| 202 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 203 | ) -> usize { |
| 204 | let mut queue_count = 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().(); |
| 205 | (self |
| 206 | .instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1. |
| 207 | .get_physical_device_queue_family_properties2rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_queue_family_properties2.)( |
| 208 | physical_device, |
| 209 | queue_count.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), |
| 210 | ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::null_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/null_mut().(), |
| 211 | ); |
| 212 | queue_count.assume_initrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]assume_init().() as usize |
| 213 | } |
| 214 | |
| 215 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html> |
| 216 | /// |
| 217 | /// Call [`get_physical_device_queue_family_properties2_len()`][Self::get_physical_device_queue_family_properties2_len()] to query the number of elements to pass to `out`. |
| 218 | /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. |
| 219 | #[inline] |
| 220 | pub unsafe fn get_physical_device_queue_family_properties2rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_queue_family_properties2().( |
| 221 | &self, |
| 222 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 223 | out: &mut [vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::QueueFamilyProperties2rust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/QueueFamilyProperties2#<'_>], |
| 224 | ) { |
| 225 | let mut count = out.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() as u32; |
| 226 | (self |
| 227 | .instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1. |
| 228 | .get_physical_device_queue_family_properties2rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_queue_family_properties2.)( |
| 229 | physical_device, |
| 230 | &mut count, |
| 231 | out.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_mut_ptr().(), |
| 232 | ); |
| 233 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(count as usize, out.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()); |
| 234 | } |
| 235 | |
| 236 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceMemoryProperties2.html> |
| 237 | #[inline] |
| 238 | pub unsafe fn get_physical_device_memory_properties2rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_memory_properties2().( |
| 239 | &self, |
| 240 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 241 | out: &mut vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceMemoryProperties2rust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceMemoryProperties2#<'_>, |
| 242 | ) { |
| 243 | (self.instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1..get_physical_device_memory_properties2rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_memory_properties2.)(physical_device, out); |
| 244 | } |
| 245 | |
| 246 | /// Retrieve the number of elements to pass to [`get_physical_device_sparse_image_format_properties2()`][Self::get_physical_device_sparse_image_format_properties2()] |
| 247 | #[inline] |
| 248 | pub unsafe fn get_physical_device_sparse_image_format_properties2_lenrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_sparse_image_format_properties2_len().( |
| 249 | &self, |
| 250 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 251 | format_info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceSparseImageFormatInfo2rust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceSparseImageFormatInfo2#<'_>, |
| 252 | ) -> usize { |
| 253 | let mut format_count = 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().(); |
| 254 | (self |
| 255 | .instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1. |
| 256 | .get_physical_device_sparse_image_format_properties2rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_sparse_image_format_properties2.)( |
| 257 | physical_device, |
| 258 | format_info, |
| 259 | format_count.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), |
| 260 | ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::null_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/null_mut().(), |
| 261 | ); |
| 262 | format_count.assume_initrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]assume_init().() as usize |
| 263 | } |
| 264 | |
| 265 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2.html> |
| 266 | /// |
| 267 | /// Call [`get_physical_device_sparse_image_format_properties2_len()`][Self::get_physical_device_sparse_image_format_properties2_len()] to query the number of elements to pass to `out`. |
| 268 | /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. |
| 269 | #[inline] |
| 270 | pub unsafe fn get_physical_device_sparse_image_format_properties2rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_sparse_image_format_properties2().( |
| 271 | &self, |
| 272 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 273 | format_info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceSparseImageFormatInfo2rust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceSparseImageFormatInfo2#<'_>, |
| 274 | out: &mut [vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::SparseImageFormatProperties2rust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/SparseImageFormatProperties2#<'_>], |
| 275 | ) { |
| 276 | let mut count = out.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() as u32; |
| 277 | (self |
| 278 | .instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1. |
| 279 | .get_physical_device_sparse_image_format_properties2rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_sparse_image_format_properties2.)( |
| 280 | physical_device, |
| 281 | format_info, |
| 282 | &mut count, |
| 283 | out.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_mut_ptr().(), |
| 284 | ); |
| 285 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(count as usize, out.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()); |
| 286 | } |
| 287 | |
| 288 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceExternalBufferProperties.html> |
| 289 | #[inline] |
| 290 | pub unsafe fn get_physical_device_external_buffer_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_external_buffer_properties().( |
| 291 | &self, |
| 292 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 293 | external_buffer_info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceExternalBufferInforust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceExternalBufferInfo#<'_>, |
| 294 | out: &mut vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ExternalBufferPropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/ExternalBufferProperties#<'_>, |
| 295 | ) { |
| 296 | (self |
| 297 | .instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1. |
| 298 | .get_physical_device_external_buffer_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_external_buffer_properties.)( |
| 299 | physical_device, |
| 300 | external_buffer_info, |
| 301 | out, |
| 302 | ); |
| 303 | } |
| 304 | |
| 305 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceExternalFenceProperties.html> |
| 306 | #[inline] |
| 307 | pub unsafe fn get_physical_device_external_fence_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_external_fence_properties().( |
| 308 | &self, |
| 309 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 310 | external_fence_info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceExternalFenceInforust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceExternalFenceInfo#<'_>, |
| 311 | out: &mut vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ExternalFencePropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/ExternalFenceProperties#<'_>, |
| 312 | ) { |
| 313 | (self |
| 314 | .instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1. |
| 315 | .get_physical_device_external_fence_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_external_fence_properties.)( |
| 316 | physical_device, |
| 317 | external_fence_info, |
| 318 | out, |
| 319 | ); |
| 320 | } |
| 321 | |
| 322 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceExternalSemaphoreProperties.html> |
| 323 | #[inline] |
| 324 | pub unsafe fn get_physical_device_external_semaphore_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_external_semaphore_properties().( |
| 325 | &self, |
| 326 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 327 | external_semaphore_info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceExternalSemaphoreInforust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceExternalSemaphoreInfo#<'_>, |
| 328 | out: &mut vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ExternalSemaphorePropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/ExternalSemaphoreProperties#<'_>, |
| 329 | ) { |
| 330 | (self |
| 331 | .instance_fn_1_1rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_1. |
| 332 | .get_physical_device_external_semaphore_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_1#get_physical_device_external_semaphore_properties.)( |
| 333 | physical_device, |
| 334 | external_semaphore_info, |
| 335 | out, |
| 336 | ); |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | /// Vulkan core 1.0 |
| 341 | impl Instancerust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance# { |
| 342 | #[inline] |
| 343 | pub fn fp_v1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]fp_v1_0().(&self) -> &craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::InstanceFnV1_0rust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0# { |
| 344 | &self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0. |
| 345 | } |
| 346 | |
| 347 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCreateDevice.html> |
| 348 | /// |
| 349 | /// # Safety |
| 350 | /// |
| 351 | /// There is a [parent/child relation] between [`Instance`] and the resulting [`Device`]. The |
| 352 | /// application must not [destroy][Instance::destroy_instance()] the parent [`Instance`] object |
| 353 | /// before first [destroying][Device::destroy_device()] the returned [`Device`] child object. |
| 354 | /// [`Device`] does _not_ implement [drop][drop()] semantics and can only be destroyed via |
| 355 | /// [`destroy_device()`][Device::destroy_device()]. |
| 356 | /// |
| 357 | /// See the [`Entry::create_instance()`] documentation for more destruction ordering rules on |
| 358 | /// [`Instance`]. |
| 359 | /// |
| 360 | /// [parent/child relation]: https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#fundamentals-objectmodel-lifetime |
| 361 | #[inline] |
| 362 | pub unsafe fn create_devicerust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]create_device().( |
| 363 | &self, |
| 364 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 365 | create_info: &vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::DeviceCreateInforust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/DeviceCreateInfo#<'_>, |
| 366 | 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#<'_>>, |
| 367 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<Devicerust-analyzer cargo ash 0.38.0+1.3.281 device/Device#> { |
| 368 | let mut device = 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().(); |
| 369 | let device = (self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0..create_devicerust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#create_device.)( |
| 370 | physical_device, |
| 371 | create_info, |
| 372 | allocation_callbacks.as_raw_ptrrust-analyzer cargo ash 0.38.0+1.3.281 impl#[`Option<&'r T>`][`RawPtr<T>`]as_raw_ptr().(), |
| 373 | device.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), |
| 374 | ) |
| 375 | .assume_init_on_successrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]assume_init_on_success().(device)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 376 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Devicerust-analyzer cargo ash 0.38.0+1.3.281 device/Device#::loadrust-analyzer cargo ash 0.38.0+1.3.281 device/impl#[Device]load().(&self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0., device)) |
| 377 | } |
| 378 | |
| 379 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetDeviceProcAddr.html> |
| 380 | #[inline] |
| 381 | pub unsafe fn get_device_proc_addrrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_device_proc_addr().( |
| 382 | &self, |
| 383 | device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Devicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/Device#, |
| 384 | p_name: *const ffirust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/::c_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/primitives/c_char#, |
| 385 | ) -> vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PFN_vkVoidFunctionrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PFN_vkVoidFunction# { |
| 386 | (self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0..get_device_proc_addrrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#get_device_proc_addr.)(device, p_name) |
| 387 | } |
| 388 | |
| 389 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkDestroyInstance.html> |
| 390 | #[inline] |
| 391 | pub unsafe fn destroy_instancerust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]destroy_instance().( |
| 392 | &self, |
| 393 | 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#<'_>>, |
| 394 | ) { |
| 395 | (self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0..destroy_instancerust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#destroy_instance.)(self.handlerust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]handle().(), allocation_callbacks.as_raw_ptrrust-analyzer cargo ash 0.38.0+1.3.281 impl#[`Option<&'r T>`][`RawPtr<T>`]as_raw_ptr().()); |
| 396 | } |
| 397 | |
| 398 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceFormatProperties.html> |
| 399 | #[inline] |
| 400 | pub unsafe fn get_physical_device_format_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_format_properties().( |
| 401 | &self, |
| 402 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 403 | format: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Formatrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/Format#, |
| 404 | ) -> vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::FormatPropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/FormatProperties# { |
| 405 | let mut format_prop = 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().(); |
| 406 | (self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0..get_physical_device_format_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#get_physical_device_format_properties.)( |
| 407 | physical_device, |
| 408 | format, |
| 409 | format_prop.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), |
| 410 | ); |
| 411 | format_prop.assume_initrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]assume_init().() |
| 412 | } |
| 413 | |
| 414 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceImageFormatProperties.html> |
| 415 | #[inline] |
| 416 | pub unsafe fn get_physical_device_image_format_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_image_format_properties().( |
| 417 | &self, |
| 418 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 419 | format: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Formatrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/Format#, |
| 420 | typ: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ImageTyperust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/ImageType#, |
| 421 | tiling: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ImageTilingrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/ImageTiling#, |
| 422 | usage: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ImageUsageFlagsrust-analyzer cargo ash 0.38.0+1.3.281 vk/bitflags/ImageUsageFlags#, |
| 423 | flags: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ImageCreateFlagsrust-analyzer cargo ash 0.38.0+1.3.281 vk/bitflags/ImageCreateFlags#, |
| 424 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ImageFormatPropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/ImageFormatProperties#> { |
| 425 | let mut image_format_prop = 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().(); |
| 426 | (self |
| 427 | .instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0. |
| 428 | .get_physical_device_image_format_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#get_physical_device_image_format_properties.)( |
| 429 | physical_device, |
| 430 | format, |
| 431 | typ, |
| 432 | tiling, |
| 433 | usage, |
| 434 | flags, |
| 435 | image_format_prop.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), |
| 436 | ) |
| 437 | .assume_init_on_successrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]assume_init_on_success().(image_format_prop) |
| 438 | } |
| 439 | |
| 440 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceMemoryProperties.html> |
| 441 | #[inline] |
| 442 | pub unsafe fn get_physical_device_memory_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_memory_properties().( |
| 443 | &self, |
| 444 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 445 | ) -> vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceMemoryPropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceMemoryProperties# { |
| 446 | let mut memory_prop = 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().(); |
| 447 | (self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0..get_physical_device_memory_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#get_physical_device_memory_properties.)( |
| 448 | physical_device, |
| 449 | memory_prop.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), |
| 450 | ); |
| 451 | memory_prop.assume_initrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]assume_init().() |
| 452 | } |
| 453 | |
| 454 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceProperties.html> |
| 455 | #[inline] |
| 456 | pub unsafe fn get_physical_device_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_properties().( |
| 457 | &self, |
| 458 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 459 | ) -> vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicePropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceProperties# { |
| 460 | let mut prop = 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().(); |
| 461 | (self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0..get_physical_device_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#get_physical_device_properties.)(physical_device, prop.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().()); |
| 462 | prop.assume_initrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]assume_init().() |
| 463 | } |
| 464 | |
| 465 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html> |
| 466 | #[inline] |
| 467 | pub unsafe fn get_physical_device_queue_family_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_queue_family_properties().( |
| 468 | &self, |
| 469 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 470 | ) -> Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::QueueFamilyPropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/QueueFamilyProperties#> { |
| 471 | read_into_uninitialized_vectorrust-analyzer cargo ash 0.38.0+1.3.281 prelude/read_into_uninitialized_vector().(|count, data| { |
| 472 | (self |
| 473 | .instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0. |
| 474 | .get_physical_device_queue_family_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#get_physical_device_queue_family_properties.)( |
| 475 | physical_device, count, data |
| 476 | ); |
| 477 | vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Resultrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/Result#::SUCCESSrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/impl#[Result]SUCCESS. |
| 478 | }) |
| 479 | // The closure always returns SUCCESS |
| 480 | .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().() |
| 481 | } |
| 482 | |
| 483 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceFeatures.html> |
| 484 | #[inline] |
| 485 | pub unsafe fn get_physical_device_featuresrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_features().( |
| 486 | &self, |
| 487 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 488 | ) -> vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDeviceFeaturesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDeviceFeatures# { |
| 489 | let mut prop = 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().(); |
| 490 | (self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0..get_physical_device_featuresrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#get_physical_device_features.)(physical_device, prop.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().()); |
| 491 | prop.assume_initrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]assume_init().() |
| 492 | } |
| 493 | |
| 494 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkEnumeratePhysicalDevices.html> |
| 495 | #[inline] |
| 496 | pub unsafe fn enumerate_physical_devicesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]enumerate_physical_devices().(&self) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#>> { |
| 497 | read_into_uninitialized_vectorrust-analyzer cargo ash 0.38.0+1.3.281 prelude/read_into_uninitialized_vector().(|count, data| { |
| 498 | (self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0..enumerate_physical_devicesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#enumerate_physical_devices.)(self.handlerust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]handle().(), count, data) |
| 499 | }) |
| 500 | } |
| 501 | |
| 502 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkEnumerateDeviceExtensionProperties.html> |
| 503 | #[inline] |
| 504 | pub unsafe fn enumerate_device_extension_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]enumerate_device_extension_properties().( |
| 505 | &self, |
| 506 | device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 507 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ExtensionPropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/ExtensionProperties#>> { |
| 508 | read_into_uninitialized_vectorrust-analyzer cargo ash 0.38.0+1.3.281 prelude/read_into_uninitialized_vector().(|count, data| { |
| 509 | (self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0..enumerate_device_extension_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#enumerate_device_extension_properties.)( |
| 510 | device, |
| 511 | ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::nullrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/null().(), |
| 512 | count, |
| 513 | data, |
| 514 | ) |
| 515 | }) |
| 516 | } |
| 517 | |
| 518 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkEnumerateDeviceLayerProperties.html> |
| 519 | #[inline] |
| 520 | pub unsafe fn enumerate_device_layer_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]enumerate_device_layer_properties().( |
| 521 | &self, |
| 522 | device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 523 | ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::LayerPropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/LayerProperties#>> { |
| 524 | read_into_uninitialized_vectorrust-analyzer cargo ash 0.38.0+1.3.281 prelude/read_into_uninitialized_vector().(|count, data| { |
| 525 | (self.instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0..enumerate_device_layer_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#enumerate_device_layer_properties.)(device, count, data) |
| 526 | }) |
| 527 | } |
| 528 | |
| 529 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html> |
| 530 | #[inline] |
| 531 | pub unsafe fn get_physical_device_sparse_image_format_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 instance/impl#[Instance]get_physical_device_sparse_image_format_properties().( |
| 532 | &self, |
| 533 | physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#, |
| 534 | format: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Formatrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/Format#, |
| 535 | typ: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ImageTyperust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/ImageType#, |
| 536 | samples: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::SampleCountFlagsrust-analyzer cargo ash 0.38.0+1.3.281 vk/bitflags/SampleCountFlags#, |
| 537 | usage: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ImageUsageFlagsrust-analyzer cargo ash 0.38.0+1.3.281 vk/bitflags/ImageUsageFlags#, |
| 538 | tiling: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::ImageTilingrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/ImageTiling#, |
| 539 | ) -> Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::SparseImageFormatPropertiesrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/SparseImageFormatProperties#> { |
| 540 | read_into_uninitialized_vectorrust-analyzer cargo ash 0.38.0+1.3.281 prelude/read_into_uninitialized_vector().(|count, data| { |
| 541 | (self |
| 542 | .instance_fn_1_0rust-analyzer cargo ash 0.38.0+1.3.281 instance/Instance#instance_fn_1_0. |
| 543 | .get_physical_device_sparse_image_format_propertiesrust-analyzer cargo ash 0.38.0+1.3.281 tables/InstanceFnV1_0#get_physical_device_sparse_image_format_properties.)( |
| 544 | physical_device, |
| 545 | format, |
| 546 | typ, |
| 547 | samples, |
| 548 | usage, |
| 549 | tiling, |
| 550 | count, |
| 551 | data, |
| 552 | ); |
| 553 | vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Resultrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/Result#::SUCCESSrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/impl#[Result]SUCCESS. |
| 554 | }) |
| 555 | // The closure always returns SUCCESS |
| 556 | .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().() |
| 557 | } |
| 558 | } |