diff --git a/README.md b/README.md index 4daa8d2..9413374 100644 --- a/README.md +++ b/README.md @@ -72,15 +72,46 @@ let desc_alloc_info = vk::DescriptorSetAllocateInfo { }; ``` ### Builder pattern + ```Rust -let pipeline_vertex_input_state_create_info = vk::PipelineVertexInputStateCreateInfo::builder() - .vertex_binding_descriptions(&Vertex::binding_descriptions()) - .vertex_attribute_descriptions(&Vertex::attribute_descriptions()).build(); +// We lose all lifetime information when we call `.build()`. Be carefull! +let queue_info = [vk::DeviceQueueCreateInfo::builder() + .queue_family_index(queue_family_index) + .queue_priorities(&priorities) + .build()]; + +// We don't need to call build here because builders implement `Deref`. +let device_create_info = vk::DeviceCreateInfo::builder() + .queue_create_infos(&queue_info) + .enabled_extension_names(&device_extension_names_raw) + .enabled_features(&features); + +let device: Device = instance + .create_device(pdevice, &device_create_info, None) + .unwrap(); ``` -Builders implement `Deref` targeting their corresponding Vulkan struct, so references to builders can be passed directly -to Vulkan functions. This is encouraged as doing so allows Rust to check the lifetimes of captured objects are valid, -whereas calling `build` discards lifetime information, making inadvertent use-after-free errors more likely. +Builders have an explicit lifetime, and are marked as `#[repr(transparent)]`. +```Rust +#[repr(transparent)] +pub struct DeviceCreateInfoBuilder<'a> { + inner: DeviceCreateInfo, + marker: ::std::marker::PhantomData<&'a ()>, +} +impl<'a> DeviceCreateInfoBuilder<'a> { + //... + pub fn queue_create_infos( + mut self, + queue_create_infos: &'a [DeviceQueueCreateInfo], + ) -> DeviceCreateInfoBuilder<'a> {...} + //... +``` + +Every reference has to live as long as the builder itself. Builders implement `Deref` targeting their corresponding Vulkan struct, so references to builders can be passed directly +to Vulkan functions. + +Calling `.build()` will **discard** that lifetime because Vulkan structs use raw pointers internally. This should be avoided as much as possible because this can easily lead to dangling pointers. If `.build()` has to be called, it should be called as late as possible. [Lifetimes of temporaries](https://doc.rust-lang.org/reference/expressions.html#temporary-lifetimes) are extended to the enclosing statement, ensuring they are valid for the duration of a Vulkan call occurring in the same statement. + ### Pointer chains diff --git a/ash/src/vk.rs b/ash/src/vk.rs index ef65913..e40a026 100644 --- a/ash/src/vk.rs +++ b/ash/src/vk.rs @@ -7961,6 +7961,9 @@ impl<'a> Offset2DBuilder<'a> { self.inner.y = y; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> Offset2D { self.inner } @@ -8010,6 +8013,9 @@ impl<'a> Offset3DBuilder<'a> { self.inner.z = z; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> Offset3D { self.inner } @@ -8054,6 +8060,9 @@ impl<'a> Extent2DBuilder<'a> { self.inner.height = height; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> Extent2D { self.inner } @@ -8103,6 +8112,9 @@ impl<'a> Extent3DBuilder<'a> { self.inner.depth = depth; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> Extent3D { self.inner } @@ -8167,6 +8179,9 @@ impl<'a> ViewportBuilder<'a> { self.inner.max_depth = max_depth; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> Viewport { self.inner } @@ -8211,6 +8226,9 @@ impl<'a> Rect2DBuilder<'a> { self.inner.extent = extent; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> Rect2D { self.inner } @@ -8260,6 +8278,9 @@ impl<'a> ClearRectBuilder<'a> { self.inner.layer_count = layer_count; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ClearRect { self.inner } @@ -8314,6 +8335,9 @@ impl<'a> ComponentMappingBuilder<'a> { self.inner.a = a; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ComponentMapping { self.inner } @@ -8437,6 +8461,9 @@ impl<'a> PhysicalDevicePropertiesBuilder<'a> { self.inner.sparse_properties = sparse_properties; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceProperties { self.inner } @@ -8502,6 +8529,9 @@ impl<'a> ExtensionPropertiesBuilder<'a> { self.inner.spec_version = spec_version; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExtensionProperties { self.inner } @@ -8589,6 +8619,9 @@ impl<'a> LayerPropertiesBuilder<'a> { self.inner.description = description; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> LayerProperties { self.inner } @@ -8684,6 +8717,9 @@ impl<'a> ApplicationInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ApplicationInfo { self.inner } @@ -8796,6 +8832,9 @@ impl<'a> AllocationCallbacksBuilder<'a> { self.inner.pfn_internal_free = pfn_internal_free; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AllocationCallbacks { self.inner } @@ -8885,6 +8924,9 @@ impl<'a> DeviceQueueCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceQueueCreateInfo { self.inner } @@ -8998,6 +9040,9 @@ impl<'a> DeviceCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceCreateInfo { self.inner } @@ -9099,6 +9144,9 @@ impl<'a> InstanceCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> InstanceCreateInfo { self.inner } @@ -9159,6 +9207,9 @@ impl<'a> QueueFamilyPropertiesBuilder<'a> { self.inner.min_image_transfer_granularity = min_image_transfer_granularity; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> QueueFamilyProperties { self.inner } @@ -9235,6 +9286,9 @@ impl<'a> PhysicalDeviceMemoryPropertiesBuilder<'a> { self.inner.memory_heaps = memory_heaps; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceMemoryProperties { self.inner } @@ -9309,6 +9363,9 @@ impl<'a> MemoryAllocateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryAllocateInfo { self.inner } @@ -9358,6 +9415,9 @@ impl<'a> MemoryRequirementsBuilder<'a> { self.inner.memory_type_bits = memory_type_bits; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryRequirements { self.inner } @@ -9416,6 +9476,9 @@ impl<'a> SparseImageFormatPropertiesBuilder<'a> { self.inner.flags = flags; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SparseImageFormatProperties { self.inner } @@ -9490,6 +9553,9 @@ impl<'a> SparseImageMemoryRequirementsBuilder<'a> { self.inner.image_mip_tail_stride = image_mip_tail_stride; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SparseImageMemoryRequirements { self.inner } @@ -9534,6 +9600,9 @@ impl<'a> MemoryTypeBuilder<'a> { self.inner.heap_index = heap_index; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryType { self.inner } @@ -9578,6 +9647,9 @@ impl<'a> MemoryHeapBuilder<'a> { self.inner.flags = flags; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryHeap { self.inner } @@ -9658,6 +9730,9 @@ impl<'a> MappedMemoryRangeBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MappedMemoryRange { self.inner } @@ -9716,6 +9791,9 @@ impl<'a> FormatPropertiesBuilder<'a> { self.inner.buffer_features = buffer_features; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> FormatProperties { self.inner } @@ -9781,6 +9859,9 @@ impl<'a> ImageFormatPropertiesBuilder<'a> { self.inner.max_resource_size = max_resource_size; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageFormatProperties { self.inner } @@ -9830,6 +9911,9 @@ impl<'a> DescriptorBufferInfoBuilder<'a> { self.inner.range = range; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorBufferInfo { self.inner } @@ -9879,6 +9963,9 @@ impl<'a> DescriptorImageInfoBuilder<'a> { self.inner.image_layout = image_layout; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorImageInfo { self.inner } @@ -10000,6 +10087,9 @@ impl<'a> WriteDescriptorSetBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> WriteDescriptorSet { self.inner } @@ -10104,6 +10194,9 @@ impl<'a> CopyDescriptorSetBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CopyDescriptorSet { self.inner } @@ -10202,6 +10295,9 @@ impl<'a> BufferCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BufferCreateInfo { self.inner } @@ -10294,6 +10390,9 @@ impl<'a> BufferViewCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BufferViewCreateInfo { self.inner } @@ -10343,6 +10442,9 @@ impl<'a> ImageSubresourceBuilder<'a> { self.inner.array_layer = array_layer; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageSubresource { self.inner } @@ -10400,6 +10502,9 @@ impl<'a> ImageSubresourceLayersBuilder<'a> { self.inner.layer_count = layer_count; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageSubresourceLayers { self.inner } @@ -10462,6 +10567,9 @@ impl<'a> ImageSubresourceRangeBuilder<'a> { self.inner.layer_count = layer_count; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageSubresourceRange { self.inner } @@ -10536,6 +10644,9 @@ impl<'a> MemoryBarrierBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryBarrier { self.inner } @@ -10652,6 +10763,9 @@ impl<'a> BufferMemoryBarrierBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BufferMemoryBarrier { self.inner } @@ -10777,6 +10891,9 @@ impl<'a> ImageMemoryBarrierBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageMemoryBarrier { self.inner } @@ -10917,6 +11034,9 @@ impl<'a> ImageCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageCreateInfo { self.inner } @@ -10976,6 +11096,9 @@ impl<'a> SubresourceLayoutBuilder<'a> { self.inner.depth_pitch = depth_pitch; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SubresourceLayout { self.inner } @@ -11077,6 +11200,9 @@ impl<'a> ImageViewCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageViewCreateInfo { self.inner } @@ -11126,6 +11252,9 @@ impl<'a> BufferCopyBuilder<'a> { self.inner.size = size; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BufferCopy { self.inner } @@ -11185,6 +11314,9 @@ impl<'a> SparseMemoryBindBuilder<'a> { self.inner.flags = flags; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SparseMemoryBind { self.inner } @@ -11252,6 +11384,9 @@ impl<'a> SparseImageMemoryBindBuilder<'a> { self.inner.flags = flags; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SparseImageMemoryBind { self.inner } @@ -11307,6 +11442,9 @@ impl<'a> SparseBufferMemoryBindInfoBuilder<'a> { self.inner.p_binds = binds.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SparseBufferMemoryBindInfo { self.inner } @@ -11365,6 +11503,9 @@ impl<'a> SparseImageOpaqueMemoryBindInfoBuilder<'a> { self.inner.p_binds = binds.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SparseImageOpaqueMemoryBindInfo { self.inner } @@ -11423,6 +11564,9 @@ impl<'a> SparseImageMemoryBindInfoBuilder<'a> { self.inner.p_binds = binds.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SparseImageMemoryBindInfo { self.inner } @@ -11545,6 +11689,9 @@ impl<'a> BindSparseInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BindSparseInfo { self.inner } @@ -11610,6 +11757,9 @@ impl<'a> ImageCopyBuilder<'a> { self.inner.extent = extent; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageCopy { self.inner } @@ -11680,6 +11830,9 @@ impl<'a> ImageBlitBuilder<'a> { self.inner.dst_offsets = dst_offsets; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageBlit { self.inner } @@ -11747,6 +11900,9 @@ impl<'a> BufferImageCopyBuilder<'a> { self.inner.image_extent = image_extent; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BufferImageCopy { self.inner } @@ -11812,6 +11968,9 @@ impl<'a> ImageResolveBuilder<'a> { self.inner.extent = extent; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageResolve { self.inner } @@ -11889,6 +12048,9 @@ impl<'a> ShaderModuleCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ShaderModuleCreateInfo { self.inner } @@ -11972,6 +12134,9 @@ impl<'a> DescriptorSetLayoutBindingBuilder<'a> { self.inner.p_immutable_samplers = immutable_samplers.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorSetLayoutBinding { self.inner } @@ -12055,6 +12220,9 @@ impl<'a> DescriptorSetLayoutCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorSetLayoutCreateInfo { self.inner } @@ -12099,6 +12267,9 @@ impl<'a> DescriptorPoolSizeBuilder<'a> { self.inner.descriptor_count = descriptor_count; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorPoolSize { self.inner } @@ -12188,6 +12359,9 @@ impl<'a> DescriptorPoolCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorPoolCreateInfo { self.inner } @@ -12271,6 +12445,9 @@ impl<'a> DescriptorSetAllocateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorSetAllocateInfo { self.inner } @@ -12320,6 +12497,9 @@ impl<'a> SpecializationMapEntryBuilder<'a> { self.inner.size = size; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SpecializationMapEntry { self.inner } @@ -12381,6 +12561,9 @@ impl<'a> SpecializationInfoBuilder<'a> { self.inner.p_data = data.as_ptr() as *const c_void; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SpecializationInfo { self.inner } @@ -12479,6 +12662,9 @@ impl<'a> PipelineShaderStageCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineShaderStageCreateInfo { self.inner } @@ -12580,6 +12766,9 @@ impl<'a> ComputePipelineCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ComputePipelineCreateInfo { self.inner } @@ -12632,6 +12821,9 @@ impl<'a> VertexInputBindingDescriptionBuilder<'a> { self.inner.input_rate = input_rate; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> VertexInputBindingDescription { self.inner } @@ -12686,6 +12878,9 @@ impl<'a> VertexInputAttributeDescriptionBuilder<'a> { self.inner.offset = offset; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> VertexInputAttributeDescription { self.inner } @@ -12781,6 +12976,9 @@ impl<'a> PipelineVertexInputStateCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineVertexInputStateCreateInfo { self.inner } @@ -12870,6 +13068,9 @@ impl<'a> PipelineInputAssemblyStateCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineInputAssemblyStateCreateInfo { self.inner } @@ -12950,6 +13151,9 @@ impl<'a> PipelineTessellationStateCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineTessellationStateCreateInfo { self.inner } @@ -13059,6 +13263,9 @@ impl<'a> PipelineViewportStateCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineViewportStateCreateInfo { self.inner } @@ -13220,6 +13427,9 @@ impl<'a> PipelineRasterizationStateCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineRasterizationStateCreateInfo { self.inner } @@ -13345,6 +13555,9 @@ impl<'a> PipelineMultisampleStateCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineMultisampleStateCreateInfo { self.inner } @@ -13443,6 +13656,9 @@ impl<'a> PipelineColorBlendAttachmentStateBuilder<'a> { self.inner.color_write_mask = color_write_mask; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineColorBlendAttachmentState { self.inner } @@ -13550,6 +13766,9 @@ impl<'a> PipelineColorBlendStateCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineColorBlendStateCreateInfo { self.inner } @@ -13633,6 +13852,9 @@ impl<'a> PipelineDynamicStateCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineDynamicStateCreateInfo { self.inner } @@ -13702,6 +13924,9 @@ impl<'a> StencilOpStateBuilder<'a> { self.inner.reference = reference; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> StencilOpState { self.inner } @@ -13851,6 +14076,9 @@ impl<'a> PipelineDepthStencilStateCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineDepthStencilStateCreateInfo { self.inner } @@ -14048,6 +14276,9 @@ impl<'a> GraphicsPipelineCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> GraphicsPipelineCreateInfo { self.inner } @@ -14125,6 +14356,9 @@ impl<'a> PipelineCacheCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineCacheCreateInfo { self.inner } @@ -14174,6 +14408,9 @@ impl<'a> PushConstantRangeBuilder<'a> { self.inner.size = size; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PushConstantRange { self.inner } @@ -14269,6 +14506,9 @@ impl<'a> PipelineLayoutCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineLayoutCreateInfo { self.inner } @@ -14439,6 +14679,9 @@ impl<'a> SamplerCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SamplerCreateInfo { self.inner } @@ -14516,6 +14759,9 @@ impl<'a> CommandPoolCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CommandPoolCreateInfo { self.inner } @@ -14602,6 +14848,9 @@ impl<'a> CommandBufferAllocateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CommandBufferAllocateInfo { self.inner } @@ -14715,6 +14964,9 @@ impl<'a> CommandBufferInheritanceInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CommandBufferInheritanceInfo { self.inner } @@ -14792,6 +15044,9 @@ impl<'a> CommandBufferBeginInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CommandBufferBeginInfo { self.inner } @@ -14897,6 +15152,9 @@ impl<'a> RenderPassBeginInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RenderPassBeginInfo { self.inner } @@ -14954,6 +15212,9 @@ impl<'a> ClearDepthStencilValueBuilder<'a> { self.inner.stencil = stencil; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ClearDepthStencilValue { self.inner } @@ -15024,6 +15285,9 @@ impl<'a> ClearAttachmentBuilder<'a> { self.inner.clear_value = clear_value; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ClearAttachment { self.inner } @@ -15112,6 +15376,9 @@ impl<'a> AttachmentDescriptionBuilder<'a> { self.inner.final_layout = final_layout; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AttachmentDescription { self.inner } @@ -15156,6 +15423,9 @@ impl<'a> AttachmentReferenceBuilder<'a> { self.inner.layout = layout; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AttachmentReference { self.inner } @@ -15266,6 +15536,9 @@ impl<'a> SubpassDescriptionBuilder<'a> { self.inner.p_preserve_attachments = preserve_attachments.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SubpassDescription { self.inner } @@ -15344,6 +15617,9 @@ impl<'a> SubpassDependencyBuilder<'a> { self.inner.dependency_flags = dependency_flags; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SubpassDependency { self.inner } @@ -15448,6 +15724,9 @@ impl<'a> RenderPassCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RenderPassCreateInfo { self.inner } @@ -15516,6 +15795,9 @@ impl<'a> EventCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> EventCreateInfo { self.inner } @@ -15584,6 +15866,9 @@ impl<'a> FenceCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> FenceCreateInfo { self.inner } @@ -16021,6 +16306,9 @@ impl<'a> PhysicalDeviceFeaturesBuilder<'a> { self.inner.inherited_queries = inherited_queries.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceFeatures { self.inner } @@ -16096,6 +16384,9 @@ impl<'a> PhysicalDeviceSparsePropertiesBuilder<'a> { self.inner.residency_non_resident_strict = residency_non_resident_strict.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceSparseProperties { self.inner } @@ -17093,6 +17384,9 @@ impl<'a> PhysicalDeviceLimitsBuilder<'a> { self.inner.non_coherent_atom_size = non_coherent_atom_size; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceLimits { self.inner } @@ -17161,6 +17455,9 @@ impl<'a> SemaphoreCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SemaphoreCreateInfo { self.inner } @@ -17250,6 +17547,9 @@ impl<'a> QueryPoolCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> QueryPoolCreateInfo { self.inner } @@ -17351,6 +17651,9 @@ impl<'a> FramebufferCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> FramebufferCreateInfo { self.inner } @@ -17405,6 +17708,9 @@ impl<'a> DrawIndirectCommandBuilder<'a> { self.inner.first_instance = first_instance; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DrawIndirectCommand { self.inner } @@ -17464,6 +17770,9 @@ impl<'a> DrawIndexedIndirectCommandBuilder<'a> { self.inner.first_instance = first_instance; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DrawIndexedIndirectCommand { self.inner } @@ -17513,6 +17822,9 @@ impl<'a> DispatchIndirectCommandBuilder<'a> { self.inner.z = z; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DispatchIndirectCommand { self.inner } @@ -17615,6 +17927,9 @@ impl<'a> SubmitInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SubmitInfo { self.inner } @@ -17712,6 +18027,9 @@ impl<'a> DisplayPropertiesKHRBuilder<'a> { self.inner.persistent_content = persistent_content.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayPropertiesKHR { self.inner } @@ -17762,6 +18080,9 @@ impl<'a> DisplayPlanePropertiesKHRBuilder<'a> { self.inner.current_stack_index = current_stack_index; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayPlanePropertiesKHR { self.inner } @@ -17809,6 +18130,9 @@ impl<'a> DisplayModeParametersKHRBuilder<'a> { self.inner.refresh_rate = refresh_rate; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayModeParametersKHR { self.inner } @@ -17859,6 +18183,9 @@ impl<'a> DisplayModePropertiesKHRBuilder<'a> { self.inner.parameters = parameters; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayModePropertiesKHR { self.inner } @@ -17939,6 +18266,9 @@ impl<'a> DisplayModeCreateInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayModeCreateInfoKHR { self.inner } @@ -18045,6 +18375,9 @@ impl<'a> DisplayPlaneCapabilitiesKHRBuilder<'a> { self.inner.max_dst_extent = max_dst_extent; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayPlaneCapabilitiesKHR { self.inner } @@ -18173,6 +18506,9 @@ impl<'a> DisplaySurfaceCreateInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplaySurfaceCreateInfoKHR { self.inner } @@ -18237,6 +18573,9 @@ impl<'a> DisplayPresentInfoKHRBuilder<'a> { self.inner.persistent = persistent.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayPresentInfoKHR { self.inner } @@ -18342,6 +18681,9 @@ impl<'a> SurfaceCapabilitiesKHRBuilder<'a> { self.inner.supported_usage_flags = supported_usage_flags; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SurfaceCapabilitiesKHR { self.inner } @@ -18419,6 +18761,9 @@ impl<'a> AndroidSurfaceCreateInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AndroidSurfaceCreateInfoKHR { self.inner } @@ -18493,6 +18838,9 @@ impl<'a> ViSurfaceCreateInfoNNBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ViSurfaceCreateInfoNN { self.inner } @@ -18576,6 +18924,9 @@ impl<'a> WaylandSurfaceCreateInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> WaylandSurfaceCreateInfoKHR { self.inner } @@ -18659,6 +19010,9 @@ impl<'a> Win32SurfaceCreateInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> Win32SurfaceCreateInfoKHR { self.inner } @@ -18742,6 +19096,9 @@ impl<'a> XlibSurfaceCreateInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> XlibSurfaceCreateInfoKHR { self.inner } @@ -18825,6 +19182,9 @@ impl<'a> XcbSurfaceCreateInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> XcbSurfaceCreateInfoKHR { self.inner } @@ -18905,6 +19265,9 @@ impl<'a> ImagePipeSurfaceCreateInfoFUCHSIABuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImagePipeSurfaceCreateInfoFUCHSIA { self.inner } @@ -18949,6 +19312,9 @@ impl<'a> SurfaceFormatKHRBuilder<'a> { self.inner.color_space = color_space; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SurfaceFormatKHR { self.inner } @@ -19131,6 +19497,9 @@ impl<'a> SwapchainCreateInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SwapchainCreateInfoKHR { self.inner } @@ -19228,6 +19597,9 @@ impl<'a> PresentInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PresentInfoKHR { self.inner } @@ -19312,6 +19684,9 @@ impl<'a> DebugReportCallbackCreateInfoEXTBuilder<'a> { self.inner.p_user_data = user_data; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DebugReportCallbackCreateInfoEXT { self.inner } @@ -19370,6 +19745,9 @@ impl<'a> ValidationFlagsEXTBuilder<'a> { self.inner.p_disabled_validation_checks = disabled_validation_checks.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ValidationFlagsEXT { self.inner } @@ -19440,6 +19818,9 @@ impl<'a> ValidationFeaturesEXTBuilder<'a> { self.inner.p_disabled_validation_features = disabled_validation_features.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ValidationFeaturesEXT { self.inner } @@ -19501,6 +19882,9 @@ impl<'a> PipelineRasterizationStateRasterizationOrderAMDBuilder<'a> { self.inner.rasterization_order = rasterization_order; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineRasterizationStateRasterizationOrderAMD { self.inner } @@ -19587,6 +19971,9 @@ impl<'a> DebugMarkerObjectNameInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DebugMarkerObjectNameInfoEXT { self.inner } @@ -19679,6 +20066,9 @@ impl<'a> DebugMarkerObjectTagInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DebugMarkerObjectTagInfoEXT { self.inner } @@ -19756,6 +20146,9 @@ impl<'a> DebugMarkerMarkerInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DebugMarkerMarkerInfoEXT { self.inner } @@ -19811,6 +20204,9 @@ impl<'a> DedicatedAllocationImageCreateInfoNVBuilder<'a> { self.inner.dedicated_allocation = dedicated_allocation.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DedicatedAllocationImageCreateInfoNV { self.inner } @@ -19866,6 +20262,9 @@ impl<'a> DedicatedAllocationBufferCreateInfoNVBuilder<'a> { self.inner.dedicated_allocation = dedicated_allocation.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DedicatedAllocationBufferCreateInfoNV { self.inner } @@ -19924,6 +20323,9 @@ impl<'a> DedicatedAllocationMemoryAllocateInfoNVBuilder<'a> { self.inner.buffer = buffer; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DedicatedAllocationMemoryAllocateInfoNV { self.inner } @@ -19990,6 +20392,9 @@ impl<'a> ExternalImageFormatPropertiesNVBuilder<'a> { self.inner.compatible_handle_types = compatible_handle_types; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExternalImageFormatPropertiesNV { self.inner } @@ -20045,6 +20450,9 @@ impl<'a> ExternalMemoryImageCreateInfoNVBuilder<'a> { self.inner.handle_types = handle_types; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExternalMemoryImageCreateInfoNV { self.inner } @@ -20100,6 +20508,9 @@ impl<'a> ExportMemoryAllocateInfoNVBuilder<'a> { self.inner.handle_types = handle_types; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExportMemoryAllocateInfoNV { self.inner } @@ -20161,6 +20572,9 @@ impl<'a> ImportMemoryWin32HandleInfoNVBuilder<'a> { self.inner.handle = handle; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImportMemoryWin32HandleInfoNV { self.inner } @@ -20222,6 +20636,9 @@ impl<'a> ExportMemoryWin32HandleInfoNVBuilder<'a> { self.inner.dw_access = dw_access; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExportMemoryWin32HandleInfoNV { self.inner } @@ -20322,6 +20739,9 @@ impl<'a> Win32KeyedMutexAcquireReleaseInfoNVBuilder<'a> { self.inner.p_release_keys = release_keys.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> Win32KeyedMutexAcquireReleaseInfoNV { self.inner } @@ -20393,6 +20813,9 @@ impl<'a> DeviceGeneratedCommandsFeaturesNVXBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceGeneratedCommandsFeaturesNVX { self.inner } @@ -20504,6 +20927,9 @@ impl<'a> DeviceGeneratedCommandsLimitsNVXBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceGeneratedCommandsLimitsNVX { self.inner } @@ -20556,6 +20982,9 @@ impl<'a> IndirectCommandsTokenNVXBuilder<'a> { self.inner.offset = offset; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> IndirectCommandsTokenNVX { self.inner } @@ -20616,6 +21045,9 @@ impl<'a> IndirectCommandsLayoutTokenNVXBuilder<'a> { self.inner.divisor = divisor; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> IndirectCommandsLayoutTokenNVX { self.inner } @@ -20708,6 +21140,9 @@ impl<'a> IndirectCommandsLayoutCreateInfoNVXBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> IndirectCommandsLayoutCreateInfoNVX { self.inner } @@ -20854,6 +21289,9 @@ impl<'a> CmdProcessCommandsInfoNVXBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CmdProcessCommandsInfoNVX { self.inner } @@ -20943,6 +21381,9 @@ impl<'a> CmdReserveSpaceForCommandsInfoNVXBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CmdReserveSpaceForCommandsInfoNVX { self.inner } @@ -21082,6 +21523,9 @@ impl<'a> ObjectTableCreateInfoNVXBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ObjectTableCreateInfoNVX { self.inner } @@ -21126,6 +21570,9 @@ impl<'a> ObjectTableEntryNVXBuilder<'a> { self.inner.flags = flags; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ObjectTableEntryNVX { self.inner } @@ -21178,6 +21625,9 @@ impl<'a> ObjectTablePipelineEntryNVXBuilder<'a> { self.inner.pipeline = pipeline; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ObjectTablePipelineEntryNVX { self.inner } @@ -21241,6 +21691,9 @@ impl<'a> ObjectTableDescriptorSetEntryNVXBuilder<'a> { self.inner.descriptor_set = descriptor_set; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ObjectTableDescriptorSetEntryNVX { self.inner } @@ -21293,6 +21746,9 @@ impl<'a> ObjectTableVertexBufferEntryNVXBuilder<'a> { self.inner.buffer = buffer; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ObjectTableVertexBufferEntryNVX { self.inner } @@ -21353,6 +21809,9 @@ impl<'a> ObjectTableIndexBufferEntryNVXBuilder<'a> { self.inner.index_type = index_type; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ObjectTableIndexBufferEntryNVX { self.inner } @@ -21416,6 +21875,9 @@ impl<'a> ObjectTablePushConstantEntryNVXBuilder<'a> { self.inner.stage_flags = stage_flags; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ObjectTablePushConstantEntryNVX { self.inner } @@ -21471,6 +21933,9 @@ impl<'a> PhysicalDeviceFeatures2Builder<'a> { self.inner.features = features; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceFeatures2 { self.inner } @@ -21542,6 +22007,9 @@ impl<'a> PhysicalDeviceProperties2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceProperties2 { self.inner } @@ -21613,6 +22081,9 @@ impl<'a> FormatProperties2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> FormatProperties2 { self.inner } @@ -21684,6 +22155,9 @@ impl<'a> ImageFormatProperties2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageFormatProperties2 { self.inner } @@ -21776,6 +22250,9 @@ impl<'a> PhysicalDeviceImageFormatInfo2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceImageFormatInfo2 { self.inner } @@ -21847,6 +22324,9 @@ impl<'a> QueueFamilyProperties2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> QueueFamilyProperties2 { self.inner } @@ -21918,6 +22398,9 @@ impl<'a> PhysicalDeviceMemoryProperties2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceMemoryProperties2 { self.inner } @@ -21989,6 +22472,9 @@ impl<'a> SparseImageFormatProperties2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SparseImageFormatProperties2 { self.inner } @@ -22090,6 +22576,9 @@ impl<'a> PhysicalDeviceSparseImageFormatInfo2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceSparseImageFormatInfo2 { self.inner } @@ -22148,6 +22637,9 @@ impl<'a> PhysicalDevicePushDescriptorPropertiesKHRBuilder<'a> { self.inner.max_push_descriptors = max_push_descriptors; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDevicePushDescriptorPropertiesKHR { self.inner } @@ -22202,6 +22694,9 @@ impl<'a> ConformanceVersionKHRBuilder<'a> { self.inner.patch = patch; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ConformanceVersionKHR { self.inner } @@ -22300,6 +22795,9 @@ impl<'a> PhysicalDeviceDriverPropertiesKHRBuilder<'a> { self.inner.conformance_version = conformance_version; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceDriverPropertiesKHR { self.inner } @@ -22355,6 +22853,9 @@ impl<'a> PresentRegionsKHRBuilder<'a> { self.inner.p_regions = regions.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PresentRegionsKHR { self.inner } @@ -22404,6 +22905,9 @@ impl<'a> PresentRegionKHRBuilder<'a> { self.inner.p_rectangles = rectangles.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PresentRegionKHR { self.inner } @@ -22453,6 +22957,9 @@ impl<'a> RectLayerKHRBuilder<'a> { self.inner.layer = layer; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RectLayerKHR { self.inner } @@ -22517,6 +23024,9 @@ impl<'a> PhysicalDeviceVariablePointerFeaturesBuilder<'a> { self.inner.variable_pointers = variable_pointers.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceVariablePointerFeatures { self.inner } @@ -22575,6 +23085,9 @@ impl<'a> ExternalMemoryPropertiesBuilder<'a> { self.inner.compatible_handle_types = compatible_handle_types; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExternalMemoryProperties { self.inner } @@ -22633,6 +23146,9 @@ impl<'a> PhysicalDeviceExternalImageFormatInfoBuilder<'a> { self.inner.handle_type = handle_type; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceExternalImageFormatInfo { self.inner } @@ -22688,6 +23204,9 @@ impl<'a> ExternalImageFormatPropertiesBuilder<'a> { self.inner.external_memory_properties = external_memory_properties; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExternalImageFormatProperties { self.inner } @@ -22774,6 +23293,9 @@ impl<'a> PhysicalDeviceExternalBufferInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceExternalBufferInfo { self.inner } @@ -22845,6 +23367,9 @@ impl<'a> ExternalBufferPropertiesBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExternalBufferProperties { self.inner } @@ -22936,6 +23461,9 @@ impl<'a> PhysicalDeviceIDPropertiesBuilder<'a> { self.inner.device_luid_valid = device_luid_valid.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceIDProperties { self.inner } @@ -22991,6 +23519,9 @@ impl<'a> ExternalMemoryImageCreateInfoBuilder<'a> { self.inner.handle_types = handle_types; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExternalMemoryImageCreateInfo { self.inner } @@ -23046,6 +23577,9 @@ impl<'a> ExternalMemoryBufferCreateInfoBuilder<'a> { self.inner.handle_types = handle_types; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExternalMemoryBufferCreateInfo { self.inner } @@ -23101,6 +23635,9 @@ impl<'a> ExportMemoryAllocateInfoBuilder<'a> { self.inner.handle_types = handle_types; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExportMemoryAllocateInfo { self.inner } @@ -23168,6 +23705,9 @@ impl<'a> ImportMemoryWin32HandleInfoKHRBuilder<'a> { self.inner.name = name; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImportMemoryWin32HandleInfoKHR { self.inner } @@ -23235,6 +23775,9 @@ impl<'a> ExportMemoryWin32HandleInfoKHRBuilder<'a> { self.inner.name = name; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExportMemoryWin32HandleInfoKHR { self.inner } @@ -23306,6 +23849,9 @@ impl<'a> MemoryWin32HandlePropertiesKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryWin32HandlePropertiesKHR { self.inner } @@ -23383,6 +23929,9 @@ impl<'a> MemoryGetWin32HandleInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryGetWin32HandleInfoKHR { self.inner } @@ -23444,6 +23993,9 @@ impl<'a> ImportMemoryFdInfoKHRBuilder<'a> { self.inner.fd = fd; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImportMemoryFdInfoKHR { self.inner } @@ -23512,6 +24064,9 @@ impl<'a> MemoryFdPropertiesKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryFdPropertiesKHR { self.inner } @@ -23589,6 +24144,9 @@ impl<'a> MemoryGetFdInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryGetFdInfoKHR { self.inner } @@ -23689,6 +24247,9 @@ impl<'a> Win32KeyedMutexAcquireReleaseInfoKHRBuilder<'a> { self.inner.p_release_keys = release_keys.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> Win32KeyedMutexAcquireReleaseInfoKHR { self.inner } @@ -23760,6 +24321,9 @@ impl<'a> PhysicalDeviceExternalSemaphoreInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceExternalSemaphoreInfo { self.inner } @@ -23849,6 +24413,9 @@ impl<'a> ExternalSemaphorePropertiesBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExternalSemaphoreProperties { self.inner } @@ -23904,6 +24471,9 @@ impl<'a> ExportSemaphoreCreateInfoBuilder<'a> { self.inner.handle_types = handle_types; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExportSemaphoreCreateInfo { self.inner } @@ -24005,6 +24575,9 @@ impl<'a> ImportSemaphoreWin32HandleInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImportSemaphoreWin32HandleInfoKHR { self.inner } @@ -24072,6 +24645,9 @@ impl<'a> ExportSemaphoreWin32HandleInfoKHRBuilder<'a> { self.inner.name = name; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExportSemaphoreWin32HandleInfoKHR { self.inner } @@ -24142,6 +24718,9 @@ impl<'a> D3D12FenceSubmitInfoKHRBuilder<'a> { self.inner.p_signal_semaphore_values = signal_semaphore_values.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> D3D12FenceSubmitInfoKHR { self.inner } @@ -24219,6 +24798,9 @@ impl<'a> SemaphoreGetWin32HandleInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SemaphoreGetWin32HandleInfoKHR { self.inner } @@ -24308,6 +24890,9 @@ impl<'a> ImportSemaphoreFdInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImportSemaphoreFdInfoKHR { self.inner } @@ -24385,6 +24970,9 @@ impl<'a> SemaphoreGetFdInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SemaphoreGetFdInfoKHR { self.inner } @@ -24456,6 +25044,9 @@ impl<'a> PhysicalDeviceExternalFenceInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceExternalFenceInfo { self.inner } @@ -24545,6 +25136,9 @@ impl<'a> ExternalFencePropertiesBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExternalFenceProperties { self.inner } @@ -24600,6 +25194,9 @@ impl<'a> ExportFenceCreateInfoBuilder<'a> { self.inner.handle_types = handle_types; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExportFenceCreateInfo { self.inner } @@ -24695,6 +25292,9 @@ impl<'a> ImportFenceWin32HandleInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImportFenceWin32HandleInfoKHR { self.inner } @@ -24762,6 +25362,9 @@ impl<'a> ExportFenceWin32HandleInfoKHRBuilder<'a> { self.inner.name = name; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExportFenceWin32HandleInfoKHR { self.inner } @@ -24839,6 +25442,9 @@ impl<'a> FenceGetWin32HandleInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> FenceGetWin32HandleInfoKHR { self.inner } @@ -24928,6 +25534,9 @@ impl<'a> ImportFenceFdInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImportFenceFdInfoKHR { self.inner } @@ -25005,6 +25614,9 @@ impl<'a> FenceGetFdInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> FenceGetFdInfoKHR { self.inner } @@ -25075,6 +25687,9 @@ impl<'a> PhysicalDeviceMultiviewFeaturesBuilder<'a> { self.inner.multiview_tessellation_shader = multiview_tessellation_shader.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceMultiviewFeatures { self.inner } @@ -25139,6 +25754,9 @@ impl<'a> PhysicalDeviceMultiviewPropertiesBuilder<'a> { self.inner.max_multiview_instance_index = max_multiview_instance_index; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceMultiviewProperties { self.inner } @@ -25218,6 +25836,9 @@ impl<'a> RenderPassMultiviewCreateInfoBuilder<'a> { self.inner.p_correlation_masks = correlation_masks.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RenderPassMultiviewCreateInfo { self.inner } @@ -25373,6 +25994,9 @@ impl<'a> SurfaceCapabilities2EXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SurfaceCapabilities2EXT { self.inner } @@ -25444,6 +26068,9 @@ impl<'a> DisplayPowerInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayPowerInfoEXT { self.inner } @@ -25515,6 +26142,9 @@ impl<'a> DeviceEventInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceEventInfoEXT { self.inner } @@ -25586,6 +26216,9 @@ impl<'a> DisplayEventInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayEventInfoEXT { self.inner } @@ -25641,6 +26274,9 @@ impl<'a> SwapchainCounterCreateInfoEXTBuilder<'a> { self.inner.surface_counters = surface_counters; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SwapchainCounterCreateInfoEXT { self.inner } @@ -25730,6 +26366,9 @@ impl<'a> PhysicalDeviceGroupPropertiesBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceGroupProperties { self.inner } @@ -25788,6 +26427,9 @@ impl<'a> MemoryAllocateFlagsInfoBuilder<'a> { self.inner.device_mask = device_mask; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryAllocateFlagsInfo { self.inner } @@ -25868,6 +26510,9 @@ impl<'a> BindBufferMemoryInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BindBufferMemoryInfo { self.inner } @@ -25926,6 +26571,9 @@ impl<'a> BindBufferMemoryDeviceGroupInfoBuilder<'a> { self.inner.p_device_indices = device_indices.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BindBufferMemoryDeviceGroupInfo { self.inner } @@ -26006,6 +26654,9 @@ impl<'a> BindImageMemoryInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BindImageMemoryInfo { self.inner } @@ -26076,6 +26727,9 @@ impl<'a> BindImageMemoryDeviceGroupInfoBuilder<'a> { self.inner.p_split_instance_bind_regions = split_instance_bind_regions.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BindImageMemoryDeviceGroupInfo { self.inner } @@ -26140,6 +26794,9 @@ impl<'a> DeviceGroupRenderPassBeginInfoBuilder<'a> { self.inner.p_device_render_areas = device_render_areas.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceGroupRenderPassBeginInfo { self.inner } @@ -26192,6 +26849,9 @@ impl<'a> DeviceGroupCommandBufferBeginInfoBuilder<'a> { self.inner.device_mask = device_mask; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceGroupCommandBufferBeginInfo { self.inner } @@ -26274,6 +26934,9 @@ impl<'a> DeviceGroupSubmitInfoBuilder<'a> { self.inner.p_signal_semaphore_device_indices = signal_semaphore_device_indices.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceGroupSubmitInfo { self.inner } @@ -26338,6 +27001,9 @@ impl<'a> DeviceGroupBindSparseInfoBuilder<'a> { self.inner.memory_device_index = memory_device_index; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceGroupBindSparseInfo { self.inner } @@ -26418,6 +27084,9 @@ impl<'a> DeviceGroupPresentCapabilitiesKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceGroupPresentCapabilitiesKHR { self.inner } @@ -26470,6 +27139,9 @@ impl<'a> ImageSwapchainCreateInfoKHRBuilder<'a> { self.inner.swapchain = swapchain; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageSwapchainCreateInfoKHR { self.inner } @@ -26531,6 +27203,9 @@ impl<'a> BindImageMemorySwapchainInfoKHRBuilder<'a> { self.inner.image_index = image_index; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BindImageMemorySwapchainInfoKHR { self.inner } @@ -26623,6 +27298,9 @@ impl<'a> AcquireNextImageInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AcquireNextImageInfoKHR { self.inner } @@ -26687,6 +27365,9 @@ impl<'a> DeviceGroupPresentInfoKHRBuilder<'a> { self.inner.mode = mode; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceGroupPresentInfoKHR { self.inner } @@ -26745,6 +27426,9 @@ impl<'a> DeviceGroupDeviceCreateInfoBuilder<'a> { self.inner.p_physical_devices = physical_devices.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceGroupDeviceCreateInfo { self.inner } @@ -26800,6 +27484,9 @@ impl<'a> DeviceGroupSwapchainCreateInfoKHRBuilder<'a> { self.inner.modes = modes; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceGroupSwapchainCreateInfoKHR { self.inner } @@ -26873,6 +27560,9 @@ impl<'a> DescriptorUpdateTemplateEntryBuilder<'a> { self.inner.stride = stride; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorUpdateTemplateEntry { self.inner } @@ -26998,6 +27688,9 @@ impl<'a> DescriptorUpdateTemplateCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorUpdateTemplateCreateInfo { self.inner } @@ -27042,6 +27735,9 @@ impl<'a> XYColorEXTBuilder<'a> { self.inner.y = y; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> XYColorEXT { self.inner } @@ -27167,6 +27863,9 @@ impl<'a> HdrMetadataEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> HdrMetadataEXT { self.inner } @@ -27209,6 +27908,9 @@ impl<'a> RefreshCycleDurationGOOGLEBuilder<'a> { self.inner.refresh_duration = refresh_duration; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RefreshCycleDurationGOOGLE { self.inner } @@ -27280,6 +27982,9 @@ impl<'a> PastPresentationTimingGOOGLEBuilder<'a> { self.inner.present_margin = present_margin; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PastPresentationTimingGOOGLE { self.inner } @@ -27335,6 +28040,9 @@ impl<'a> PresentTimesInfoGOOGLEBuilder<'a> { self.inner.p_times = times.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PresentTimesInfoGOOGLE { self.inner } @@ -27382,6 +28090,9 @@ impl<'a> PresentTimeGOOGLEBuilder<'a> { self.inner.desired_present_time = desired_present_time; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PresentTimeGOOGLE { self.inner } @@ -27456,6 +28167,9 @@ impl<'a> IOSSurfaceCreateInfoMVKBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> IOSSurfaceCreateInfoMVK { self.inner } @@ -27533,6 +28247,9 @@ impl<'a> MacOSSurfaceCreateInfoMVKBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MacOSSurfaceCreateInfoMVK { self.inner } @@ -27577,6 +28294,9 @@ impl<'a> ViewportWScalingNVBuilder<'a> { self.inner.ycoeff = ycoeff; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ViewportWScalingNV { self.inner } @@ -27647,6 +28367,9 @@ impl<'a> PipelineViewportWScalingStateCreateInfoNVBuilder<'a> { self.inner.p_viewport_w_scalings = viewport_w_scalings.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineViewportWScalingStateCreateInfoNV { self.inner } @@ -27701,6 +28424,9 @@ impl<'a> ViewportSwizzleNVBuilder<'a> { self.inner.w = w; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ViewportSwizzleNV { self.inner } @@ -27771,6 +28497,9 @@ impl<'a> PipelineViewportSwizzleStateCreateInfoNVBuilder<'a> { self.inner.p_viewport_swizzles = viewport_swizzles.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineViewportSwizzleStateCreateInfoNV { self.inner } @@ -27829,6 +28558,9 @@ impl<'a> PhysicalDeviceDiscardRectanglePropertiesEXTBuilder<'a> { self.inner.max_discard_rectangles = max_discard_rectangles; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceDiscardRectanglePropertiesEXT { self.inner } @@ -27908,6 +28640,9 @@ impl<'a> PipelineDiscardRectangleStateCreateInfoEXTBuilder<'a> { self.inner.p_discard_rectangles = discard_rectangles.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineDiscardRectangleStateCreateInfoEXT { self.inner } @@ -27969,6 +28704,9 @@ impl<'a> PhysicalDeviceMultiviewPerViewAttributesPropertiesNVXBuilder<'a> { self.inner.per_view_position_all_components = per_view_position_all_components.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceMultiviewPerViewAttributesPropertiesNVX { self.inner } @@ -28024,6 +28762,9 @@ impl<'a> InputAttachmentAspectReferenceBuilder<'a> { self.inner.aspect_mask = aspect_mask; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> InputAttachmentAspectReference { self.inner } @@ -28082,6 +28823,9 @@ impl<'a> RenderPassInputAttachmentAspectCreateInfoBuilder<'a> { self.inner.p_aspect_references = aspect_references.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RenderPassInputAttachmentAspectCreateInfo { self.inner } @@ -28150,6 +28894,9 @@ impl<'a> PhysicalDeviceSurfaceInfo2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceSurfaceInfo2KHR { self.inner } @@ -28221,6 +28968,9 @@ impl<'a> SurfaceCapabilities2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SurfaceCapabilities2KHR { self.inner } @@ -28292,6 +29042,9 @@ impl<'a> SurfaceFormat2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SurfaceFormat2KHR { self.inner } @@ -28363,6 +29116,9 @@ impl<'a> DisplayProperties2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayProperties2KHR { self.inner } @@ -28434,6 +29190,9 @@ impl<'a> DisplayPlaneProperties2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayPlaneProperties2KHR { self.inner } @@ -28505,6 +29264,9 @@ impl<'a> DisplayModeProperties2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayModeProperties2KHR { self.inner } @@ -28579,6 +29341,9 @@ impl<'a> DisplayPlaneInfo2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayPlaneInfo2KHR { self.inner } @@ -28650,6 +29415,9 @@ impl<'a> DisplayPlaneCapabilities2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DisplayPlaneCapabilities2KHR { self.inner } @@ -28705,6 +29473,9 @@ impl<'a> SharedPresentSurfaceCapabilitiesKHRBuilder<'a> { self.inner.shared_present_supported_usage_flags = shared_present_supported_usage_flags; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SharedPresentSurfaceCapabilitiesKHR { self.inner } @@ -28788,6 +29559,9 @@ impl<'a> PhysicalDevice16BitStorageFeaturesBuilder<'a> { self.inner.storage_input_output16 = storage_input_output16.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDevice16BitStorageFeatures { self.inner } @@ -28870,6 +29644,9 @@ impl<'a> PhysicalDeviceSubgroupPropertiesBuilder<'a> { self.inner.quad_operations_in_all_stages = quad_operations_in_all_stages.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceSubgroupProperties { self.inner } @@ -28938,6 +29715,9 @@ impl<'a> BufferMemoryRequirementsInfo2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BufferMemoryRequirementsInfo2 { self.inner } @@ -29006,6 +29786,9 @@ impl<'a> ImageMemoryRequirementsInfo2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageMemoryRequirementsInfo2 { self.inner } @@ -29074,6 +29857,9 @@ impl<'a> ImageSparseMemoryRequirementsInfo2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageSparseMemoryRequirementsInfo2 { self.inner } @@ -29145,6 +29931,9 @@ impl<'a> MemoryRequirements2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryRequirements2 { self.inner } @@ -29216,6 +30005,9 @@ impl<'a> SparseImageMemoryRequirements2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SparseImageMemoryRequirements2 { self.inner } @@ -29271,6 +30063,9 @@ impl<'a> PhysicalDevicePointClippingPropertiesBuilder<'a> { self.inner.point_clipping_behavior = point_clipping_behavior; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDevicePointClippingProperties { self.inner } @@ -29335,6 +30130,9 @@ impl<'a> MemoryDedicatedRequirementsBuilder<'a> { self.inner.requires_dedicated_allocation = requires_dedicated_allocation.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryDedicatedRequirements { self.inner } @@ -29393,6 +30191,9 @@ impl<'a> MemoryDedicatedAllocateInfoBuilder<'a> { self.inner.buffer = buffer; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryDedicatedAllocateInfo { self.inner } @@ -29445,6 +30246,9 @@ impl<'a> ImageViewUsageCreateInfoBuilder<'a> { self.inner.usage = usage; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageViewUsageCreateInfo { self.inner } @@ -29506,6 +30310,9 @@ impl<'a> PipelineTessellationDomainOriginStateCreateInfoBuilder<'a> { self.inner.domain_origin = domain_origin; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineTessellationDomainOriginStateCreateInfo { self.inner } @@ -29563,6 +30370,9 @@ impl<'a> SamplerYcbcrConversionInfoBuilder<'a> { self.inner.conversion = conversion; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SamplerYcbcrConversionInfo { self.inner } @@ -29694,6 +30504,9 @@ impl<'a> SamplerYcbcrConversionCreateInfoBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SamplerYcbcrConversionCreateInfo { self.inner } @@ -29749,6 +30562,9 @@ impl<'a> BindImagePlaneMemoryInfoBuilder<'a> { self.inner.plane_aspect = plane_aspect; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BindImagePlaneMemoryInfo { self.inner } @@ -29804,6 +30620,9 @@ impl<'a> ImagePlaneMemoryRequirementsInfoBuilder<'a> { self.inner.plane_aspect = plane_aspect; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImagePlaneMemoryRequirementsInfo { self.inner } @@ -29859,6 +30678,9 @@ impl<'a> PhysicalDeviceSamplerYcbcrConversionFeaturesBuilder<'a> { self.inner.sampler_ycbcr_conversion = sampler_ycbcr_conversion.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceSamplerYcbcrConversionFeatures { self.inner } @@ -29918,6 +30740,9 @@ impl<'a> SamplerYcbcrConversionImageFormatPropertiesBuilder<'a> { combined_image_sampler_descriptor_count; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SamplerYcbcrConversionImageFormatProperties { self.inner } @@ -29974,6 +30799,9 @@ impl<'a> TextureLODGatherFormatPropertiesAMDBuilder<'a> { supports_texture_gather_lod_bias_amd.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> TextureLODGatherFormatPropertiesAMD { self.inner } @@ -30057,6 +30885,9 @@ impl<'a> ConditionalRenderingBeginInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ConditionalRenderingBeginInfoEXT { self.inner } @@ -30109,6 +30940,9 @@ impl<'a> ProtectedSubmitInfoBuilder<'a> { self.inner.protected_submit = protected_submit.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ProtectedSubmitInfo { self.inner } @@ -30164,6 +30998,9 @@ impl<'a> PhysicalDeviceProtectedMemoryFeaturesBuilder<'a> { self.inner.protected_memory = protected_memory.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceProtectedMemoryFeatures { self.inner } @@ -30222,6 +31059,9 @@ impl<'a> PhysicalDeviceProtectedMemoryPropertiesBuilder<'a> { self.inner.protected_no_fault = protected_no_fault.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceProtectedMemoryProperties { self.inner } @@ -30302,6 +31142,9 @@ impl<'a> DeviceQueueInfo2Builder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceQueueInfo2 { self.inner } @@ -30378,6 +31221,9 @@ impl<'a> PipelineCoverageToColorStateCreateInfoNVBuilder<'a> { self.inner.coverage_to_color_location = coverage_to_color_location; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineCoverageToColorStateCreateInfoNV { self.inner } @@ -30447,6 +31293,9 @@ impl<'a> PhysicalDeviceSamplerFilterMinmaxPropertiesEXTBuilder<'a> { filter_minmax_image_component_mapping.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceSamplerFilterMinmaxPropertiesEXT { self.inner } @@ -30491,6 +31340,9 @@ impl<'a> SampleLocationEXTBuilder<'a> { self.inner.y = y; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SampleLocationEXT { self.inner } @@ -30567,6 +31419,9 @@ impl<'a> SampleLocationsInfoEXTBuilder<'a> { self.inner.p_sample_locations = sample_locations.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SampleLocationsInfoEXT { self.inner } @@ -30617,6 +31472,9 @@ impl<'a> AttachmentSampleLocationsEXTBuilder<'a> { self.inner.sample_locations_info = sample_locations_info; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AttachmentSampleLocationsEXT { self.inner } @@ -30664,6 +31522,9 @@ impl<'a> SubpassSampleLocationsEXTBuilder<'a> { self.inner.sample_locations_info = sample_locations_info; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SubpassSampleLocationsEXT { self.inner } @@ -30736,6 +31597,9 @@ impl<'a> RenderPassSampleLocationsBeginInfoEXTBuilder<'a> { self.inner.p_post_subpass_sample_locations = post_subpass_sample_locations.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RenderPassSampleLocationsBeginInfoEXT { self.inner } @@ -30806,6 +31670,9 @@ impl<'a> PipelineSampleLocationsStateCreateInfoEXTBuilder<'a> { self.inner.sample_locations_info = sample_locations_info; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineSampleLocationsStateCreateInfoEXT { self.inner } @@ -30900,6 +31767,9 @@ impl<'a> PhysicalDeviceSampleLocationsPropertiesEXTBuilder<'a> { self.inner.variable_sample_locations = variable_sample_locations.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceSampleLocationsPropertiesEXT { self.inner } @@ -30971,6 +31841,9 @@ impl<'a> MultisamplePropertiesEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MultisamplePropertiesEXT { self.inner } @@ -31026,6 +31899,9 @@ impl<'a> SamplerReductionModeCreateInfoEXTBuilder<'a> { self.inner.reduction_mode = reduction_mode; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SamplerReductionModeCreateInfoEXT { self.inner } @@ -31081,6 +31957,9 @@ impl<'a> PhysicalDeviceBlendOperationAdvancedFeaturesEXTBuilder<'a> { self.inner.advanced_blend_coherent_operations = advanced_blend_coherent_operations.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceBlendOperationAdvancedFeaturesEXT { self.inner } @@ -31186,6 +32065,9 @@ impl<'a> PhysicalDeviceBlendOperationAdvancedPropertiesEXTBuilder<'a> { self.inner.advanced_blend_all_operations = advanced_blend_all_operations.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceBlendOperationAdvancedPropertiesEXT { self.inner } @@ -31265,6 +32147,9 @@ impl<'a> PipelineColorBlendAdvancedStateCreateInfoEXTBuilder<'a> { self.inner.blend_overlap = blend_overlap; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineColorBlendAdvancedStateCreateInfoEXT { self.inner } @@ -31331,6 +32216,9 @@ impl<'a> PhysicalDeviceInlineUniformBlockFeaturesEXTBuilder<'a> { descriptor_binding_inline_uniform_block_update_after_bind.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceInlineUniformBlockFeaturesEXT { self.inner } @@ -31431,6 +32319,9 @@ impl<'a> PhysicalDeviceInlineUniformBlockPropertiesEXTBuilder<'a> { max_descriptor_set_update_after_bind_inline_uniform_blocks; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceInlineUniformBlockPropertiesEXT { self.inner } @@ -31486,6 +32377,9 @@ impl<'a> WriteDescriptorSetInlineUniformBlockEXTBuilder<'a> { self.inner.p_data = data.as_ptr() as *const c_void; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> WriteDescriptorSetInlineUniformBlockEXT { self.inner } @@ -31544,6 +32438,9 @@ impl<'a> DescriptorPoolInlineUniformBlockCreateInfoEXTBuilder<'a> { self.inner.max_inline_uniform_block_bindings = max_inline_uniform_block_bindings; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorPoolInlineUniformBlockCreateInfoEXT { self.inner } @@ -31635,6 +32532,9 @@ impl<'a> PipelineCoverageModulationStateCreateInfoNVBuilder<'a> { self.inner.p_coverage_modulation_table = coverage_modulation_table.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineCoverageModulationStateCreateInfoNV { self.inner } @@ -31697,6 +32597,9 @@ impl<'a> ImageFormatListCreateInfoKHRBuilder<'a> { self.inner.p_view_formats = view_formats.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageFormatListCreateInfoKHR { self.inner } @@ -31780,6 +32683,9 @@ impl<'a> ValidationCacheCreateInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ValidationCacheCreateInfoEXT { self.inner } @@ -31835,6 +32741,9 @@ impl<'a> ShaderModuleValidationCacheCreateInfoEXTBuilder<'a> { self.inner.validation_cache = validation_cache; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ShaderModuleValidationCacheCreateInfoEXT { self.inner } @@ -31899,6 +32808,9 @@ impl<'a> PhysicalDeviceMaintenance3PropertiesBuilder<'a> { self.inner.max_memory_allocation_size = max_memory_allocation_size; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceMaintenance3Properties { self.inner } @@ -31967,6 +32879,9 @@ impl<'a> DescriptorSetLayoutSupportBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorSetLayoutSupport { self.inner } @@ -32022,6 +32937,9 @@ impl<'a> PhysicalDeviceShaderDrawParameterFeaturesBuilder<'a> { self.inner.shader_draw_parameters = shader_draw_parameters.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceShaderDrawParameterFeatures { self.inner } @@ -32086,6 +33004,9 @@ impl<'a> PhysicalDeviceFloat16Int8FeaturesKHRBuilder<'a> { self.inner.shader_int8 = shader_int8.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceFloat16Int8FeaturesKHR { self.inner } @@ -32291,6 +33212,9 @@ impl<'a> PhysicalDeviceFloatControlsPropertiesKHRBuilder<'a> { self.inner.shader_rounding_mode_rtz_float64 = shader_rounding_mode_rtz_float64.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceFloatControlsPropertiesKHR { self.inner } @@ -32377,6 +33301,9 @@ impl<'a> NativeBufferANDROIDBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> NativeBufferANDROID { self.inner } @@ -32445,6 +33372,9 @@ impl<'a> ShaderResourceUsageAMDBuilder<'a> { self.inner.scratch_mem_usage_in_bytes = scratch_mem_usage_in_bytes; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ShaderResourceUsageAMD { self.inner } @@ -32548,6 +33478,9 @@ impl<'a> ShaderStatisticsInfoAMDBuilder<'a> { self.inner.compute_work_group_size = compute_work_group_size; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ShaderStatisticsInfoAMD { self.inner } @@ -32603,6 +33536,9 @@ impl<'a> DeviceQueueGlobalPriorityCreateInfoEXTBuilder<'a> { self.inner.global_priority = global_priority; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceQueueGlobalPriorityCreateInfoEXT { self.inner } @@ -32689,6 +33625,9 @@ impl<'a> DebugUtilsObjectNameInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DebugUtilsObjectNameInfoEXT { self.inner } @@ -32778,6 +33717,9 @@ impl<'a> DebugUtilsObjectTagInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DebugUtilsObjectTagInfoEXT { self.inner } @@ -32852,6 +33794,9 @@ impl<'a> DebugUtilsLabelEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DebugUtilsLabelEXT { self.inner } @@ -32959,6 +33904,9 @@ impl<'a> DebugUtilsMessengerCreateInfoEXTBuilder<'a> { self.inner.p_user_data = user_data; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DebugUtilsMessengerCreateInfoEXT { self.inner } @@ -33093,6 +34041,9 @@ impl<'a> DebugUtilsMessengerCallbackDataEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DebugUtilsMessengerCallbackDataEXT { self.inner } @@ -33157,6 +34108,9 @@ impl<'a> ImportMemoryHostPointerInfoEXTBuilder<'a> { self.inner.p_host_pointer = host_pointer; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImportMemoryHostPointerInfoEXT { self.inner } @@ -33228,6 +34182,9 @@ impl<'a> MemoryHostPointerPropertiesEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryHostPointerPropertiesEXT { self.inner } @@ -33286,6 +34243,9 @@ impl<'a> PhysicalDeviceExternalMemoryHostPropertiesEXTBuilder<'a> { self.inner.min_imported_host_pointer_alignment = min_imported_host_pointer_alignment; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceExternalMemoryHostPropertiesEXT { self.inner } @@ -33424,6 +34384,9 @@ impl<'a> PhysicalDeviceConservativeRasterizationPropertiesEXTBuilder<'a> { conservative_rasterization_post_depth_coverage.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceConservativeRasterizationPropertiesEXT { self.inner } @@ -33495,6 +34458,9 @@ impl<'a> CalibratedTimestampInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CalibratedTimestampInfoEXT { self.inner } @@ -33667,6 +34633,9 @@ impl<'a> PhysicalDeviceShaderCorePropertiesAMDBuilder<'a> { self.inner.vgpr_allocation_granularity = vgpr_allocation_granularity; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceShaderCorePropertiesAMD { self.inner } @@ -33746,6 +34715,9 @@ impl<'a> PipelineRasterizationConservativeStateCreateInfoEXTBuilder<'a> { self.inner.extra_primitive_overestimation_size = extra_primitive_overestimation_size; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineRasterizationConservativeStateCreateInfoEXT { self.inner } @@ -34001,6 +34973,9 @@ impl<'a> PhysicalDeviceDescriptorIndexingFeaturesEXTBuilder<'a> { self.inner.runtime_descriptor_array = runtime_descriptor_array.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceDescriptorIndexingFeaturesEXT { self.inner } @@ -34297,6 +35272,9 @@ impl<'a> PhysicalDeviceDescriptorIndexingPropertiesEXTBuilder<'a> { max_descriptor_set_update_after_bind_input_attachments; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceDescriptorIndexingPropertiesEXT { self.inner } @@ -34358,6 +35336,9 @@ impl<'a> DescriptorSetLayoutBindingFlagsCreateInfoEXTBuilder<'a> { self.inner.p_binding_flags = binding_flags.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorSetLayoutBindingFlagsCreateInfoEXT { self.inner } @@ -34422,6 +35403,9 @@ impl<'a> DescriptorSetVariableDescriptorCountAllocateInfoEXTBuilder<'a> { self.inner.p_descriptor_counts = descriptor_counts.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorSetVariableDescriptorCountAllocateInfoEXT { self.inner } @@ -34483,6 +35467,9 @@ impl<'a> DescriptorSetVariableDescriptorCountLayoutSupportEXTBuilder<'a> { self.inner.max_variable_descriptor_count = max_variable_descriptor_count; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DescriptorSetVariableDescriptorCountLayoutSupportEXT { self.inner } @@ -34614,6 +35601,9 @@ impl<'a> AttachmentDescription2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AttachmentDescription2KHR { self.inner } @@ -34697,6 +35687,9 @@ impl<'a> AttachmentReference2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AttachmentReference2KHR { self.inner } @@ -34835,6 +35828,9 @@ impl<'a> SubpassDescription2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SubpassDescription2KHR { self.inner } @@ -34960,6 +35956,9 @@ impl<'a> SubpassDependency2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SubpassDependency2KHR { self.inner } @@ -35076,6 +36075,9 @@ impl<'a> RenderPassCreateInfo2KHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RenderPassCreateInfo2KHR { self.inner } @@ -35144,6 +36146,9 @@ impl<'a> SubpassBeginInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SubpassBeginInfoKHR { self.inner } @@ -35206,6 +36211,9 @@ impl<'a> SubpassEndInfoKHRBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SubpassEndInfoKHR { self.inner } @@ -35250,6 +36258,9 @@ impl<'a> VertexInputBindingDivisorDescriptionEXTBuilder<'a> { self.inner.divisor = divisor; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> VertexInputBindingDivisorDescriptionEXT { self.inner } @@ -35314,6 +36325,9 @@ impl<'a> PipelineVertexInputDivisorStateCreateInfoEXTBuilder<'a> { self.inner.p_vertex_binding_divisors = vertex_binding_divisors.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineVertexInputDivisorStateCreateInfoEXT { self.inner } @@ -35372,6 +36386,9 @@ impl<'a> PhysicalDeviceVertexAttributeDivisorPropertiesEXTBuilder<'a> { self.inner.max_vertex_attrib_divisor = max_vertex_attrib_divisor; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceVertexAttributeDivisorPropertiesEXT { self.inner } @@ -35451,6 +36468,9 @@ impl<'a> PhysicalDevicePCIBusInfoPropertiesEXTBuilder<'a> { self.inner.pci_function = pci_function; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDevicePCIBusInfoPropertiesEXT { self.inner } @@ -35506,6 +36526,9 @@ impl<'a> ImportAndroidHardwareBufferInfoANDROIDBuilder<'a> { self.inner.buffer = buffer; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImportAndroidHardwareBufferInfoANDROID { self.inner } @@ -35561,6 +36584,9 @@ impl<'a> AndroidHardwareBufferUsageANDROIDBuilder<'a> { self.inner.android_hardware_buffer_usage = android_hardware_buffer_usage; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AndroidHardwareBufferUsageANDROID { self.inner } @@ -35641,6 +36667,9 @@ impl<'a> AndroidHardwareBufferPropertiesANDROIDBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AndroidHardwareBufferPropertiesANDROID { self.inner } @@ -35712,6 +36741,9 @@ impl<'a> MemoryGetAndroidHardwareBufferInfoANDROIDBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryGetAndroidHardwareBufferInfoANDROID { self.inner } @@ -35836,6 +36868,9 @@ impl<'a> AndroidHardwareBufferFormatPropertiesANDROIDBuilder<'a> { self.inner.suggested_y_chroma_offset = suggested_y_chroma_offset; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AndroidHardwareBufferFormatPropertiesANDROID { self.inner } @@ -35897,6 +36932,9 @@ impl<'a> CommandBufferInheritanceConditionalRenderingInfoEXTBuilder<'a> { self.inner.conditional_rendering_enable = conditional_rendering_enable.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CommandBufferInheritanceConditionalRenderingInfoEXT { self.inner } @@ -35951,6 +36989,9 @@ impl<'a> ExternalFormatANDROIDBuilder<'a> { self.inner.external_format = external_format; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ExternalFormatANDROID { self.inner } @@ -36025,6 +37066,9 @@ impl<'a> PhysicalDevice8BitStorageFeaturesKHRBuilder<'a> { self.inner.storage_push_constant8 = storage_push_constant8.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDevice8BitStorageFeaturesKHR { self.inner } @@ -36089,6 +37133,9 @@ impl<'a> PhysicalDeviceConditionalRenderingFeaturesEXTBuilder<'a> { self.inner.inherited_conditional_rendering = inherited_conditional_rendering.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceConditionalRenderingFeaturesEXT { self.inner } @@ -36153,6 +37200,9 @@ impl<'a> PhysicalDeviceVulkanMemoryModelFeaturesKHRBuilder<'a> { self.inner.vulkan_memory_model_device_scope = vulkan_memory_model_device_scope.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceVulkanMemoryModelFeaturesKHR { self.inner } @@ -36217,6 +37267,9 @@ impl<'a> PhysicalDeviceShaderAtomicInt64FeaturesKHRBuilder<'a> { self.inner.shader_shared_int64_atomics = shader_shared_int64_atomics.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceShaderAtomicInt64FeaturesKHR { self.inner } @@ -36283,6 +37336,9 @@ impl<'a> PhysicalDeviceVertexAttributeDivisorFeaturesEXTBuilder<'a> { vertex_attribute_instance_rate_zero_divisor.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceVertexAttributeDivisorFeaturesEXT { self.inner } @@ -36338,6 +37394,9 @@ impl<'a> QueueFamilyCheckpointPropertiesNVBuilder<'a> { self.inner.checkpoint_execution_stage_mask = checkpoint_execution_stage_mask; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> QueueFamilyCheckpointPropertiesNV { self.inner } @@ -36415,6 +37474,9 @@ impl<'a> CheckpointDataNVBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CheckpointDataNV { self.inner } @@ -36500,6 +37562,9 @@ impl<'a> PhysicalDeviceDepthStencilResolvePropertiesKHRBuilder<'a> { self.inner.independent_resolve = independent_resolve.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceDepthStencilResolvePropertiesKHR { self.inner } @@ -36573,6 +37638,9 @@ impl<'a> SubpassDescriptionDepthStencilResolveKHRBuilder<'a> { self.inner.p_depth_stencil_resolve_attachment = depth_stencil_resolve_attachment; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> SubpassDescriptionDepthStencilResolveKHR { self.inner } @@ -36625,6 +37693,9 @@ impl<'a> ImageViewASTCDecodeModeEXTBuilder<'a> { self.inner.decode_mode = decode_mode; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageViewASTCDecodeModeEXT { self.inner } @@ -36680,6 +37751,9 @@ impl<'a> PhysicalDeviceASTCDecodeFeaturesEXTBuilder<'a> { self.inner.decode_mode_shared_exponent = decode_mode_shared_exponent.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceASTCDecodeFeaturesEXT { self.inner } @@ -36744,6 +37818,9 @@ impl<'a> PhysicalDeviceTransformFeedbackFeaturesEXTBuilder<'a> { self.inner.geometry_streams = geometry_streams.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceTransformFeedbackFeaturesEXT { self.inner } @@ -36888,6 +37965,9 @@ impl<'a> PhysicalDeviceTransformFeedbackPropertiesEXTBuilder<'a> { self.inner.transform_feedback_draw = transform_feedback_draw.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceTransformFeedbackPropertiesEXT { self.inner } @@ -36958,6 +38038,9 @@ impl<'a> PipelineRasterizationStateStreamCreateInfoEXTBuilder<'a> { self.inner.rasterization_stream = rasterization_stream; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineRasterizationStateStreamCreateInfoEXT { self.inner } @@ -37016,6 +38099,9 @@ impl<'a> PhysicalDeviceRepresentativeFragmentTestFeaturesNVBuilder<'a> { self.inner.representative_fragment_test = representative_fragment_test.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceRepresentativeFragmentTestFeaturesNV { self.inner } @@ -37077,6 +38163,9 @@ impl<'a> PipelineRepresentativeFragmentTestStateCreateInfoNVBuilder<'a> { self.inner.representative_fragment_test_enable = representative_fragment_test_enable.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineRepresentativeFragmentTestStateCreateInfoNV { self.inner } @@ -37132,6 +38221,9 @@ impl<'a> PhysicalDeviceExclusiveScissorFeaturesNVBuilder<'a> { self.inner.exclusive_scissor = exclusive_scissor.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceExclusiveScissorFeaturesNV { self.inner } @@ -37196,6 +38288,9 @@ impl<'a> PipelineViewportExclusiveScissorStateCreateInfoNVBuilder<'a> { self.inner.p_exclusive_scissors = exclusive_scissors.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineViewportExclusiveScissorStateCreateInfoNV { self.inner } @@ -37251,6 +38346,9 @@ impl<'a> PhysicalDeviceCornerSampledImageFeaturesNVBuilder<'a> { self.inner.corner_sampled_image = corner_sampled_image.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceCornerSampledImageFeaturesNV { self.inner } @@ -37318,6 +38416,9 @@ impl<'a> PhysicalDeviceComputeShaderDerivativesFeaturesNVBuilder<'a> { self.inner.compute_derivative_group_linear = compute_derivative_group_linear.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceComputeShaderDerivativesFeaturesNV { self.inner } @@ -37376,6 +38477,9 @@ impl<'a> PhysicalDeviceFragmentShaderBarycentricFeaturesNVBuilder<'a> { self.inner.fragment_shader_barycentric = fragment_shader_barycentric.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceFragmentShaderBarycentricFeaturesNV { self.inner } @@ -37431,6 +38535,9 @@ impl<'a> PhysicalDeviceShaderImageFootprintFeaturesNVBuilder<'a> { self.inner.image_footprint = image_footprint.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceShaderImageFootprintFeaturesNV { self.inner } @@ -37483,6 +38590,9 @@ impl<'a> ShadingRatePaletteNVBuilder<'a> { self.inner.p_shading_rate_palette_entries = shading_rate_palette_entries.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ShadingRatePaletteNV { self.inner } @@ -37556,6 +38666,9 @@ impl<'a> PipelineViewportShadingRateImageStateCreateInfoNVBuilder<'a> { self.inner.p_shading_rate_palettes = shading_rate_palettes.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineViewportShadingRateImageStateCreateInfoNV { self.inner } @@ -37620,6 +38733,9 @@ impl<'a> PhysicalDeviceShadingRateImageFeaturesNVBuilder<'a> { self.inner.shading_rate_coarse_sample_order = shading_rate_coarse_sample_order.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceShadingRateImageFeaturesNV { self.inner } @@ -37696,6 +38812,9 @@ impl<'a> PhysicalDeviceShadingRateImagePropertiesNVBuilder<'a> { self.inner.shading_rate_max_coarse_samples = shading_rate_max_coarse_samples; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceShadingRateImagePropertiesNV { self.inner } @@ -37745,6 +38864,9 @@ impl<'a> CoarseSampleLocationNVBuilder<'a> { self.inner.sample = sample; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CoarseSampleLocationNV { self.inner } @@ -37812,6 +38934,9 @@ impl<'a> CoarseSampleOrderCustomNVBuilder<'a> { self.inner.p_sample_locations = sample_locations.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> CoarseSampleOrderCustomNV { self.inner } @@ -37885,6 +39010,9 @@ impl<'a> PipelineViewportCoarseSampleOrderStateCreateInfoNVBuilder<'a> { self.inner.p_custom_sample_orders = custom_sample_orders.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PipelineViewportCoarseSampleOrderStateCreateInfoNV { self.inner } @@ -37949,6 +39077,9 @@ impl<'a> PhysicalDeviceMeshShaderFeaturesNVBuilder<'a> { self.inner.mesh_shader = mesh_shader.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceMeshShaderFeaturesNV { self.inner } @@ -38112,6 +39243,9 @@ impl<'a> PhysicalDeviceMeshShaderPropertiesNVBuilder<'a> { self.inner.mesh_output_per_primitive_granularity = mesh_output_per_primitive_granularity; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceMeshShaderPropertiesNV { self.inner } @@ -38156,6 +39290,9 @@ impl<'a> DrawMeshTasksIndirectCommandNVBuilder<'a> { self.inner.first_task = first_task; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DrawMeshTasksIndirectCommandNV { self.inner } @@ -38263,6 +39400,9 @@ impl<'a> RayTracingShaderGroupCreateInfoNVBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RayTracingShaderGroupCreateInfoNV { self.inner } @@ -38391,6 +39531,9 @@ impl<'a> RayTracingPipelineCreateInfoNVBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RayTracingPipelineCreateInfoNV { self.inner } @@ -38522,6 +39665,9 @@ impl<'a> GeometryTrianglesNVBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> GeometryTrianglesNV { self.inner } @@ -38608,6 +39754,9 @@ impl<'a> GeometryAABBNVBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> GeometryAABBNV { self.inner } @@ -38652,6 +39801,9 @@ impl<'a> GeometryDataNVBuilder<'a> { self.inner.aabbs = aabbs; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> GeometryDataNV { self.inner } @@ -38729,6 +39881,9 @@ impl<'a> GeometryNVBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> GeometryNV { self.inner } @@ -38824,6 +39979,9 @@ impl<'a> AccelerationStructureInfoNVBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AccelerationStructureInfoNV { self.inner } @@ -38904,6 +40062,9 @@ impl<'a> AccelerationStructureCreateInfoNVBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AccelerationStructureCreateInfoNV { self.inner } @@ -39005,6 +40166,9 @@ impl<'a> BindAccelerationStructureMemoryInfoNVBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BindAccelerationStructureMemoryInfoNV { self.inner } @@ -39063,6 +40227,9 @@ impl<'a> WriteDescriptorSetAccelerationStructureNVBuilder<'a> { self.inner.p_acceleration_structures = acceleration_structures.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> WriteDescriptorSetAccelerationStructureNV { self.inner } @@ -39143,6 +40310,9 @@ impl<'a> AccelerationStructureMemoryRequirementsInfoNVBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> AccelerationStructureMemoryRequirementsInfoNV { self.inner } @@ -39262,6 +40432,9 @@ impl<'a> PhysicalDeviceRayTracingPropertiesNVBuilder<'a> { max_descriptor_set_acceleration_structures; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceRayTracingPropertiesNV { self.inner } @@ -39320,6 +40493,9 @@ impl<'a> DrmFormatModifierPropertiesListEXTBuilder<'a> { self.inner.p_drm_format_modifier_properties = drm_format_modifier_properties.as_mut_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DrmFormatModifierPropertiesListEXT { self.inner } @@ -39378,6 +40554,9 @@ impl<'a> DrmFormatModifierPropertiesEXTBuilder<'a> { self.inner.drm_format_modifier_tiling_features = drm_format_modifier_tiling_features; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DrmFormatModifierPropertiesEXT { self.inner } @@ -39457,6 +40636,9 @@ impl<'a> PhysicalDeviceImageDrmFormatModifierInfoEXTBuilder<'a> { self.inner.p_queue_family_indices = queue_family_indices.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceImageDrmFormatModifierInfoEXT { self.inner } @@ -39515,6 +40697,9 @@ impl<'a> ImageDrmFormatModifierListCreateInfoEXTBuilder<'a> { self.inner.p_drm_format_modifiers = drm_format_modifiers.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageDrmFormatModifierListCreateInfoEXT { self.inner } @@ -39582,6 +40767,9 @@ impl<'a> ImageDrmFormatModifierExplicitCreateInfoEXTBuilder<'a> { self.inner.p_plane_layouts = plane_layouts.as_ptr(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageDrmFormatModifierExplicitCreateInfoEXT { self.inner } @@ -39653,6 +40841,9 @@ impl<'a> ImageDrmFormatModifierPropertiesEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageDrmFormatModifierPropertiesEXT { self.inner } @@ -39710,6 +40901,9 @@ impl<'a> ImageStencilUsageCreateInfoEXTBuilder<'a> { self.inner.stencil_usage = stencil_usage; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> ImageStencilUsageCreateInfoEXT { self.inner } @@ -39765,6 +40959,9 @@ impl<'a> DeviceMemoryOverallocationCreateInfoAMDBuilder<'a> { self.inner.overallocation_behavior = overallocation_behavior; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> DeviceMemoryOverallocationCreateInfoAMD { self.inner } @@ -39839,6 +41036,9 @@ impl<'a> PhysicalDeviceFragmentDensityMapFeaturesEXTBuilder<'a> { fragment_density_map_non_subsampled_images.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceFragmentDensityMapFeaturesEXT { self.inner } @@ -39915,6 +41115,9 @@ impl<'a> PhysicalDeviceFragmentDensityMapPropertiesEXTBuilder<'a> { self.inner.fragment_density_invocations = fragment_density_invocations.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceFragmentDensityMapPropertiesEXT { self.inner } @@ -39970,6 +41173,9 @@ impl<'a> RenderPassFragmentDensityMapCreateInfoEXTBuilder<'a> { self.inner.fragment_density_map_attachment = fragment_density_map_attachment; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> RenderPassFragmentDensityMapCreateInfoEXT { self.inner } @@ -40025,6 +41231,9 @@ impl<'a> PhysicalDeviceScalarBlockLayoutFeaturesEXTBuilder<'a> { self.inner.scalar_block_layout = scalar_block_layout.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceScalarBlockLayoutFeaturesEXT { self.inner } @@ -40092,6 +41301,9 @@ impl<'a> PhysicalDeviceMemoryBudgetPropertiesEXTBuilder<'a> { self.inner.heap_usage = heap_usage; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceMemoryBudgetPropertiesEXT { self.inner } @@ -40147,6 +41359,9 @@ impl<'a> PhysicalDeviceMemoryPriorityFeaturesEXTBuilder<'a> { self.inner.memory_priority = memory_priority.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceMemoryPriorityFeaturesEXT { self.inner } @@ -40199,6 +41414,9 @@ impl<'a> MemoryPriorityAllocateInfoEXTBuilder<'a> { self.inner.priority = priority; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> MemoryPriorityAllocateInfoEXT { self.inner } @@ -40273,6 +41491,9 @@ impl<'a> PhysicalDeviceBufferAddressFeaturesEXTBuilder<'a> { self.inner.buffer_device_address_multi_device = buffer_device_address_multi_device.into(); self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> PhysicalDeviceBufferAddressFeaturesEXT { self.inner } @@ -40341,6 +41562,9 @@ impl<'a> BufferDeviceAddressInfoEXTBuilder<'a> { } self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BufferDeviceAddressInfoEXT { self.inner } @@ -40396,6 +41620,9 @@ impl<'a> BufferDeviceAddressCreateInfoEXTBuilder<'a> { self.inner.device_address = device_address; self } + #[doc = r" Calling build will **discard** all the lifetime information. Only call this if"] + #[doc = r" necessary! Builders implement `Deref` targeting their corresponding Vulkan struct,"] + #[doc = r" so references to builders can be passed directly to Vulkan functions."] pub fn build(self) -> BufferDeviceAddressCreateInfoEXT { self.inner } diff --git a/generator/src/lib.rs b/generator/src/lib.rs index d080051..6d21f4c 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -1726,6 +1726,9 @@ pub fn derive_setters( #next_function + /// Calling build will **discard** all the lifetime information. Only call this if + /// necessary! Builders implement `Deref` targeting their corresponding Vulkan struct, + /// so references to builders can be passed directly to Vulkan functions. pub fn build(self) -> #name { self.inner }