| 1 | #![allow( |
| 2 | clippy::too_many_arguments, |
| 3 | clippy::cognitive_complexity, |
| 4 | clippy::wrong_self_convention, |
| 5 | unused_qualifications |
| 6 | )] |
| 7 | #[macro_use] |
| 8 | mod macrosrust-analyzer cargo ash 0.38.0+1.3.281 vk/macros/; |
| 9 | mod aliasesrust-analyzer cargo ash 0.38.0+1.3.281 vk/aliases/; |
| 10 | pub use aliasesrust-analyzer cargo ash 0.38.0+1.3.281 vk/aliases/::*; |
| 11 | mod bitflagsrust-analyzer cargo ash 0.38.0+1.3.281 vk/bitflags/; |
| 12 | pub use bitflagsrust-analyzer cargo ash 0.38.0+1.3.281 vk/bitflags/::*; |
| 13 | #[cfg(feature = "debug")] |
| 14 | mod const_debugsrust-analyzer cargo ash 0.38.0+1.3.281 vk/const_debugs/; |
| 15 | mod constantsrust-analyzer cargo ash 0.38.0+1.3.281 vk/constants/; |
| 16 | pub use constantsrust-analyzer cargo ash 0.38.0+1.3.281 vk/constants/::*; |
| 17 | mod definitionsrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/; |
| 18 | pub use definitionsrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/::*; |
| 19 | mod enumsrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/; |
| 20 | pub use enumsrust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/::*; |
| 21 | mod extensionsrust-analyzer cargo ash 0.38.0+1.3.281 vk/extensions/; |
| 22 | pub use extensionsrust-analyzer cargo ash 0.38.0+1.3.281 vk/extensions/::*; |
| 23 | mod feature_extensionsrust-analyzer cargo ash 0.38.0+1.3.281 vk/feature_extensions/; |
| 24 | mod featuresrust-analyzer cargo ash 0.38.0+1.3.281 vk/features/; |
| 25 | pub use featuresrust-analyzer cargo ash 0.38.0+1.3.281 vk/features/::*; |
| 26 | mod preluderust-analyzer cargo ash 0.38.0+1.3.281 vk/prelude/; |
| 27 | pub use preluderust-analyzer cargo ash 0.38.0+1.3.281 vk/prelude/::*; |
| 28 | /// Native bindings from Vulkan headers, generated by bindgen |
| 29 | #[allow(clippy::useless_transmute, nonstandard_style)] |
| 30 | pub mod nativerust-analyzer cargo ash 0.38.0+1.3.281 vk/native/; |
| 31 | mod platform_typesrust-analyzer cargo ash 0.38.0+1.3.281 vk/platform_types/; |
| 32 | pub use platform_typesrust-analyzer cargo ash 0.38.0+1.3.281 vk/platform_types/::*; |
| 33 | /// Iterates through the pointer chain. Includes the item that is passed into the function. |
| 34 | /// Stops at the last [`BaseOutStructure`] that has a null [`BaseOutStructure::p_next`] field. |
| 35 | pub(craterust-analyzer cargo ash 0.38.0+1.3.281 crate/) unsafe fn ptr_chain_iterrust-analyzer cargo ash 0.38.0+1.3.281 vk/ptr_chain_iter().<T: ?Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#>( |
| 36 | ptr: &mut T, |
| 37 | ) -> impl Iteratorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#<Itemrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#Item# = *mut BaseOutStructurerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/BaseOutStructure#<'_>> { |
| 38 | let ptr = <*mut T>::castrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`]cast().::<BaseOutStructurerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/BaseOutStructure#<'_>>(ptr); |
| 39 | (0..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFrom#).scanrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#scan().(ptr, |p_ptr, _| { |
| 40 | if p_ptr.is_nullrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`]is_null().() { |
| 41 | return Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#; |
| 42 | } |
| 43 | let n_ptr = (*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#deref().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().p_ptr).p_nextrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/BaseOutStructure#p_next.; |
| 44 | let old = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().p_ptr; |
| 45 | *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().p_ptr = n_ptr; |
| 46 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(old) |
| 47 | }) |
| 48 | } |
| 49 | pub trait Handlerust-analyzer cargo ash 0.38.0+1.3.281 vk/Handle#: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized# { |
| 50 | const TYPErust-analyzer cargo ash 0.38.0+1.3.281 vk/Handle#TYPE.: ObjectTyperust-analyzer cargo ash 0.38.0+1.3.281 vk/enums/ObjectType#; |
| 51 | fn as_rawrust-analyzer cargo ash 0.38.0+1.3.281 vk/Handle#as_raw().(self) -> u64; |
| 52 | fn from_rawrust-analyzer cargo ash 0.38.0+1.3.281 vk/Handle#from_raw().(_: u64) -> Self; |
| 53 | |
| 54 | /// Returns whether the handle is a `NULL` value. |
| 55 | /// |
| 56 | /// # Example |
| 57 | /// |
| 58 | /// ``` |
| 59 | /// # use ash::vk::{Handle, Instance}; |
| 60 | /// let instance = Instance::null(); |
| 61 | /// assert!(instance.is_null()); |
| 62 | /// ``` |
| 63 | fn is_nullrust-analyzer cargo ash 0.38.0+1.3.281 vk/Handle#is_null().(self) -> bool { |
| 64 | self.as_rawrust-analyzer cargo ash 0.38.0+1.3.281 vk/Handle#as_raw().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u64][`PartialEq<Self>`]eq().0 |
| 65 | } |
| 66 | } |