diff --git a/Changelog.md b/Changelog.md index 8526eb2..b4842c0 100644 --- a/Changelog.md +++ b/Changelog.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `VK_EXT_image_drm_format_modifier` device extension (#603) - Update Vulkan-Headers to 1.3.219 (#605, #608, #619) +- Added `const STRUCTURE_TYPE` to all Vulkan structures for matching with `match_struct!` macro (#614) - Added `VK_EXT_sample_locations` device extension (#616) - Added `VK_NV_coverage_reduction_mode` device extension (#617) - Added `VK_KHR_ray_tracing_maintenance1` device extension (#620) diff --git a/ash/src/lib.rs b/ash/src/lib.rs index 93da99f..c900fc6 100644 --- a/ash/src/lib.rs +++ b/ash/src/lib.rs @@ -72,6 +72,107 @@ impl<'r, T> RawPtr for Option<&'r T> { } } +/// Given a mutable raw pointer to a type with an `s_type` member such as [`vk::BaseOutStructure`], +/// match on a set of Vulkan structures. The struct will be rebound to the given variable of the +/// type of the given Vulkan structure. +/// +/// Note that all match bodies have to be enclosed by curly braces due to macro parsing limitations. +/// It is unfortunately not possible to write `x @ ash::vk::SomeStruct => one_line_expression(),`. +/// +/// ``` +/// let mut info = ash::vk::DeviceCreateInfo::default(); +/// let info: *mut ash::vk::BaseOutStructure = <*mut _>::cast(&mut info); +/// unsafe { +/// ash::match_out_struct!(match info { +/// info @ ash::vk::DeviceQueueCreateInfo => { +/// dbg!(&info); // Unreachable +/// } +/// info @ ash::vk::DeviceCreateInfo => { +/// dbg!(&info); +/// } +/// }) +/// } +/// ``` +/// +/// In addition this macro propagates implicit return values just like normal `match` blocks, as +/// long as a default value or expression is provided in the "any" match arm +/// (`_ => { some_value() }`). For the time being said arm must be wrapped in curly braces; an +/// expression like `_ => None` is not yet supported. +/// +/// ``` +/// # let mut info = ash::vk::DeviceCreateInfo::default(); +/// # let info: *mut ash::vk::BaseOutStructure = <*mut _>::cast(&mut info); +/// let device_create_flags: Option = unsafe { +/// ash::match_out_struct!(match info { +/// info @ ash::vk::DeviceQueueCreateInfo => { +/// dbg!(&info); // Unreachable +/// Some(ash::vk::DeviceCreateFlags::empty()) +/// } +/// info @ ash::vk::DeviceCreateInfo => { +/// dbg!(&info); +/// Some(info.flags) +/// } +/// _ => { +/// None +/// } +/// }) +/// }; +/// ``` +#[macro_export] +macro_rules! match_out_struct { + (match $p:ident { $($bind:ident @ $ty:path => $body:block $(,)?)+ $(_ => $any:block $(,)?)? }) => { + match std::ptr::addr_of!((*$p).s_type).read() { + $(<$ty as $crate::vk::TaggedStructure>::STRUCTURE_TYPE => { + let $bind = $p + .cast::<$ty>() + .as_mut() + .unwrap(); + $body + }),+ + _ => { $($any)? } + } + }; +} + +/// Given an immutable raw pointer to a type with an `s_type` member such as [`vk::BaseInStructure`], +/// match on a set of Vulkan structures. The struct will be rebound to the given variable of the +/// type of the given Vulkan structure. +/// +/// Note that all match bodies have to be enclosed by curly braces due to macro parsing limitations. +/// It is unfortunately not possible to write `x @ ash::vk::SomeStruct => one_line_expression(),`. +/// +/// ``` +/// let info = ash::vk::DeviceCreateInfo::default(); +/// let info: *const ash::vk::BaseInStructure = <*const _>::cast(&info); +/// unsafe { +/// ash::match_in_struct!(match info { +/// info @ ash::vk::DeviceQueueCreateInfo => { +/// dbg!(&info); // Unreachable +/// } +/// info @ ash::vk::DeviceCreateInfo => { +/// dbg!(&info); +/// } +/// }) +/// } +/// ``` +/// +/// See the [`match_out_struct!`] documentation for an example with implicit return values. +#[macro_export] +macro_rules! match_in_struct { + (match $p:ident { $($bind:ident @ $ty:path => $body:block $(,)?)+ $(_ => $any:block $(,)?)? }) => { + match std::ptr::addr_of!((*$p).s_type).read() { + $(<$ty as $crate::vk::TaggedStructure>::STRUCTURE_TYPE => { + let $bind = $p + .cast::<$ty>() + .as_ref() + .unwrap(); + $body + }),+ + _ => { $($any)? } + } + }; +} + #[cfg(test)] mod tests { use super::vk; diff --git a/ash/src/vk/definitions.rs b/ash/src/vk/definitions.rs index 57a5f7d..753b516 100644 --- a/ash/src/vk/definitions.rs +++ b/ash/src/vk/definitions.rs @@ -1283,7 +1283,7 @@ impl ::std::default::Default for ApplicationInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::APPLICATION_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_application_name: ::std::ptr::null(), application_version: u32::default(), @@ -1293,6 +1293,9 @@ impl ::std::default::Default for ApplicationInfo { } } } +unsafe impl TaggedStructure for ApplicationInfo { + const STRUCTURE_TYPE: StructureType = StructureType::APPLICATION_INFO; +} impl ApplicationInfo { pub fn builder<'a>() -> ApplicationInfoBuilder<'a> { ApplicationInfoBuilder { @@ -1480,7 +1483,7 @@ impl ::std::default::Default for DeviceQueueCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_QUEUE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DeviceQueueCreateFlags::default(), queue_family_index: u32::default(), @@ -1489,6 +1492,9 @@ impl ::std::default::Default for DeviceQueueCreateInfo { } } } +unsafe impl TaggedStructure for DeviceQueueCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_QUEUE_CREATE_INFO; +} impl DeviceQueueCreateInfo { pub fn builder<'a>() -> DeviceQueueCreateInfoBuilder<'a> { DeviceQueueCreateInfoBuilder { @@ -1572,7 +1578,7 @@ impl ::std::default::Default for DeviceCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DeviceCreateFlags::default(), queue_create_info_count: u32::default(), @@ -1585,6 +1591,9 @@ impl ::std::default::Default for DeviceCreateInfo { } } } +unsafe impl TaggedStructure for DeviceCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_CREATE_INFO; +} impl DeviceCreateInfo { pub fn builder<'a>() -> DeviceCreateInfoBuilder<'a> { DeviceCreateInfoBuilder { @@ -1678,7 +1687,7 @@ impl ::std::default::Default for InstanceCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::INSTANCE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: InstanceCreateFlags::default(), p_application_info: ::std::ptr::null(), @@ -1689,6 +1698,9 @@ impl ::std::default::Default for InstanceCreateInfo { } } } +unsafe impl TaggedStructure for InstanceCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::INSTANCE_CREATE_INFO; +} impl InstanceCreateInfo { pub fn builder<'a>() -> InstanceCreateInfoBuilder<'a> { InstanceCreateInfoBuilder { @@ -1910,13 +1922,16 @@ impl ::std::default::Default for MemoryAllocateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_ALLOCATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), allocation_size: DeviceSize::default(), memory_type_index: u32::default(), } } } +unsafe impl TaggedStructure for MemoryAllocateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_ALLOCATE_INFO; +} impl MemoryAllocateInfo { pub fn builder<'a>() -> MemoryAllocateInfoBuilder<'a> { MemoryAllocateInfoBuilder { @@ -2269,7 +2284,7 @@ impl ::std::default::Default for MappedMemoryRange { #[inline] fn default() -> Self { Self { - s_type: StructureType::MAPPED_MEMORY_RANGE, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), memory: DeviceMemory::default(), offset: DeviceSize::default(), @@ -2277,6 +2292,9 @@ impl ::std::default::Default for MappedMemoryRange { } } } +unsafe impl TaggedStructure for MappedMemoryRange { + const STRUCTURE_TYPE: StructureType = StructureType::MAPPED_MEMORY_RANGE; +} impl MappedMemoryRange { pub fn builder<'a>() -> MappedMemoryRangeBuilder<'a> { MappedMemoryRangeBuilder { @@ -2580,7 +2598,7 @@ impl ::std::default::Default for WriteDescriptorSet { #[inline] fn default() -> Self { Self { - s_type: StructureType::WRITE_DESCRIPTOR_SET, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), dst_set: DescriptorSet::default(), dst_binding: u32::default(), @@ -2593,6 +2611,9 @@ impl ::std::default::Default for WriteDescriptorSet { } } } +unsafe impl TaggedStructure for WriteDescriptorSet { + const STRUCTURE_TYPE: StructureType = StructureType::WRITE_DESCRIPTOR_SET; +} impl WriteDescriptorSet { pub fn builder<'a>() -> WriteDescriptorSetBuilder<'a> { WriteDescriptorSetBuilder { @@ -2697,7 +2718,7 @@ impl ::std::default::Default for CopyDescriptorSet { #[inline] fn default() -> Self { Self { - s_type: StructureType::COPY_DESCRIPTOR_SET, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_set: DescriptorSet::default(), src_binding: u32::default(), @@ -2709,6 +2730,9 @@ impl ::std::default::Default for CopyDescriptorSet { } } } +unsafe impl TaggedStructure for CopyDescriptorSet { + const STRUCTURE_TYPE: StructureType = StructureType::COPY_DESCRIPTOR_SET; +} impl CopyDescriptorSet { pub fn builder<'a>() -> CopyDescriptorSetBuilder<'a> { CopyDescriptorSetBuilder { @@ -2794,7 +2818,7 @@ impl ::std::default::Default for BufferCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: BufferCreateFlags::default(), size: DeviceSize::default(), @@ -2805,6 +2829,9 @@ impl ::std::default::Default for BufferCreateInfo { } } } +unsafe impl TaggedStructure for BufferCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_CREATE_INFO; +} impl BufferCreateInfo { pub fn builder<'a>() -> BufferCreateInfoBuilder<'a> { BufferCreateInfoBuilder { @@ -2895,7 +2922,7 @@ impl ::std::default::Default for BufferViewCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_VIEW_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: BufferViewCreateFlags::default(), buffer: Buffer::default(), @@ -2905,6 +2932,9 @@ impl ::std::default::Default for BufferViewCreateInfo { } } } +unsafe impl TaggedStructure for BufferViewCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_VIEW_CREATE_INFO; +} impl BufferViewCreateInfo { pub fn builder<'a>() -> BufferViewCreateInfoBuilder<'a> { BufferViewCreateInfoBuilder { @@ -3177,13 +3207,16 @@ impl ::std::default::Default for MemoryBarrier { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_BARRIER, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_access_mask: AccessFlags::default(), dst_access_mask: AccessFlags::default(), } } } +unsafe impl TaggedStructure for MemoryBarrier { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_BARRIER; +} impl MemoryBarrier { pub fn builder<'a>() -> MemoryBarrierBuilder<'a> { MemoryBarrierBuilder { @@ -3245,7 +3278,7 @@ impl ::std::default::Default for BufferMemoryBarrier { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_MEMORY_BARRIER, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_access_mask: AccessFlags::default(), dst_access_mask: AccessFlags::default(), @@ -3257,6 +3290,9 @@ impl ::std::default::Default for BufferMemoryBarrier { } } } +unsafe impl TaggedStructure for BufferMemoryBarrier { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_MEMORY_BARRIER; +} impl BufferMemoryBarrier { pub fn builder<'a>() -> BufferMemoryBarrierBuilder<'a> { BufferMemoryBarrierBuilder { @@ -3344,7 +3380,7 @@ impl ::std::default::Default for ImageMemoryBarrier { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_MEMORY_BARRIER, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_access_mask: AccessFlags::default(), dst_access_mask: AccessFlags::default(), @@ -3357,6 +3393,9 @@ impl ::std::default::Default for ImageMemoryBarrier { } } } +unsafe impl TaggedStructure for ImageMemoryBarrier { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_MEMORY_BARRIER; +} impl ImageMemoryBarrier { pub fn builder<'a>() -> ImageMemoryBarrierBuilder<'a> { ImageMemoryBarrierBuilder { @@ -3469,7 +3508,7 @@ impl ::std::default::Default for ImageCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: ImageCreateFlags::default(), image_type: ImageType::default(), @@ -3487,6 +3526,9 @@ impl ::std::default::Default for ImageCreateInfo { } } } +unsafe impl TaggedStructure for ImageCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_CREATE_INFO; +} impl ImageCreateInfo { pub fn builder<'a>() -> ImageCreateInfoBuilder<'a> { ImageCreateInfoBuilder { @@ -3681,7 +3723,7 @@ impl ::std::default::Default for ImageViewCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_VIEW_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: ImageViewCreateFlags::default(), image: Image::default(), @@ -3692,6 +3734,9 @@ impl ::std::default::Default for ImageViewCreateInfo { } } } +unsafe impl TaggedStructure for ImageViewCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_VIEW_CREATE_INFO; +} impl ImageViewCreateInfo { pub fn builder<'a>() -> ImageViewCreateInfoBuilder<'a> { ImageViewCreateInfoBuilder { @@ -4175,7 +4220,7 @@ impl ::std::default::Default for BindSparseInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::BIND_SPARSE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), wait_semaphore_count: u32::default(), p_wait_semaphores: ::std::ptr::null(), @@ -4190,6 +4235,9 @@ impl ::std::default::Default for BindSparseInfo { } } } +unsafe impl TaggedStructure for BindSparseInfo { + const STRUCTURE_TYPE: StructureType = StructureType::BIND_SPARSE_INFO; +} impl BindSparseInfo { pub fn builder<'a>() -> BindSparseInfoBuilder<'a> { BindSparseInfoBuilder { @@ -4568,7 +4616,7 @@ impl ::std::default::Default for ShaderModuleCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SHADER_MODULE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: ShaderModuleCreateFlags::default(), code_size: usize::default(), @@ -4576,6 +4624,9 @@ impl ::std::default::Default for ShaderModuleCreateInfo { } } } +unsafe impl TaggedStructure for ShaderModuleCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SHADER_MODULE_CREATE_INFO; +} impl ShaderModuleCreateInfo { pub fn builder<'a>() -> ShaderModuleCreateInfoBuilder<'a> { ShaderModuleCreateInfoBuilder { @@ -4732,7 +4783,7 @@ impl ::std::default::Default for DescriptorSetLayoutCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_SET_LAYOUT_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DescriptorSetLayoutCreateFlags::default(), binding_count: u32::default(), @@ -4740,6 +4791,9 @@ impl ::std::default::Default for DescriptorSetLayoutCreateInfo { } } } +unsafe impl TaggedStructure for DescriptorSetLayoutCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DESCRIPTOR_SET_LAYOUT_CREATE_INFO; +} impl DescriptorSetLayoutCreateInfo { pub fn builder<'a>() -> DescriptorSetLayoutCreateInfoBuilder<'a> { DescriptorSetLayoutCreateInfoBuilder { @@ -4864,7 +4918,7 @@ impl ::std::default::Default for DescriptorPoolCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_POOL_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DescriptorPoolCreateFlags::default(), max_sets: u32::default(), @@ -4873,6 +4927,9 @@ impl ::std::default::Default for DescriptorPoolCreateInfo { } } } +unsafe impl TaggedStructure for DescriptorPoolCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DESCRIPTOR_POOL_CREATE_INFO; +} impl DescriptorPoolCreateInfo { pub fn builder<'a>() -> DescriptorPoolCreateInfoBuilder<'a> { DescriptorPoolCreateInfoBuilder { @@ -4951,7 +5008,7 @@ impl ::std::default::Default for DescriptorSetAllocateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_SET_ALLOCATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), descriptor_pool: DescriptorPool::default(), descriptor_set_count: u32::default(), @@ -4959,6 +5016,9 @@ impl ::std::default::Default for DescriptorSetAllocateInfo { } } } +unsafe impl TaggedStructure for DescriptorSetAllocateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DESCRIPTOR_SET_ALLOCATE_INFO; +} impl DescriptorSetAllocateInfo { pub fn builder<'a>() -> DescriptorSetAllocateInfoBuilder<'a> { DescriptorSetAllocateInfoBuilder { @@ -5155,7 +5215,7 @@ impl ::std::default::Default for PipelineShaderStageCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_SHADER_STAGE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineShaderStageCreateFlags::default(), stage: ShaderStageFlags::default(), @@ -5165,6 +5225,9 @@ impl ::std::default::Default for PipelineShaderStageCreateInfo { } } } +unsafe impl TaggedStructure for PipelineShaderStageCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_SHADER_STAGE_CREATE_INFO; +} impl PipelineShaderStageCreateInfo { pub fn builder<'a>() -> PipelineShaderStageCreateInfoBuilder<'a> { PipelineShaderStageCreateInfoBuilder { @@ -5254,7 +5317,7 @@ impl ::std::default::Default for ComputePipelineCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::COMPUTE_PIPELINE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineCreateFlags::default(), stage: PipelineShaderStageCreateInfo::default(), @@ -5264,6 +5327,9 @@ impl ::std::default::Default for ComputePipelineCreateInfo { } } } +unsafe impl TaggedStructure for ComputePipelineCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::COMPUTE_PIPELINE_CREATE_INFO; +} impl ComputePipelineCreateInfo { pub fn builder<'a>() -> ComputePipelineCreateInfoBuilder<'a> { ComputePipelineCreateInfoBuilder { @@ -5471,7 +5537,7 @@ impl ::std::default::Default for PipelineVertexInputStateCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineVertexInputStateCreateFlags::default(), vertex_binding_description_count: u32::default(), @@ -5481,6 +5547,9 @@ impl ::std::default::Default for PipelineVertexInputStateCreateInfo { } } } +unsafe impl TaggedStructure for PipelineVertexInputStateCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO; +} impl PipelineVertexInputStateCreateInfo { pub fn builder<'a>() -> PipelineVertexInputStateCreateInfoBuilder<'a> { PipelineVertexInputStateCreateInfoBuilder { @@ -5569,7 +5638,7 @@ impl ::std::default::Default for PipelineInputAssemblyStateCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineInputAssemblyStateCreateFlags::default(), topology: PrimitiveTopology::default(), @@ -5577,6 +5646,9 @@ impl ::std::default::Default for PipelineInputAssemblyStateCreateInfo { } } } +unsafe impl TaggedStructure for PipelineInputAssemblyStateCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO; +} impl PipelineInputAssemblyStateCreateInfo { pub fn builder<'a>() -> PipelineInputAssemblyStateCreateInfoBuilder<'a> { PipelineInputAssemblyStateCreateInfoBuilder { @@ -5638,13 +5710,16 @@ impl ::std::default::Default for PipelineTessellationStateCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_TESSELLATION_STATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineTessellationStateCreateFlags::default(), patch_control_points: u32::default(), } } } +unsafe impl TaggedStructure for PipelineTessellationStateCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_TESSELLATION_STATE_CREATE_INFO; +} impl PipelineTessellationStateCreateInfo { pub fn builder<'a>() -> PipelineTessellationStateCreateInfoBuilder<'a> { PipelineTessellationStateCreateInfoBuilder { @@ -5722,7 +5797,7 @@ impl ::std::default::Default for PipelineViewportStateCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_VIEWPORT_STATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineViewportStateCreateFlags::default(), viewport_count: u32::default(), @@ -5732,6 +5807,9 @@ impl ::std::default::Default for PipelineViewportStateCreateInfo { } } } +unsafe impl TaggedStructure for PipelineViewportStateCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_VIEWPORT_STATE_CREATE_INFO; +} impl PipelineViewportStateCreateInfo { pub fn builder<'a>() -> PipelineViewportStateCreateInfoBuilder<'a> { PipelineViewportStateCreateInfoBuilder { @@ -5829,7 +5907,7 @@ impl ::std::default::Default for PipelineRasterizationStateCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_RASTERIZATION_STATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineRasterizationStateCreateFlags::default(), depth_clamp_enable: Bool32::default(), @@ -5845,6 +5923,9 @@ impl ::std::default::Default for PipelineRasterizationStateCreateInfo { } } } +unsafe impl TaggedStructure for PipelineRasterizationStateCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_RASTERIZATION_STATE_CREATE_INFO; +} impl PipelineRasterizationStateCreateInfo { pub fn builder<'a>() -> PipelineRasterizationStateCreateInfoBuilder<'a> { PipelineRasterizationStateCreateInfoBuilder { @@ -5969,7 +6050,7 @@ impl ::std::default::Default for PipelineMultisampleStateCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_MULTISAMPLE_STATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineMultisampleStateCreateFlags::default(), rasterization_samples: SampleCountFlags::default(), @@ -5981,6 +6062,9 @@ impl ::std::default::Default for PipelineMultisampleStateCreateInfo { } } } +unsafe impl TaggedStructure for PipelineMultisampleStateCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_MULTISAMPLE_STATE_CREATE_INFO; +} impl PipelineMultisampleStateCreateInfo { pub fn builder<'a>() -> PipelineMultisampleStateCreateInfoBuilder<'a> { PipelineMultisampleStateCreateInfoBuilder { @@ -6179,7 +6263,7 @@ impl ::std::default::Default for PipelineColorBlendStateCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_COLOR_BLEND_STATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineColorBlendStateCreateFlags::default(), logic_op_enable: Bool32::default(), @@ -6190,6 +6274,9 @@ impl ::std::default::Default for PipelineColorBlendStateCreateInfo { } } } +unsafe impl TaggedStructure for PipelineColorBlendStateCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_COLOR_BLEND_STATE_CREATE_INFO; +} impl PipelineColorBlendStateCreateInfo { pub fn builder<'a>() -> PipelineColorBlendStateCreateInfoBuilder<'a> { PipelineColorBlendStateCreateInfoBuilder { @@ -6281,7 +6368,7 @@ impl ::std::default::Default for PipelineDynamicStateCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_DYNAMIC_STATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineDynamicStateCreateFlags::default(), dynamic_state_count: u32::default(), @@ -6289,6 +6376,9 @@ impl ::std::default::Default for PipelineDynamicStateCreateInfo { } } } +unsafe impl TaggedStructure for PipelineDynamicStateCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_DYNAMIC_STATE_CREATE_INFO; +} impl PipelineDynamicStateCreateInfo { pub fn builder<'a>() -> PipelineDynamicStateCreateInfoBuilder<'a> { PipelineDynamicStateCreateInfoBuilder { @@ -6434,7 +6524,7 @@ impl ::std::default::Default for PipelineDepthStencilStateCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineDepthStencilStateCreateFlags::default(), depth_test_enable: Bool32::default(), @@ -6449,6 +6539,9 @@ impl ::std::default::Default for PipelineDepthStencilStateCreateInfo { } } } +unsafe impl TaggedStructure for PipelineDepthStencilStateCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO; +} impl PipelineDepthStencilStateCreateInfo { pub fn builder<'a>() -> PipelineDepthStencilStateCreateInfoBuilder<'a> { PipelineDepthStencilStateCreateInfoBuilder { @@ -6560,7 +6653,7 @@ impl ::std::default::Default for GraphicsPipelineCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::GRAPHICS_PIPELINE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineCreateFlags::default(), stage_count: u32::default(), @@ -6582,6 +6675,9 @@ impl ::std::default::Default for GraphicsPipelineCreateInfo { } } } +unsafe impl TaggedStructure for GraphicsPipelineCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::GRAPHICS_PIPELINE_CREATE_INFO; +} impl GraphicsPipelineCreateInfo { pub fn builder<'a>() -> GraphicsPipelineCreateInfoBuilder<'a> { GraphicsPipelineCreateInfoBuilder { @@ -6746,7 +6842,7 @@ impl ::std::default::Default for PipelineCacheCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_CACHE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineCacheCreateFlags::default(), initial_data_size: usize::default(), @@ -6754,6 +6850,9 @@ impl ::std::default::Default for PipelineCacheCreateInfo { } } } +unsafe impl TaggedStructure for PipelineCacheCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_CACHE_CREATE_INFO; +} impl PipelineCacheCreateInfo { pub fn builder<'a>() -> PipelineCacheCreateInfoBuilder<'a> { PipelineCacheCreateInfoBuilder { @@ -6950,7 +7049,7 @@ impl ::std::default::Default for PipelineLayoutCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_LAYOUT_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineLayoutCreateFlags::default(), set_layout_count: u32::default(), @@ -6960,6 +7059,9 @@ impl ::std::default::Default for PipelineLayoutCreateInfo { } } } +unsafe impl TaggedStructure for PipelineLayoutCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_LAYOUT_CREATE_INFO; +} impl PipelineLayoutCreateInfo { pub fn builder<'a>() -> PipelineLayoutCreateInfoBuilder<'a> { PipelineLayoutCreateInfoBuilder { @@ -7037,7 +7139,7 @@ impl ::std::default::Default for SamplerCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SAMPLER_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: SamplerCreateFlags::default(), mag_filter: Filter::default(), @@ -7058,6 +7160,9 @@ impl ::std::default::Default for SamplerCreateInfo { } } } +unsafe impl TaggedStructure for SamplerCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SAMPLER_CREATE_INFO; +} impl SamplerCreateInfo { pub fn builder<'a>() -> SamplerCreateInfoBuilder<'a> { SamplerCreateInfoBuilder { @@ -7199,13 +7304,16 @@ impl ::std::default::Default for CommandPoolCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::COMMAND_POOL_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: CommandPoolCreateFlags::default(), queue_family_index: u32::default(), } } } +unsafe impl TaggedStructure for CommandPoolCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::COMMAND_POOL_CREATE_INFO; +} impl CommandPoolCreateInfo { pub fn builder<'a>() -> CommandPoolCreateInfoBuilder<'a> { CommandPoolCreateInfoBuilder { @@ -7263,7 +7371,7 @@ impl ::std::default::Default for CommandBufferAllocateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::COMMAND_BUFFER_ALLOCATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), command_pool: CommandPool::default(), level: CommandBufferLevel::default(), @@ -7271,6 +7379,9 @@ impl ::std::default::Default for CommandBufferAllocateInfo { } } } +unsafe impl TaggedStructure for CommandBufferAllocateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::COMMAND_BUFFER_ALLOCATE_INFO; +} impl CommandBufferAllocateInfo { pub fn builder<'a>() -> CommandBufferAllocateInfoBuilder<'a> { CommandBufferAllocateInfoBuilder { @@ -7336,7 +7447,7 @@ impl ::std::default::Default for CommandBufferInheritanceInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::COMMAND_BUFFER_INHERITANCE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), render_pass: RenderPass::default(), subpass: u32::default(), @@ -7347,6 +7458,9 @@ impl ::std::default::Default for CommandBufferInheritanceInfo { } } } +unsafe impl TaggedStructure for CommandBufferInheritanceInfo { + const STRUCTURE_TYPE: StructureType = StructureType::COMMAND_BUFFER_INHERITANCE_INFO; +} impl CommandBufferInheritanceInfo { pub fn builder<'a>() -> CommandBufferInheritanceInfoBuilder<'a> { CommandBufferInheritanceInfoBuilder { @@ -7438,13 +7552,16 @@ impl ::std::default::Default for CommandBufferBeginInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::COMMAND_BUFFER_BEGIN_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: CommandBufferUsageFlags::default(), p_inheritance_info: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for CommandBufferBeginInfo { + const STRUCTURE_TYPE: StructureType = StructureType::COMMAND_BUFFER_BEGIN_INFO; +} impl CommandBufferBeginInfo { pub fn builder<'a>() -> CommandBufferBeginInfoBuilder<'a> { CommandBufferBeginInfoBuilder { @@ -7532,7 +7649,7 @@ impl ::std::default::Default for RenderPassBeginInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_BEGIN_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), render_pass: RenderPass::default(), framebuffer: Framebuffer::default(), @@ -7542,6 +7659,9 @@ impl ::std::default::Default for RenderPassBeginInfo { } } } +unsafe impl TaggedStructure for RenderPassBeginInfo { + const STRUCTURE_TYPE: StructureType = StructureType::RENDER_PASS_BEGIN_INFO; +} impl RenderPassBeginInfo { pub fn builder<'a>() -> RenderPassBeginInfoBuilder<'a> { RenderPassBeginInfoBuilder { @@ -8100,7 +8220,7 @@ impl ::std::default::Default for RenderPassCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: RenderPassCreateFlags::default(), attachment_count: u32::default(), @@ -8112,6 +8232,9 @@ impl ::std::default::Default for RenderPassCreateInfo { } } } +unsafe impl TaggedStructure for RenderPassCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::RENDER_PASS_CREATE_INFO; +} impl RenderPassCreateInfo { pub fn builder<'a>() -> RenderPassCreateInfoBuilder<'a> { RenderPassCreateInfoBuilder { @@ -8195,12 +8318,15 @@ impl ::std::default::Default for EventCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::EVENT_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: EventCreateFlags::default(), } } } +unsafe impl TaggedStructure for EventCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::EVENT_CREATE_INFO; +} impl EventCreateInfo { pub fn builder<'a>() -> EventCreateInfoBuilder<'a> { EventCreateInfoBuilder { @@ -8266,12 +8392,15 @@ impl ::std::default::Default for FenceCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::FENCE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: FenceCreateFlags::default(), } } } +unsafe impl TaggedStructure for FenceCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::FENCE_CREATE_INFO; +} impl FenceCreateInfo { pub fn builder<'a>() -> FenceCreateInfoBuilder<'a> { FenceCreateInfoBuilder { @@ -9749,12 +9878,15 @@ impl ::std::default::Default for SemaphoreCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SEMAPHORE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: SemaphoreCreateFlags::default(), } } } +unsafe impl TaggedStructure for SemaphoreCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SEMAPHORE_CREATE_INFO; +} impl SemaphoreCreateInfo { pub fn builder<'a>() -> SemaphoreCreateInfoBuilder<'a> { SemaphoreCreateInfoBuilder { @@ -9823,7 +9955,7 @@ impl ::std::default::Default for QueryPoolCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::QUERY_POOL_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: QueryPoolCreateFlags::default(), query_type: QueryType::default(), @@ -9832,6 +9964,9 @@ impl ::std::default::Default for QueryPoolCreateInfo { } } } +unsafe impl TaggedStructure for QueryPoolCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::QUERY_POOL_CREATE_INFO; +} impl QueryPoolCreateInfo { pub fn builder<'a>() -> QueryPoolCreateInfoBuilder<'a> { QueryPoolCreateInfoBuilder { @@ -9918,7 +10053,7 @@ impl ::std::default::Default for FramebufferCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::FRAMEBUFFER_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: FramebufferCreateFlags::default(), render_pass: RenderPass::default(), @@ -9930,6 +10065,9 @@ impl ::std::default::Default for FramebufferCreateInfo { } } } +unsafe impl TaggedStructure for FramebufferCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::FRAMEBUFFER_CREATE_INFO; +} impl FramebufferCreateInfo { pub fn builder<'a>() -> FramebufferCreateInfoBuilder<'a> { FramebufferCreateInfoBuilder { @@ -10319,7 +10457,7 @@ impl ::std::default::Default for SubmitInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBMIT_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), wait_semaphore_count: u32::default(), p_wait_semaphores: ::std::ptr::null(), @@ -10331,6 +10469,9 @@ impl ::std::default::Default for SubmitInfo { } } } +unsafe impl TaggedStructure for SubmitInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SUBMIT_INFO; +} impl SubmitInfo { pub fn builder<'a>() -> SubmitInfoBuilder<'a> { SubmitInfoBuilder { @@ -10660,13 +10801,16 @@ impl ::std::default::Default for DisplayModeCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_MODE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DisplayModeCreateFlagsKHR::default(), parameters: DisplayModeParametersKHR::default(), } } } +unsafe impl TaggedStructure for DisplayModeCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_MODE_CREATE_INFO_KHR; +} impl DisplayModeCreateInfoKHR { pub fn builder<'a>() -> DisplayModeCreateInfoKHRBuilder<'a> { DisplayModeCreateInfoKHRBuilder { @@ -10821,7 +10965,7 @@ impl ::std::default::Default for DisplaySurfaceCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_SURFACE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DisplaySurfaceCreateFlagsKHR::default(), display_mode: DisplayModeKHR::default(), @@ -10834,6 +10978,9 @@ impl ::std::default::Default for DisplaySurfaceCreateInfoKHR { } } } +unsafe impl TaggedStructure for DisplaySurfaceCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_SURFACE_CREATE_INFO_KHR; +} impl DisplaySurfaceCreateInfoKHR { pub fn builder<'a>() -> DisplaySurfaceCreateInfoKHRBuilder<'a> { DisplaySurfaceCreateInfoKHRBuilder { @@ -10921,7 +11068,7 @@ impl ::std::default::Default for DisplayPresentInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_PRESENT_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_rect: Rect2D::default(), dst_rect: Rect2D::default(), @@ -10929,6 +11076,9 @@ impl ::std::default::Default for DisplayPresentInfoKHR { } } } +unsafe impl TaggedStructure for DisplayPresentInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_PRESENT_INFO_KHR; +} impl DisplayPresentInfoKHR { pub fn builder<'a>() -> DisplayPresentInfoKHRBuilder<'a> { DisplayPresentInfoKHRBuilder { @@ -11093,13 +11243,16 @@ impl ::std::default::Default for AndroidSurfaceCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ANDROID_SURFACE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: AndroidSurfaceCreateFlagsKHR::default(), window: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for AndroidSurfaceCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::ANDROID_SURFACE_CREATE_INFO_KHR; +} impl AndroidSurfaceCreateInfoKHR { pub fn builder<'a>() -> AndroidSurfaceCreateInfoKHRBuilder<'a> { AndroidSurfaceCreateInfoKHRBuilder { @@ -11156,13 +11309,16 @@ impl ::std::default::Default for ViSurfaceCreateInfoNN { #[inline] fn default() -> Self { Self { - s_type: StructureType::VI_SURFACE_CREATE_INFO_NN, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: ViSurfaceCreateFlagsNN::default(), window: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for ViSurfaceCreateInfoNN { + const STRUCTURE_TYPE: StructureType = StructureType::VI_SURFACE_CREATE_INFO_NN; +} impl ViSurfaceCreateInfoNN { pub fn builder<'a>() -> ViSurfaceCreateInfoNNBuilder<'a> { ViSurfaceCreateInfoNNBuilder { @@ -11220,7 +11376,7 @@ impl ::std::default::Default for WaylandSurfaceCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::WAYLAND_SURFACE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: WaylandSurfaceCreateFlagsKHR::default(), display: ::std::ptr::null_mut(), @@ -11228,6 +11384,9 @@ impl ::std::default::Default for WaylandSurfaceCreateInfoKHR { } } } +unsafe impl TaggedStructure for WaylandSurfaceCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::WAYLAND_SURFACE_CREATE_INFO_KHR; +} impl WaylandSurfaceCreateInfoKHR { pub fn builder<'a>() -> WaylandSurfaceCreateInfoKHRBuilder<'a> { WaylandSurfaceCreateInfoKHRBuilder { @@ -11290,7 +11449,7 @@ impl ::std::default::Default for Win32SurfaceCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::WIN32_SURFACE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: Win32SurfaceCreateFlagsKHR::default(), hinstance: unsafe { ::std::mem::zeroed() }, @@ -11298,6 +11457,9 @@ impl ::std::default::Default for Win32SurfaceCreateInfoKHR { } } } +unsafe impl TaggedStructure for Win32SurfaceCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::WIN32_SURFACE_CREATE_INFO_KHR; +} impl Win32SurfaceCreateInfoKHR { pub fn builder<'a>() -> Win32SurfaceCreateInfoKHRBuilder<'a> { Win32SurfaceCreateInfoKHRBuilder { @@ -11360,7 +11522,7 @@ impl ::std::default::Default for XlibSurfaceCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::XLIB_SURFACE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: XlibSurfaceCreateFlagsKHR::default(), dpy: ::std::ptr::null_mut(), @@ -11368,6 +11530,9 @@ impl ::std::default::Default for XlibSurfaceCreateInfoKHR { } } } +unsafe impl TaggedStructure for XlibSurfaceCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::XLIB_SURFACE_CREATE_INFO_KHR; +} impl XlibSurfaceCreateInfoKHR { pub fn builder<'a>() -> XlibSurfaceCreateInfoKHRBuilder<'a> { XlibSurfaceCreateInfoKHRBuilder { @@ -11430,7 +11595,7 @@ impl ::std::default::Default for XcbSurfaceCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::XCB_SURFACE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: XcbSurfaceCreateFlagsKHR::default(), connection: ::std::ptr::null_mut(), @@ -11438,6 +11603,9 @@ impl ::std::default::Default for XcbSurfaceCreateInfoKHR { } } } +unsafe impl TaggedStructure for XcbSurfaceCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::XCB_SURFACE_CREATE_INFO_KHR; +} impl XcbSurfaceCreateInfoKHR { pub fn builder<'a>() -> XcbSurfaceCreateInfoKHRBuilder<'a> { XcbSurfaceCreateInfoKHRBuilder { @@ -11500,7 +11668,7 @@ impl ::std::default::Default for DirectFBSurfaceCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DIRECTFB_SURFACE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DirectFBSurfaceCreateFlagsEXT::default(), dfb: ::std::ptr::null_mut(), @@ -11508,6 +11676,9 @@ impl ::std::default::Default for DirectFBSurfaceCreateInfoEXT { } } } +unsafe impl TaggedStructure for DirectFBSurfaceCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DIRECTFB_SURFACE_CREATE_INFO_EXT; +} impl DirectFBSurfaceCreateInfoEXT { pub fn builder<'a>() -> DirectFBSurfaceCreateInfoEXTBuilder<'a> { DirectFBSurfaceCreateInfoEXTBuilder { @@ -11569,13 +11740,16 @@ impl ::std::default::Default for ImagePipeSurfaceCreateInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGEPIPE_SURFACE_CREATE_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: ImagePipeSurfaceCreateFlagsFUCHSIA::default(), image_pipe_handle: zx_handle_t::default(), } } } +unsafe impl TaggedStructure for ImagePipeSurfaceCreateInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGEPIPE_SURFACE_CREATE_INFO_FUCHSIA; +} impl ImagePipeSurfaceCreateInfoFUCHSIA { pub fn builder<'a>() -> ImagePipeSurfaceCreateInfoFUCHSIABuilder<'a> { ImagePipeSurfaceCreateInfoFUCHSIABuilder { @@ -11632,13 +11806,16 @@ impl ::std::default::Default for StreamDescriptorSurfaceCreateInfoGGP { #[inline] fn default() -> Self { Self { - s_type: StructureType::STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: StreamDescriptorSurfaceCreateFlagsGGP::default(), stream_descriptor: GgpStreamDescriptor::default(), } } } +unsafe impl TaggedStructure for StreamDescriptorSurfaceCreateInfoGGP { + const STRUCTURE_TYPE: StructureType = StructureType::STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP; +} impl StreamDescriptorSurfaceCreateInfoGGP { pub fn builder<'a>() -> StreamDescriptorSurfaceCreateInfoGGPBuilder<'a> { StreamDescriptorSurfaceCreateInfoGGPBuilder { @@ -11696,7 +11873,7 @@ impl ::std::default::Default for ScreenSurfaceCreateInfoQNX { #[inline] fn default() -> Self { Self { - s_type: StructureType::SCREEN_SURFACE_CREATE_INFO_QNX, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: ScreenSurfaceCreateFlagsQNX::default(), context: ::std::ptr::null_mut(), @@ -11704,6 +11881,9 @@ impl ::std::default::Default for ScreenSurfaceCreateInfoQNX { } } } +unsafe impl TaggedStructure for ScreenSurfaceCreateInfoQNX { + const STRUCTURE_TYPE: StructureType = StructureType::SCREEN_SURFACE_CREATE_INFO_QNX; +} impl ScreenSurfaceCreateInfoQNX { pub fn builder<'a>() -> ScreenSurfaceCreateInfoQNXBuilder<'a> { ScreenSurfaceCreateInfoQNXBuilder { @@ -11829,7 +12009,7 @@ impl ::std::default::Default for SwapchainCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::SWAPCHAIN_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: SwapchainCreateFlagsKHR::default(), surface: SurfaceKHR::default(), @@ -11850,6 +12030,9 @@ impl ::std::default::Default for SwapchainCreateInfoKHR { } } } +unsafe impl TaggedStructure for SwapchainCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::SWAPCHAIN_CREATE_INFO_KHR; +} impl SwapchainCreateInfoKHR { pub fn builder<'a>() -> SwapchainCreateInfoKHRBuilder<'a> { SwapchainCreateInfoKHRBuilder { @@ -11991,7 +12174,7 @@ impl ::std::default::Default for PresentInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PRESENT_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), wait_semaphore_count: u32::default(), p_wait_semaphores: ::std::ptr::null(), @@ -12002,6 +12185,9 @@ impl ::std::default::Default for PresentInfoKHR { } } } +unsafe impl TaggedStructure for PresentInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PRESENT_INFO_KHR; +} impl PresentInfoKHR { pub fn builder<'a>() -> PresentInfoKHRBuilder<'a> { PresentInfoKHRBuilder { @@ -12099,7 +12285,7 @@ impl ::std::default::Default for DebugReportCallbackCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DebugReportFlagsEXT::default(), pfn_callback: PFN_vkDebugReportCallbackEXT::default(), @@ -12107,6 +12293,9 @@ impl ::std::default::Default for DebugReportCallbackCreateInfoEXT { } } } +unsafe impl TaggedStructure for DebugReportCallbackCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT; +} impl DebugReportCallbackCreateInfoEXT { pub fn builder<'a>() -> DebugReportCallbackCreateInfoEXTBuilder<'a> { DebugReportCallbackCreateInfoEXTBuilder { @@ -12170,13 +12359,16 @@ impl ::std::default::Default for ValidationFlagsEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VALIDATION_FLAGS_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), disabled_validation_check_count: u32::default(), p_disabled_validation_checks: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for ValidationFlagsEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VALIDATION_FLAGS_EXT; +} impl ValidationFlagsEXT { pub fn builder<'a>() -> ValidationFlagsEXTBuilder<'a> { ValidationFlagsEXTBuilder { @@ -12236,7 +12428,7 @@ impl ::std::default::Default for ValidationFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VALIDATION_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), enabled_validation_feature_count: u32::default(), p_enabled_validation_features: ::std::ptr::null(), @@ -12245,6 +12437,9 @@ impl ::std::default::Default for ValidationFeaturesEXT { } } } +unsafe impl TaggedStructure for ValidationFeaturesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VALIDATION_FEATURES_EXT; +} impl ValidationFeaturesEXT { pub fn builder<'a>() -> ValidationFeaturesEXTBuilder<'a> { ValidationFeaturesEXTBuilder { @@ -12310,12 +12505,16 @@ impl ::std::default::Default for PipelineRasterizationStateRasterizationOrderAMD #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), rasterization_order: RasterizationOrderAMD::default(), } } } +unsafe impl TaggedStructure for PipelineRasterizationStateRasterizationOrderAMD { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD; +} impl PipelineRasterizationStateRasterizationOrderAMD { pub fn builder<'a>() -> PipelineRasterizationStateRasterizationOrderAMDBuilder<'a> { PipelineRasterizationStateRasterizationOrderAMDBuilder { @@ -12376,7 +12575,7 @@ impl ::std::default::Default for DebugMarkerObjectNameInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEBUG_MARKER_OBJECT_NAME_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), object_type: DebugReportObjectTypeEXT::default(), object: u64::default(), @@ -12384,6 +12583,9 @@ impl ::std::default::Default for DebugMarkerObjectNameInfoEXT { } } } +unsafe impl TaggedStructure for DebugMarkerObjectNameInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEBUG_MARKER_OBJECT_NAME_INFO_EXT; +} impl DebugMarkerObjectNameInfoEXT { pub fn builder<'a>() -> DebugMarkerObjectNameInfoEXTBuilder<'a> { DebugMarkerObjectNameInfoEXTBuilder { @@ -12448,7 +12650,7 @@ impl ::std::default::Default for DebugMarkerObjectTagInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEBUG_MARKER_OBJECT_TAG_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), object_type: DebugReportObjectTypeEXT::default(), object: u64::default(), @@ -12458,6 +12660,9 @@ impl ::std::default::Default for DebugMarkerObjectTagInfoEXT { } } } +unsafe impl TaggedStructure for DebugMarkerObjectTagInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEBUG_MARKER_OBJECT_TAG_INFO_EXT; +} impl DebugMarkerObjectTagInfoEXT { pub fn builder<'a>() -> DebugMarkerObjectTagInfoEXTBuilder<'a> { DebugMarkerObjectTagInfoEXTBuilder { @@ -12525,13 +12730,16 @@ impl ::std::default::Default for DebugMarkerMarkerInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEBUG_MARKER_MARKER_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_marker_name: ::std::ptr::null(), color: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for DebugMarkerMarkerInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEBUG_MARKER_MARKER_INFO_EXT; +} impl DebugMarkerMarkerInfoEXT { pub fn builder<'a>() -> DebugMarkerMarkerInfoEXTBuilder<'a> { DebugMarkerMarkerInfoEXTBuilder { @@ -12587,12 +12795,15 @@ impl ::std::default::Default for DedicatedAllocationImageCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), dedicated_allocation: Bool32::default(), } } } +unsafe impl TaggedStructure for DedicatedAllocationImageCreateInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV; +} impl DedicatedAllocationImageCreateInfoNV { pub fn builder<'a>() -> DedicatedAllocationImageCreateInfoNVBuilder<'a> { DedicatedAllocationImageCreateInfoNVBuilder { @@ -12645,12 +12856,15 @@ impl ::std::default::Default for DedicatedAllocationBufferCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), dedicated_allocation: Bool32::default(), } } } +unsafe impl TaggedStructure for DedicatedAllocationBufferCreateInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV; +} impl DedicatedAllocationBufferCreateInfoNV { pub fn builder<'a>() -> DedicatedAllocationBufferCreateInfoNVBuilder<'a> { DedicatedAllocationBufferCreateInfoNVBuilder { @@ -12704,13 +12918,17 @@ impl ::std::default::Default for DedicatedAllocationMemoryAllocateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image: Image::default(), buffer: Buffer::default(), } } } +unsafe impl TaggedStructure for DedicatedAllocationMemoryAllocateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV; +} impl DedicatedAllocationMemoryAllocateInfoNV { pub fn builder<'a>() -> DedicatedAllocationMemoryAllocateInfoNVBuilder<'a> { DedicatedAllocationMemoryAllocateInfoNVBuilder { @@ -12842,12 +13060,15 @@ impl ::std::default::Default for ExternalMemoryImageCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_types: ExternalMemoryHandleTypeFlagsNV::default(), } } } +unsafe impl TaggedStructure for ExternalMemoryImageCreateInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV; +} impl ExternalMemoryImageCreateInfoNV { pub fn builder<'a>() -> ExternalMemoryImageCreateInfoNVBuilder<'a> { ExternalMemoryImageCreateInfoNVBuilder { @@ -12900,12 +13121,15 @@ impl ::std::default::Default for ExportMemoryAllocateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_MEMORY_ALLOCATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_types: ExternalMemoryHandleTypeFlagsNV::default(), } } } +unsafe impl TaggedStructure for ExportMemoryAllocateInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_MEMORY_ALLOCATE_INFO_NV; +} impl ExportMemoryAllocateInfoNV { pub fn builder<'a>() -> ExportMemoryAllocateInfoNVBuilder<'a> { ExportMemoryAllocateInfoNVBuilder { @@ -12959,13 +13183,16 @@ impl ::std::default::Default for ImportMemoryWin32HandleInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_MEMORY_WIN32_HANDLE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_type: ExternalMemoryHandleTypeFlagsNV::default(), handle: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for ImportMemoryWin32HandleInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_MEMORY_WIN32_HANDLE_INFO_NV; +} impl ImportMemoryWin32HandleInfoNV { pub fn builder<'a>() -> ImportMemoryWin32HandleInfoNVBuilder<'a> { ImportMemoryWin32HandleInfoNVBuilder { @@ -13024,13 +13251,16 @@ impl ::std::default::Default for ExportMemoryWin32HandleInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_MEMORY_WIN32_HANDLE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_attributes: ::std::ptr::null(), dw_access: DWORD::default(), } } } +unsafe impl TaggedStructure for ExportMemoryWin32HandleInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_MEMORY_WIN32_HANDLE_INFO_NV; +} impl ExportMemoryWin32HandleInfoNV { pub fn builder<'a>() -> ExportMemoryWin32HandleInfoNVBuilder<'a> { ExportMemoryWin32HandleInfoNVBuilder { @@ -13094,7 +13324,7 @@ impl ::std::default::Default for Win32KeyedMutexAcquireReleaseInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), acquire_count: u32::default(), p_acquire_syncs: ::std::ptr::null(), @@ -13106,6 +13336,9 @@ impl ::std::default::Default for Win32KeyedMutexAcquireReleaseInfoNV { } } } +unsafe impl TaggedStructure for Win32KeyedMutexAcquireReleaseInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV; +} impl Win32KeyedMutexAcquireReleaseInfoNV { pub fn builder<'a>() -> Win32KeyedMutexAcquireReleaseInfoNVBuilder<'a> { Win32KeyedMutexAcquireReleaseInfoNVBuilder { @@ -13185,12 +13418,16 @@ impl ::std::default::Default for PhysicalDeviceDeviceGeneratedCommandsFeaturesNV #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), device_generated_commands: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceDeviceGeneratedCommandsFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NV; +} impl PhysicalDeviceDeviceGeneratedCommandsFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder<'a> { PhysicalDeviceDeviceGeneratedCommandsFeaturesNVBuilder { @@ -13248,12 +13485,15 @@ impl ::std::default::Default for DevicePrivateDataCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_PRIVATE_DATA_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), private_data_slot_request_count: u32::default(), } } } +unsafe impl TaggedStructure for DevicePrivateDataCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_PRIVATE_DATA_CREATE_INFO; +} impl DevicePrivateDataCreateInfo { pub fn builder<'a>() -> DevicePrivateDataCreateInfoBuilder<'a> { DevicePrivateDataCreateInfoBuilder { @@ -13306,12 +13546,15 @@ impl ::std::default::Default for PrivateDataSlotCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PRIVATE_DATA_SLOT_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PrivateDataSlotCreateFlags::default(), } } } +unsafe impl TaggedStructure for PrivateDataSlotCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PRIVATE_DATA_SLOT_CREATE_INFO; +} impl PrivateDataSlotCreateInfo { pub fn builder<'a>() -> PrivateDataSlotCreateInfoBuilder<'a> { PrivateDataSlotCreateInfoBuilder { @@ -13362,12 +13605,15 @@ impl ::std::default::Default for PhysicalDevicePrivateDataFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PRIVATE_DATA_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), private_data: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePrivateDataFeatures { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_PRIVATE_DATA_FEATURES; +} impl PhysicalDevicePrivateDataFeatures { pub fn builder<'a>() -> PhysicalDevicePrivateDataFeaturesBuilder<'a> { PhysicalDevicePrivateDataFeaturesBuilder { @@ -13430,7 +13676,7 @@ impl ::std::default::Default for PhysicalDeviceDeviceGeneratedCommandsProperties #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_graphics_shader_group_count: u32::default(), max_indirect_sequence_count: u32::default(), @@ -13444,6 +13690,10 @@ impl ::std::default::Default for PhysicalDeviceDeviceGeneratedCommandsProperties } } } +unsafe impl TaggedStructure for PhysicalDeviceDeviceGeneratedCommandsPropertiesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV; +} impl PhysicalDeviceDeviceGeneratedCommandsPropertiesNV { pub fn builder<'a>() -> PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder<'a> { PhysicalDeviceDeviceGeneratedCommandsPropertiesNVBuilder { @@ -13563,12 +13813,15 @@ impl ::std::default::Default for PhysicalDeviceMultiDrawPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_multi_draw_count: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMultiDrawPropertiesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT; +} impl PhysicalDeviceMultiDrawPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceMultiDrawPropertiesEXTBuilder<'a> { PhysicalDeviceMultiDrawPropertiesEXTBuilder { @@ -13624,7 +13877,7 @@ impl ::std::default::Default for GraphicsShaderGroupCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::GRAPHICS_SHADER_GROUP_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), stage_count: u32::default(), p_stages: ::std::ptr::null(), @@ -13633,6 +13886,9 @@ impl ::std::default::Default for GraphicsShaderGroupCreateInfoNV { } } } +unsafe impl TaggedStructure for GraphicsShaderGroupCreateInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::GRAPHICS_SHADER_GROUP_CREATE_INFO_NV; +} impl GraphicsShaderGroupCreateInfoNV { pub fn builder<'a>() -> GraphicsShaderGroupCreateInfoNVBuilder<'a> { GraphicsShaderGroupCreateInfoNVBuilder { @@ -13703,7 +13959,7 @@ impl ::std::default::Default for GraphicsPipelineShaderGroupsCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::GRAPHICS_PIPELINE_SHADER_GROUPS_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), group_count: u32::default(), p_groups: ::std::ptr::null(), @@ -13712,6 +13968,10 @@ impl ::std::default::Default for GraphicsPipelineShaderGroupsCreateInfoNV { } } } +unsafe impl TaggedStructure for GraphicsPipelineShaderGroupsCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::GRAPHICS_PIPELINE_SHADER_GROUPS_CREATE_INFO_NV; +} impl GraphicsPipelineShaderGroupsCreateInfoNV { pub fn builder<'a>() -> GraphicsPipelineShaderGroupsCreateInfoNVBuilder<'a> { GraphicsPipelineShaderGroupsCreateInfoNVBuilder { @@ -14036,7 +14296,7 @@ impl ::std::default::Default for IndirectCommandsLayoutTokenNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::INDIRECT_COMMANDS_LAYOUT_TOKEN_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), token_type: IndirectCommandsTokenTypeNV::default(), stream: u32::default(), @@ -14054,6 +14314,9 @@ impl ::std::default::Default for IndirectCommandsLayoutTokenNV { } } } +unsafe impl TaggedStructure for IndirectCommandsLayoutTokenNV { + const STRUCTURE_TYPE: StructureType = StructureType::INDIRECT_COMMANDS_LAYOUT_TOKEN_NV; +} impl IndirectCommandsLayoutTokenNV { pub fn builder<'a>() -> IndirectCommandsLayoutTokenNVBuilder<'a> { IndirectCommandsLayoutTokenNVBuilder { @@ -14172,7 +14435,7 @@ impl ::std::default::Default for IndirectCommandsLayoutCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: IndirectCommandsLayoutUsageFlagsNV::default(), pipeline_bind_point: PipelineBindPoint::default(), @@ -14183,6 +14446,9 @@ impl ::std::default::Default for IndirectCommandsLayoutCreateInfoNV { } } } +unsafe impl TaggedStructure for IndirectCommandsLayoutCreateInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NV; +} impl IndirectCommandsLayoutCreateInfoNV { pub fn builder<'a>() -> IndirectCommandsLayoutCreateInfoNVBuilder<'a> { IndirectCommandsLayoutCreateInfoNVBuilder { @@ -14262,7 +14528,7 @@ impl ::std::default::Default for GeneratedCommandsInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::GENERATED_COMMANDS_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), pipeline_bind_point: PipelineBindPoint::default(), pipeline: Pipeline::default(), @@ -14280,6 +14546,9 @@ impl ::std::default::Default for GeneratedCommandsInfoNV { } } } +unsafe impl TaggedStructure for GeneratedCommandsInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::GENERATED_COMMANDS_INFO_NV; +} impl GeneratedCommandsInfoNV { pub fn builder<'a>() -> GeneratedCommandsInfoNVBuilder<'a> { GeneratedCommandsInfoNVBuilder { @@ -14392,7 +14661,7 @@ impl ::std::default::Default for GeneratedCommandsMemoryRequirementsInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::GENERATED_COMMANDS_MEMORY_REQUIREMENTS_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), pipeline_bind_point: PipelineBindPoint::default(), pipeline: Pipeline::default(), @@ -14401,6 +14670,10 @@ impl ::std::default::Default for GeneratedCommandsMemoryRequirementsInfoNV { } } } +unsafe impl TaggedStructure for GeneratedCommandsMemoryRequirementsInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::GENERATED_COMMANDS_MEMORY_REQUIREMENTS_INFO_NV; +} impl GeneratedCommandsMemoryRequirementsInfoNV { pub fn builder<'a>() -> GeneratedCommandsMemoryRequirementsInfoNVBuilder<'a> { GeneratedCommandsMemoryRequirementsInfoNVBuilder { @@ -14469,12 +14742,15 @@ impl ::std::default::Default for PhysicalDeviceFeatures2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FEATURES_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), features: PhysicalDeviceFeatures::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceFeatures2 { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_FEATURES_2; +} impl PhysicalDeviceFeatures2 { pub fn builder<'a>() -> PhysicalDeviceFeatures2Builder<'a> { PhysicalDeviceFeatures2Builder { @@ -14542,12 +14818,15 @@ impl ::std::default::Default for PhysicalDeviceProperties2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PROPERTIES_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), properties: PhysicalDeviceProperties::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceProperties2 { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_PROPERTIES_2; +} impl PhysicalDeviceProperties2 { pub fn builder<'a>() -> PhysicalDeviceProperties2Builder<'a> { PhysicalDeviceProperties2Builder { @@ -14613,12 +14892,15 @@ impl ::std::default::Default for FormatProperties2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::FORMAT_PROPERTIES_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), format_properties: FormatProperties::default(), } } } +unsafe impl TaggedStructure for FormatProperties2 { + const STRUCTURE_TYPE: StructureType = StructureType::FORMAT_PROPERTIES_2; +} impl FormatProperties2 { pub fn builder<'a>() -> FormatProperties2Builder<'a> { FormatProperties2Builder { @@ -14684,12 +14966,15 @@ impl ::std::default::Default for ImageFormatProperties2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_FORMAT_PROPERTIES_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), image_format_properties: ImageFormatProperties::default(), } } } +unsafe impl TaggedStructure for ImageFormatProperties2 { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_FORMAT_PROPERTIES_2; +} impl ImageFormatProperties2 { pub fn builder<'a>() -> ImageFormatProperties2Builder<'a> { ImageFormatProperties2Builder { @@ -14762,7 +15047,7 @@ impl ::std::default::Default for PhysicalDeviceImageFormatInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), format: Format::default(), ty: ImageType::default(), @@ -14772,6 +15057,9 @@ impl ::std::default::Default for PhysicalDeviceImageFormatInfo2 { } } } +unsafe impl TaggedStructure for PhysicalDeviceImageFormatInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2; +} impl PhysicalDeviceImageFormatInfo2 { pub fn builder<'a>() -> PhysicalDeviceImageFormatInfo2Builder<'a> { PhysicalDeviceImageFormatInfo2Builder { @@ -14857,12 +15145,15 @@ impl ::std::default::Default for QueueFamilyProperties2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::QUEUE_FAMILY_PROPERTIES_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), queue_family_properties: QueueFamilyProperties::default(), } } } +unsafe impl TaggedStructure for QueueFamilyProperties2 { + const STRUCTURE_TYPE: StructureType = StructureType::QUEUE_FAMILY_PROPERTIES_2; +} impl QueueFamilyProperties2 { pub fn builder<'a>() -> QueueFamilyProperties2Builder<'a> { QueueFamilyProperties2Builder { @@ -14931,12 +15222,15 @@ impl ::std::default::Default for PhysicalDeviceMemoryProperties2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MEMORY_PROPERTIES_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), memory_properties: PhysicalDeviceMemoryProperties::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMemoryProperties2 { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_MEMORY_PROPERTIES_2; +} impl PhysicalDeviceMemoryProperties2 { pub fn builder<'a>() -> PhysicalDeviceMemoryProperties2Builder<'a> { PhysicalDeviceMemoryProperties2Builder { @@ -15002,12 +15296,15 @@ impl ::std::default::Default for SparseImageFormatProperties2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::SPARSE_IMAGE_FORMAT_PROPERTIES_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), properties: SparseImageFormatProperties::default(), } } } +unsafe impl TaggedStructure for SparseImageFormatProperties2 { + const STRUCTURE_TYPE: StructureType = StructureType::SPARSE_IMAGE_FORMAT_PROPERTIES_2; +} impl SparseImageFormatProperties2 { pub fn builder<'a>() -> SparseImageFormatProperties2Builder<'a> { SparseImageFormatProperties2Builder { @@ -15062,7 +15359,7 @@ impl ::std::default::Default for PhysicalDeviceSparseImageFormatInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), format: Format::default(), ty: ImageType::default(), @@ -15072,6 +15369,9 @@ impl ::std::default::Default for PhysicalDeviceSparseImageFormatInfo2 { } } } +unsafe impl TaggedStructure for PhysicalDeviceSparseImageFormatInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2; +} impl PhysicalDeviceSparseImageFormatInfo2 { pub fn builder<'a>() -> PhysicalDeviceSparseImageFormatInfo2Builder<'a> { PhysicalDeviceSparseImageFormatInfo2Builder { @@ -15142,12 +15442,16 @@ impl ::std::default::Default for PhysicalDevicePushDescriptorPropertiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_push_descriptors: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePushDescriptorPropertiesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR; +} impl PhysicalDevicePushDescriptorPropertiesKHR { pub fn builder<'a>() -> PhysicalDevicePushDescriptorPropertiesKHRBuilder<'a> { PhysicalDevicePushDescriptorPropertiesKHRBuilder { @@ -15284,7 +15588,7 @@ impl ::std::default::Default for PhysicalDeviceDriverProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DRIVER_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), driver_id: DriverId::default(), driver_name: unsafe { ::std::mem::zeroed() }, @@ -15293,6 +15597,9 @@ impl ::std::default::Default for PhysicalDeviceDriverProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceDriverProperties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_DRIVER_PROPERTIES; +} impl PhysicalDeviceDriverProperties { pub fn builder<'a>() -> PhysicalDeviceDriverPropertiesBuilder<'a> { PhysicalDeviceDriverPropertiesBuilder { @@ -15361,13 +15668,16 @@ impl ::std::default::Default for PresentRegionsKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PRESENT_REGIONS_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), swapchain_count: u32::default(), p_regions: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for PresentRegionsKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PRESENT_REGIONS_KHR; +} impl PresentRegionsKHR { pub fn builder<'a>() -> PresentRegionsKHRBuilder<'a> { PresentRegionsKHRBuilder { @@ -15533,13 +15843,16 @@ impl ::std::default::Default for PhysicalDeviceVariablePointersFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), variable_pointers_storage_buffer: Bool32::default(), variable_pointers: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceVariablePointersFeatures { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES; +} impl PhysicalDeviceVariablePointersFeatures { pub fn builder<'a>() -> PhysicalDeviceVariablePointersFeaturesBuilder<'a> { PhysicalDeviceVariablePointersFeaturesBuilder { @@ -15667,12 +15980,15 @@ impl ::std::default::Default for PhysicalDeviceExternalImageFormatInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_type: ExternalMemoryHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceExternalImageFormatInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO; +} impl PhysicalDeviceExternalImageFormatInfo { pub fn builder<'a>() -> PhysicalDeviceExternalImageFormatInfoBuilder<'a> { PhysicalDeviceExternalImageFormatInfoBuilder { @@ -15728,12 +16044,15 @@ impl ::std::default::Default for ExternalImageFormatProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXTERNAL_IMAGE_FORMAT_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), external_memory_properties: ExternalMemoryProperties::default(), } } } +unsafe impl TaggedStructure for ExternalImageFormatProperties { + const STRUCTURE_TYPE: StructureType = StructureType::EXTERNAL_IMAGE_FORMAT_PROPERTIES; +} impl ExternalImageFormatProperties { pub fn builder<'a>() -> ExternalImageFormatPropertiesBuilder<'a> { ExternalImageFormatPropertiesBuilder { @@ -15791,7 +16110,7 @@ impl ::std::default::Default for PhysicalDeviceExternalBufferInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: BufferCreateFlags::default(), usage: BufferUsageFlags::default(), @@ -15799,6 +16118,9 @@ impl ::std::default::Default for PhysicalDeviceExternalBufferInfo { } } } +unsafe impl TaggedStructure for PhysicalDeviceExternalBufferInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO; +} impl PhysicalDeviceExternalBufferInfo { pub fn builder<'a>() -> PhysicalDeviceExternalBufferInfoBuilder<'a> { PhysicalDeviceExternalBufferInfoBuilder { @@ -15859,12 +16181,15 @@ impl ::std::default::Default for ExternalBufferProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXTERNAL_BUFFER_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), external_memory_properties: ExternalMemoryProperties::default(), } } } +unsafe impl TaggedStructure for ExternalBufferProperties { + const STRUCTURE_TYPE: StructureType = StructureType::EXTERNAL_BUFFER_PROPERTIES; +} impl ExternalBufferProperties { pub fn builder<'a>() -> ExternalBufferPropertiesBuilder<'a> { ExternalBufferPropertiesBuilder { @@ -15922,7 +16247,7 @@ impl ::std::default::Default for PhysicalDeviceIDProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_ID_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), device_uuid: unsafe { ::std::mem::zeroed() }, driver_uuid: unsafe { ::std::mem::zeroed() }, @@ -15932,6 +16257,9 @@ impl ::std::default::Default for PhysicalDeviceIDProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceIDProperties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_ID_PROPERTIES; +} impl PhysicalDeviceIDProperties { pub fn builder<'a>() -> PhysicalDeviceIDPropertiesBuilder<'a> { PhysicalDeviceIDPropertiesBuilder { @@ -16004,12 +16332,15 @@ impl ::std::default::Default for ExternalMemoryImageCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXTERNAL_MEMORY_IMAGE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_types: ExternalMemoryHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for ExternalMemoryImageCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::EXTERNAL_MEMORY_IMAGE_CREATE_INFO; +} impl ExternalMemoryImageCreateInfo { pub fn builder<'a>() -> ExternalMemoryImageCreateInfoBuilder<'a> { ExternalMemoryImageCreateInfoBuilder { @@ -16062,12 +16393,15 @@ impl ::std::default::Default for ExternalMemoryBufferCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXTERNAL_MEMORY_BUFFER_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_types: ExternalMemoryHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for ExternalMemoryBufferCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::EXTERNAL_MEMORY_BUFFER_CREATE_INFO; +} impl ExternalMemoryBufferCreateInfo { pub fn builder<'a>() -> ExternalMemoryBufferCreateInfoBuilder<'a> { ExternalMemoryBufferCreateInfoBuilder { @@ -16120,12 +16454,15 @@ impl ::std::default::Default for ExportMemoryAllocateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_MEMORY_ALLOCATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_types: ExternalMemoryHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for ExportMemoryAllocateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_MEMORY_ALLOCATE_INFO; +} impl ExportMemoryAllocateInfo { pub fn builder<'a>() -> ExportMemoryAllocateInfoBuilder<'a> { ExportMemoryAllocateInfoBuilder { @@ -16180,7 +16517,7 @@ impl ::std::default::Default for ImportMemoryWin32HandleInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_type: ExternalMemoryHandleTypeFlags::default(), handle: unsafe { ::std::mem::zeroed() }, @@ -16188,6 +16525,9 @@ impl ::std::default::Default for ImportMemoryWin32HandleInfoKHR { } } } +unsafe impl TaggedStructure for ImportMemoryWin32HandleInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR; +} impl ImportMemoryWin32HandleInfoKHR { pub fn builder<'a>() -> ImportMemoryWin32HandleInfoKHRBuilder<'a> { ImportMemoryWin32HandleInfoKHRBuilder { @@ -16252,7 +16592,7 @@ impl ::std::default::Default for ExportMemoryWin32HandleInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_attributes: ::std::ptr::null(), dw_access: DWORD::default(), @@ -16260,6 +16600,9 @@ impl ::std::default::Default for ExportMemoryWin32HandleInfoKHR { } } } +unsafe impl TaggedStructure for ExportMemoryWin32HandleInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR; +} impl ExportMemoryWin32HandleInfoKHR { pub fn builder<'a>() -> ExportMemoryWin32HandleInfoKHRBuilder<'a> { ExportMemoryWin32HandleInfoKHRBuilder { @@ -16323,13 +16666,16 @@ impl ::std::default::Default for ImportMemoryZirconHandleInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_MEMORY_ZIRCON_HANDLE_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_type: ExternalMemoryHandleTypeFlags::default(), handle: zx_handle_t::default(), } } } +unsafe impl TaggedStructure for ImportMemoryZirconHandleInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_MEMORY_ZIRCON_HANDLE_INFO_FUCHSIA; +} impl ImportMemoryZirconHandleInfoFUCHSIA { pub fn builder<'a>() -> ImportMemoryZirconHandleInfoFUCHSIABuilder<'a> { ImportMemoryZirconHandleInfoFUCHSIABuilder { @@ -16387,12 +16733,15 @@ impl ::std::default::Default for MemoryZirconHandlePropertiesFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_ZIRCON_HANDLE_PROPERTIES_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), memory_type_bits: u32::default(), } } } +unsafe impl TaggedStructure for MemoryZirconHandlePropertiesFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_ZIRCON_HANDLE_PROPERTIES_FUCHSIA; +} impl MemoryZirconHandlePropertiesFUCHSIA { pub fn builder<'a>() -> MemoryZirconHandlePropertiesFUCHSIABuilder<'a> { MemoryZirconHandlePropertiesFUCHSIABuilder { @@ -16444,13 +16793,16 @@ impl ::std::default::Default for MemoryGetZirconHandleInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_GET_ZIRCON_HANDLE_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), memory: DeviceMemory::default(), handle_type: ExternalMemoryHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for MemoryGetZirconHandleInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_GET_ZIRCON_HANDLE_INFO_FUCHSIA; +} impl MemoryGetZirconHandleInfoFUCHSIA { pub fn builder<'a>() -> MemoryGetZirconHandleInfoFUCHSIABuilder<'a> { MemoryGetZirconHandleInfoFUCHSIABuilder { @@ -16506,12 +16858,15 @@ impl ::std::default::Default for MemoryWin32HandlePropertiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_WIN32_HANDLE_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), memory_type_bits: u32::default(), } } } +unsafe impl TaggedStructure for MemoryWin32HandlePropertiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_WIN32_HANDLE_PROPERTIES_KHR; +} impl MemoryWin32HandlePropertiesKHR { pub fn builder<'a>() -> MemoryWin32HandlePropertiesKHRBuilder<'a> { MemoryWin32HandlePropertiesKHRBuilder { @@ -16563,13 +16918,16 @@ impl ::std::default::Default for MemoryGetWin32HandleInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_GET_WIN32_HANDLE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), memory: DeviceMemory::default(), handle_type: ExternalMemoryHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for MemoryGetWin32HandleInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_GET_WIN32_HANDLE_INFO_KHR; +} impl MemoryGetWin32HandleInfoKHR { pub fn builder<'a>() -> MemoryGetWin32HandleInfoKHRBuilder<'a> { MemoryGetWin32HandleInfoKHRBuilder { @@ -16626,13 +16984,16 @@ impl ::std::default::Default for ImportMemoryFdInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_MEMORY_FD_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_type: ExternalMemoryHandleTypeFlags::default(), fd: c_int::default(), } } } +unsafe impl TaggedStructure for ImportMemoryFdInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_MEMORY_FD_INFO_KHR; +} impl ImportMemoryFdInfoKHR { pub fn builder<'a>() -> ImportMemoryFdInfoKHRBuilder<'a> { ImportMemoryFdInfoKHRBuilder { @@ -16690,12 +17051,15 @@ impl ::std::default::Default for MemoryFdPropertiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_FD_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), memory_type_bits: u32::default(), } } } +unsafe impl TaggedStructure for MemoryFdPropertiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_FD_PROPERTIES_KHR; +} impl MemoryFdPropertiesKHR { pub fn builder<'a>() -> MemoryFdPropertiesKHRBuilder<'a> { MemoryFdPropertiesKHRBuilder { @@ -16747,13 +17111,16 @@ impl ::std::default::Default for MemoryGetFdInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_GET_FD_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), memory: DeviceMemory::default(), handle_type: ExternalMemoryHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for MemoryGetFdInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_GET_FD_INFO_KHR; +} impl MemoryGetFdInfoKHR { pub fn builder<'a>() -> MemoryGetFdInfoKHRBuilder<'a> { MemoryGetFdInfoKHRBuilder { @@ -16815,7 +17182,7 @@ impl ::std::default::Default for Win32KeyedMutexAcquireReleaseInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), acquire_count: u32::default(), p_acquire_syncs: ::std::ptr::null(), @@ -16827,6 +17194,9 @@ impl ::std::default::Default for Win32KeyedMutexAcquireReleaseInfoKHR { } } } +unsafe impl TaggedStructure for Win32KeyedMutexAcquireReleaseInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR; +} impl Win32KeyedMutexAcquireReleaseInfoKHR { pub fn builder<'a>() -> Win32KeyedMutexAcquireReleaseInfoKHRBuilder<'a> { Win32KeyedMutexAcquireReleaseInfoKHRBuilder { @@ -16906,12 +17276,15 @@ impl ::std::default::Default for PhysicalDeviceExternalSemaphoreInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_type: ExternalSemaphoreHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceExternalSemaphoreInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO; +} impl PhysicalDeviceExternalSemaphoreInfo { pub fn builder<'a>() -> PhysicalDeviceExternalSemaphoreInfoBuilder<'a> { PhysicalDeviceExternalSemaphoreInfoBuilder { @@ -16982,7 +17355,7 @@ impl ::std::default::Default for ExternalSemaphoreProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXTERNAL_SEMAPHORE_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), export_from_imported_handle_types: ExternalSemaphoreHandleTypeFlags::default(), compatible_handle_types: ExternalSemaphoreHandleTypeFlags::default(), @@ -16990,6 +17363,9 @@ impl ::std::default::Default for ExternalSemaphoreProperties { } } } +unsafe impl TaggedStructure for ExternalSemaphoreProperties { + const STRUCTURE_TYPE: StructureType = StructureType::EXTERNAL_SEMAPHORE_PROPERTIES; +} impl ExternalSemaphoreProperties { pub fn builder<'a>() -> ExternalSemaphorePropertiesBuilder<'a> { ExternalSemaphorePropertiesBuilder { @@ -17059,12 +17435,15 @@ impl ::std::default::Default for ExportSemaphoreCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_SEMAPHORE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_types: ExternalSemaphoreHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for ExportSemaphoreCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_SEMAPHORE_CREATE_INFO; +} impl ExportSemaphoreCreateInfo { pub fn builder<'a>() -> ExportSemaphoreCreateInfoBuilder<'a> { ExportSemaphoreCreateInfoBuilder { @@ -17121,7 +17500,7 @@ impl ::std::default::Default for ImportSemaphoreWin32HandleInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), semaphore: Semaphore::default(), flags: SemaphoreImportFlags::default(), @@ -17131,6 +17510,9 @@ impl ::std::default::Default for ImportSemaphoreWin32HandleInfoKHR { } } } +unsafe impl TaggedStructure for ImportSemaphoreWin32HandleInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR; +} impl ImportSemaphoreWin32HandleInfoKHR { pub fn builder<'a>() -> ImportSemaphoreWin32HandleInfoKHRBuilder<'a> { ImportSemaphoreWin32HandleInfoKHRBuilder { @@ -17203,7 +17585,7 @@ impl ::std::default::Default for ExportSemaphoreWin32HandleInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_attributes: ::std::ptr::null(), dw_access: DWORD::default(), @@ -17211,6 +17593,9 @@ impl ::std::default::Default for ExportSemaphoreWin32HandleInfoKHR { } } } +unsafe impl TaggedStructure for ExportSemaphoreWin32HandleInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR; +} impl ExportSemaphoreWin32HandleInfoKHR { pub fn builder<'a>() -> ExportSemaphoreWin32HandleInfoKHRBuilder<'a> { ExportSemaphoreWin32HandleInfoKHRBuilder { @@ -17276,7 +17661,7 @@ impl ::std::default::Default for D3D12FenceSubmitInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::D3D12_FENCE_SUBMIT_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), wait_semaphore_values_count: u32::default(), p_wait_semaphore_values: ::std::ptr::null(), @@ -17285,6 +17670,9 @@ impl ::std::default::Default for D3D12FenceSubmitInfoKHR { } } } +unsafe impl TaggedStructure for D3D12FenceSubmitInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::D3D12_FENCE_SUBMIT_INFO_KHR; +} impl D3D12FenceSubmitInfoKHR { pub fn builder<'a>() -> D3D12FenceSubmitInfoKHRBuilder<'a> { D3D12FenceSubmitInfoKHRBuilder { @@ -17345,13 +17733,16 @@ impl ::std::default::Default for SemaphoreGetWin32HandleInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::SEMAPHORE_GET_WIN32_HANDLE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), semaphore: Semaphore::default(), handle_type: ExternalSemaphoreHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for SemaphoreGetWin32HandleInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::SEMAPHORE_GET_WIN32_HANDLE_INFO_KHR; +} impl SemaphoreGetWin32HandleInfoKHR { pub fn builder<'a>() -> SemaphoreGetWin32HandleInfoKHRBuilder<'a> { SemaphoreGetWin32HandleInfoKHRBuilder { @@ -17410,7 +17801,7 @@ impl ::std::default::Default for ImportSemaphoreFdInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_SEMAPHORE_FD_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), semaphore: Semaphore::default(), flags: SemaphoreImportFlags::default(), @@ -17419,6 +17810,9 @@ impl ::std::default::Default for ImportSemaphoreFdInfoKHR { } } } +unsafe impl TaggedStructure for ImportSemaphoreFdInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_SEMAPHORE_FD_INFO_KHR; +} impl ImportSemaphoreFdInfoKHR { pub fn builder<'a>() -> ImportSemaphoreFdInfoKHRBuilder<'a> { ImportSemaphoreFdInfoKHRBuilder { @@ -17485,13 +17879,16 @@ impl ::std::default::Default for SemaphoreGetFdInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::SEMAPHORE_GET_FD_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), semaphore: Semaphore::default(), handle_type: ExternalSemaphoreHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for SemaphoreGetFdInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::SEMAPHORE_GET_FD_INFO_KHR; +} impl SemaphoreGetFdInfoKHR { pub fn builder<'a>() -> SemaphoreGetFdInfoKHRBuilder<'a> { SemaphoreGetFdInfoKHRBuilder { @@ -17550,7 +17947,7 @@ impl ::std::default::Default for ImportSemaphoreZirconHandleInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_SEMAPHORE_ZIRCON_HANDLE_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), semaphore: Semaphore::default(), flags: SemaphoreImportFlags::default(), @@ -17559,6 +17956,10 @@ impl ::std::default::Default for ImportSemaphoreZirconHandleInfoFUCHSIA { } } } +unsafe impl TaggedStructure for ImportSemaphoreZirconHandleInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = + StructureType::IMPORT_SEMAPHORE_ZIRCON_HANDLE_INFO_FUCHSIA; +} impl ImportSemaphoreZirconHandleInfoFUCHSIA { pub fn builder<'a>() -> ImportSemaphoreZirconHandleInfoFUCHSIABuilder<'a> { ImportSemaphoreZirconHandleInfoFUCHSIABuilder { @@ -17625,13 +18026,16 @@ impl ::std::default::Default for SemaphoreGetZirconHandleInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::SEMAPHORE_GET_ZIRCON_HANDLE_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), semaphore: Semaphore::default(), handle_type: ExternalSemaphoreHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for SemaphoreGetZirconHandleInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::SEMAPHORE_GET_ZIRCON_HANDLE_INFO_FUCHSIA; +} impl SemaphoreGetZirconHandleInfoFUCHSIA { pub fn builder<'a>() -> SemaphoreGetZirconHandleInfoFUCHSIABuilder<'a> { SemaphoreGetZirconHandleInfoFUCHSIABuilder { @@ -17687,12 +18091,15 @@ impl ::std::default::Default for PhysicalDeviceExternalFenceInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_type: ExternalFenceHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceExternalFenceInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO; +} impl PhysicalDeviceExternalFenceInfo { pub fn builder<'a>() -> PhysicalDeviceExternalFenceInfoBuilder<'a> { PhysicalDeviceExternalFenceInfoBuilder { @@ -17745,7 +18152,7 @@ impl ::std::default::Default for ExternalFenceProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXTERNAL_FENCE_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), export_from_imported_handle_types: ExternalFenceHandleTypeFlags::default(), compatible_handle_types: ExternalFenceHandleTypeFlags::default(), @@ -17753,6 +18160,9 @@ impl ::std::default::Default for ExternalFenceProperties { } } } +unsafe impl TaggedStructure for ExternalFenceProperties { + const STRUCTURE_TYPE: StructureType = StructureType::EXTERNAL_FENCE_PROPERTIES; +} impl ExternalFenceProperties { pub fn builder<'a>() -> ExternalFencePropertiesBuilder<'a> { ExternalFencePropertiesBuilder { @@ -17822,12 +18232,15 @@ impl ::std::default::Default for ExportFenceCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_FENCE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_types: ExternalFenceHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for ExportFenceCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_FENCE_CREATE_INFO; +} impl ExportFenceCreateInfo { pub fn builder<'a>() -> ExportFenceCreateInfoBuilder<'a> { ExportFenceCreateInfoBuilder { @@ -17884,7 +18297,7 @@ impl ::std::default::Default for ImportFenceWin32HandleInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_FENCE_WIN32_HANDLE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), fence: Fence::default(), flags: FenceImportFlags::default(), @@ -17894,6 +18307,9 @@ impl ::std::default::Default for ImportFenceWin32HandleInfoKHR { } } } +unsafe impl TaggedStructure for ImportFenceWin32HandleInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_FENCE_WIN32_HANDLE_INFO_KHR; +} impl ImportFenceWin32HandleInfoKHR { pub fn builder<'a>() -> ImportFenceWin32HandleInfoKHRBuilder<'a> { ImportFenceWin32HandleInfoKHRBuilder { @@ -17966,7 +18382,7 @@ impl ::std::default::Default for ExportFenceWin32HandleInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_FENCE_WIN32_HANDLE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_attributes: ::std::ptr::null(), dw_access: DWORD::default(), @@ -17974,6 +18390,9 @@ impl ::std::default::Default for ExportFenceWin32HandleInfoKHR { } } } +unsafe impl TaggedStructure for ExportFenceWin32HandleInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_FENCE_WIN32_HANDLE_INFO_KHR; +} impl ExportFenceWin32HandleInfoKHR { pub fn builder<'a>() -> ExportFenceWin32HandleInfoKHRBuilder<'a> { ExportFenceWin32HandleInfoKHRBuilder { @@ -18037,13 +18456,16 @@ impl ::std::default::Default for FenceGetWin32HandleInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::FENCE_GET_WIN32_HANDLE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), fence: Fence::default(), handle_type: ExternalFenceHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for FenceGetWin32HandleInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::FENCE_GET_WIN32_HANDLE_INFO_KHR; +} impl FenceGetWin32HandleInfoKHR { pub fn builder<'a>() -> FenceGetWin32HandleInfoKHRBuilder<'a> { FenceGetWin32HandleInfoKHRBuilder { @@ -18102,7 +18524,7 @@ impl ::std::default::Default for ImportFenceFdInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_FENCE_FD_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), fence: Fence::default(), flags: FenceImportFlags::default(), @@ -18111,6 +18533,9 @@ impl ::std::default::Default for ImportFenceFdInfoKHR { } } } +unsafe impl TaggedStructure for ImportFenceFdInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_FENCE_FD_INFO_KHR; +} impl ImportFenceFdInfoKHR { pub fn builder<'a>() -> ImportFenceFdInfoKHRBuilder<'a> { ImportFenceFdInfoKHRBuilder { @@ -18177,13 +18602,16 @@ impl ::std::default::Default for FenceGetFdInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::FENCE_GET_FD_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), fence: Fence::default(), handle_type: ExternalFenceHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for FenceGetFdInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::FENCE_GET_FD_INFO_KHR; +} impl FenceGetFdInfoKHR { pub fn builder<'a>() -> FenceGetFdInfoKHRBuilder<'a> { FenceGetFdInfoKHRBuilder { @@ -18241,7 +18669,7 @@ impl ::std::default::Default for PhysicalDeviceMultiviewFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MULTIVIEW_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), multiview: Bool32::default(), multiview_geometry_shader: Bool32::default(), @@ -18249,6 +18677,9 @@ impl ::std::default::Default for PhysicalDeviceMultiviewFeatures { } } } +unsafe impl TaggedStructure for PhysicalDeviceMultiviewFeatures { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_MULTIVIEW_FEATURES; +} impl PhysicalDeviceMultiviewFeatures { pub fn builder<'a>() -> PhysicalDeviceMultiviewFeaturesBuilder<'a> { PhysicalDeviceMultiviewFeaturesBuilder { @@ -18314,13 +18745,16 @@ impl ::std::default::Default for PhysicalDeviceMultiviewProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_multiview_view_count: u32::default(), max_multiview_instance_index: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMultiviewProperties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES; +} impl PhysicalDeviceMultiviewProperties { pub fn builder<'a>() -> PhysicalDeviceMultiviewPropertiesBuilder<'a> { PhysicalDeviceMultiviewPropertiesBuilder { @@ -18383,7 +18817,7 @@ impl ::std::default::Default for RenderPassMultiviewCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_MULTIVIEW_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), subpass_count: u32::default(), p_view_masks: ::std::ptr::null(), @@ -18394,6 +18828,9 @@ impl ::std::default::Default for RenderPassMultiviewCreateInfo { } } } +unsafe impl TaggedStructure for RenderPassMultiviewCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::RENDER_PASS_MULTIVIEW_CREATE_INFO; +} impl RenderPassMultiviewCreateInfo { pub fn builder<'a>() -> RenderPassMultiviewCreateInfoBuilder<'a> { RenderPassMultiviewCreateInfoBuilder { @@ -18469,7 +18906,7 @@ impl ::std::default::Default for SurfaceCapabilities2EXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SURFACE_CAPABILITIES_2_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), min_image_count: u32::default(), max_image_count: u32::default(), @@ -18485,6 +18922,9 @@ impl ::std::default::Default for SurfaceCapabilities2EXT { } } } +unsafe impl TaggedStructure for SurfaceCapabilities2EXT { + const STRUCTURE_TYPE: StructureType = StructureType::SURFACE_CAPABILITIES_2_EXT; +} impl SurfaceCapabilities2EXT { pub fn builder<'a>() -> SurfaceCapabilities2EXTBuilder<'a> { SurfaceCapabilities2EXTBuilder { @@ -18591,12 +19031,15 @@ impl ::std::default::Default for DisplayPowerInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_POWER_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), power_state: DisplayPowerStateEXT::default(), } } } +unsafe impl TaggedStructure for DisplayPowerInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_POWER_INFO_EXT; +} impl DisplayPowerInfoEXT { pub fn builder<'a>() -> DisplayPowerInfoEXTBuilder<'a> { DisplayPowerInfoEXTBuilder { @@ -18647,12 +19090,15 @@ impl ::std::default::Default for DeviceEventInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_EVENT_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), device_event: DeviceEventTypeEXT::default(), } } } +unsafe impl TaggedStructure for DeviceEventInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_EVENT_INFO_EXT; +} impl DeviceEventInfoEXT { pub fn builder<'a>() -> DeviceEventInfoEXTBuilder<'a> { DeviceEventInfoEXTBuilder { @@ -18703,12 +19149,15 @@ impl ::std::default::Default for DisplayEventInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_EVENT_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), display_event: DisplayEventTypeEXT::default(), } } } +unsafe impl TaggedStructure for DisplayEventInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_EVENT_INFO_EXT; +} impl DisplayEventInfoEXT { pub fn builder<'a>() -> DisplayEventInfoEXTBuilder<'a> { DisplayEventInfoEXTBuilder { @@ -18759,12 +19208,15 @@ impl ::std::default::Default for SwapchainCounterCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SWAPCHAIN_COUNTER_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), surface_counters: SurfaceCounterFlagsEXT::default(), } } } +unsafe impl TaggedStructure for SwapchainCounterCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::SWAPCHAIN_COUNTER_CREATE_INFO_EXT; +} impl SwapchainCounterCreateInfoEXT { pub fn builder<'a>() -> SwapchainCounterCreateInfoEXTBuilder<'a> { SwapchainCounterCreateInfoEXTBuilder { @@ -18819,7 +19271,7 @@ impl ::std::default::Default for PhysicalDeviceGroupProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_GROUP_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), physical_device_count: u32::default(), physical_devices: unsafe { ::std::mem::zeroed() }, @@ -18827,6 +19279,9 @@ impl ::std::default::Default for PhysicalDeviceGroupProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceGroupProperties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_GROUP_PROPERTIES; +} impl PhysicalDeviceGroupProperties { pub fn builder<'a>() -> PhysicalDeviceGroupPropertiesBuilder<'a> { PhysicalDeviceGroupPropertiesBuilder { @@ -18891,13 +19346,16 @@ impl ::std::default::Default for MemoryAllocateFlagsInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_ALLOCATE_FLAGS_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: MemoryAllocateFlags::default(), device_mask: u32::default(), } } } +unsafe impl TaggedStructure for MemoryAllocateFlagsInfo { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_ALLOCATE_FLAGS_INFO; +} impl MemoryAllocateFlagsInfo { pub fn builder<'a>() -> MemoryAllocateFlagsInfoBuilder<'a> { MemoryAllocateFlagsInfoBuilder { @@ -18957,7 +19415,7 @@ impl ::std::default::Default for BindBufferMemoryInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::BIND_BUFFER_MEMORY_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), buffer: Buffer::default(), memory: DeviceMemory::default(), @@ -18965,6 +19423,9 @@ impl ::std::default::Default for BindBufferMemoryInfo { } } } +unsafe impl TaggedStructure for BindBufferMemoryInfo { + const STRUCTURE_TYPE: StructureType = StructureType::BIND_BUFFER_MEMORY_INFO; +} impl BindBufferMemoryInfo { pub fn builder<'a>() -> BindBufferMemoryInfoBuilder<'a> { BindBufferMemoryInfoBuilder { @@ -19041,13 +19502,16 @@ impl ::std::default::Default for BindBufferMemoryDeviceGroupInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), device_index_count: u32::default(), p_device_indices: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for BindBufferMemoryDeviceGroupInfo { + const STRUCTURE_TYPE: StructureType = StructureType::BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO; +} impl BindBufferMemoryDeviceGroupInfo { pub fn builder<'a>() -> BindBufferMemoryDeviceGroupInfoBuilder<'a> { BindBufferMemoryDeviceGroupInfoBuilder { @@ -19103,7 +19567,7 @@ impl ::std::default::Default for BindImageMemoryInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::BIND_IMAGE_MEMORY_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image: Image::default(), memory: DeviceMemory::default(), @@ -19111,6 +19575,9 @@ impl ::std::default::Default for BindImageMemoryInfo { } } } +unsafe impl TaggedStructure for BindImageMemoryInfo { + const STRUCTURE_TYPE: StructureType = StructureType::BIND_IMAGE_MEMORY_INFO; +} impl BindImageMemoryInfo { pub fn builder<'a>() -> BindImageMemoryInfoBuilder<'a> { BindImageMemoryInfoBuilder { @@ -19189,7 +19656,7 @@ impl ::std::default::Default for BindImageMemoryDeviceGroupInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), device_index_count: u32::default(), p_device_indices: ::std::ptr::null(), @@ -19198,6 +19665,9 @@ impl ::std::default::Default for BindImageMemoryDeviceGroupInfo { } } } +unsafe impl TaggedStructure for BindImageMemoryDeviceGroupInfo { + const STRUCTURE_TYPE: StructureType = StructureType::BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO; +} impl BindImageMemoryDeviceGroupInfo { pub fn builder<'a>() -> BindImageMemoryDeviceGroupInfoBuilder<'a> { BindImageMemoryDeviceGroupInfoBuilder { @@ -19262,7 +19732,7 @@ impl ::std::default::Default for DeviceGroupRenderPassBeginInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_GROUP_RENDER_PASS_BEGIN_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), device_mask: u32::default(), device_render_area_count: u32::default(), @@ -19270,6 +19740,9 @@ impl ::std::default::Default for DeviceGroupRenderPassBeginInfo { } } } +unsafe impl TaggedStructure for DeviceGroupRenderPassBeginInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_GROUP_RENDER_PASS_BEGIN_INFO; +} impl DeviceGroupRenderPassBeginInfo { pub fn builder<'a>() -> DeviceGroupRenderPassBeginInfoBuilder<'a> { DeviceGroupRenderPassBeginInfoBuilder { @@ -19330,12 +19803,15 @@ impl ::std::default::Default for DeviceGroupCommandBufferBeginInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), device_mask: u32::default(), } } } +unsafe impl TaggedStructure for DeviceGroupCommandBufferBeginInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO; +} impl DeviceGroupCommandBufferBeginInfo { pub fn builder<'a>() -> DeviceGroupCommandBufferBeginInfoBuilder<'a> { DeviceGroupCommandBufferBeginInfoBuilder { @@ -19393,7 +19869,7 @@ impl ::std::default::Default for DeviceGroupSubmitInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_GROUP_SUBMIT_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), wait_semaphore_count: u32::default(), p_wait_semaphore_device_indices: ::std::ptr::null(), @@ -19404,6 +19880,9 @@ impl ::std::default::Default for DeviceGroupSubmitInfo { } } } +unsafe impl TaggedStructure for DeviceGroupSubmitInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_GROUP_SUBMIT_INFO; +} impl DeviceGroupSubmitInfo { pub fn builder<'a>() -> DeviceGroupSubmitInfoBuilder<'a> { DeviceGroupSubmitInfoBuilder { @@ -19476,13 +19955,16 @@ impl ::std::default::Default for DeviceGroupBindSparseInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_GROUP_BIND_SPARSE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), resource_device_index: u32::default(), memory_device_index: u32::default(), } } } +unsafe impl TaggedStructure for DeviceGroupBindSparseInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_GROUP_BIND_SPARSE_INFO; +} impl DeviceGroupBindSparseInfo { pub fn builder<'a>() -> DeviceGroupBindSparseInfoBuilder<'a> { DeviceGroupBindSparseInfoBuilder { @@ -19541,13 +20023,16 @@ impl ::std::default::Default for DeviceGroupPresentCapabilitiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_GROUP_PRESENT_CAPABILITIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), present_mask: unsafe { ::std::mem::zeroed() }, modes: DeviceGroupPresentModeFlagsKHR::default(), } } } +unsafe impl TaggedStructure for DeviceGroupPresentCapabilitiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_GROUP_PRESENT_CAPABILITIES_KHR; +} impl DeviceGroupPresentCapabilitiesKHR { pub fn builder<'a>() -> DeviceGroupPresentCapabilitiesKHRBuilder<'a> { DeviceGroupPresentCapabilitiesKHRBuilder { @@ -19603,12 +20088,15 @@ impl ::std::default::Default for ImageSwapchainCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_SWAPCHAIN_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), swapchain: SwapchainKHR::default(), } } } +unsafe impl TaggedStructure for ImageSwapchainCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_SWAPCHAIN_CREATE_INFO_KHR; +} impl ImageSwapchainCreateInfoKHR { pub fn builder<'a>() -> ImageSwapchainCreateInfoKHRBuilder<'a> { ImageSwapchainCreateInfoKHRBuilder { @@ -19662,13 +20150,16 @@ impl ::std::default::Default for BindImageMemorySwapchainInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), swapchain: SwapchainKHR::default(), image_index: u32::default(), } } } +unsafe impl TaggedStructure for BindImageMemorySwapchainInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHR; +} impl BindImageMemorySwapchainInfoKHR { pub fn builder<'a>() -> BindImageMemorySwapchainInfoKHRBuilder<'a> { BindImageMemorySwapchainInfoKHRBuilder { @@ -19730,7 +20221,7 @@ impl ::std::default::Default for AcquireNextImageInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACQUIRE_NEXT_IMAGE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), swapchain: SwapchainKHR::default(), timeout: u64::default(), @@ -19740,6 +20231,9 @@ impl ::std::default::Default for AcquireNextImageInfoKHR { } } } +unsafe impl TaggedStructure for AcquireNextImageInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::ACQUIRE_NEXT_IMAGE_INFO_KHR; +} impl AcquireNextImageInfoKHR { pub fn builder<'a>() -> AcquireNextImageInfoKHRBuilder<'a> { AcquireNextImageInfoKHRBuilder { @@ -19812,7 +20306,7 @@ impl ::std::default::Default for DeviceGroupPresentInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_GROUP_PRESENT_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), swapchain_count: u32::default(), p_device_masks: ::std::ptr::null(), @@ -19820,6 +20314,9 @@ impl ::std::default::Default for DeviceGroupPresentInfoKHR { } } } +unsafe impl TaggedStructure for DeviceGroupPresentInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_GROUP_PRESENT_INFO_KHR; +} impl DeviceGroupPresentInfoKHR { pub fn builder<'a>() -> DeviceGroupPresentInfoKHRBuilder<'a> { DeviceGroupPresentInfoKHRBuilder { @@ -19879,13 +20376,16 @@ impl ::std::default::Default for DeviceGroupDeviceCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_GROUP_DEVICE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), physical_device_count: u32::default(), p_physical_devices: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for DeviceGroupDeviceCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_GROUP_DEVICE_CREATE_INFO; +} impl DeviceGroupDeviceCreateInfo { pub fn builder<'a>() -> DeviceGroupDeviceCreateInfoBuilder<'a> { DeviceGroupDeviceCreateInfoBuilder { @@ -19939,12 +20439,15 @@ impl ::std::default::Default for DeviceGroupSwapchainCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), modes: DeviceGroupPresentModeFlagsKHR::default(), } } } +unsafe impl TaggedStructure for DeviceGroupSwapchainCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHR; +} impl DeviceGroupSwapchainCreateInfoKHR { pub fn builder<'a>() -> DeviceGroupSwapchainCreateInfoKHRBuilder<'a> { DeviceGroupSwapchainCreateInfoKHRBuilder { @@ -20078,7 +20581,7 @@ impl ::std::default::Default for DescriptorUpdateTemplateCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DescriptorUpdateTemplateCreateFlags::default(), descriptor_update_entry_count: u32::default(), @@ -20091,6 +20594,9 @@ impl ::std::default::Default for DescriptorUpdateTemplateCreateInfo { } } } +unsafe impl TaggedStructure for DescriptorUpdateTemplateCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO; +} impl DescriptorUpdateTemplateCreateInfo { pub fn builder<'a>() -> DescriptorUpdateTemplateCreateInfoBuilder<'a> { DescriptorUpdateTemplateCreateInfoBuilder { @@ -20225,12 +20731,15 @@ impl ::std::default::Default for PhysicalDevicePresentIdFeaturesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PRESENT_ID_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), present_id: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePresentIdFeaturesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_PRESENT_ID_FEATURES_KHR; +} impl PhysicalDevicePresentIdFeaturesKHR { pub fn builder<'a>() -> PhysicalDevicePresentIdFeaturesKHRBuilder<'a> { PhysicalDevicePresentIdFeaturesKHRBuilder { @@ -20286,13 +20795,16 @@ impl ::std::default::Default for PresentIdKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PRESENT_ID_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), swapchain_count: u32::default(), p_present_ids: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for PresentIdKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PRESENT_ID_KHR; +} impl PresentIdKHR { pub fn builder<'a>() -> PresentIdKHRBuilder<'a> { PresentIdKHRBuilder { @@ -20346,12 +20858,15 @@ impl ::std::default::Default for PhysicalDevicePresentWaitFeaturesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PRESENT_WAIT_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), present_wait: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePresentWaitFeaturesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_PRESENT_WAIT_FEATURES_KHR; +} impl PhysicalDevicePresentWaitFeaturesKHR { pub fn builder<'a>() -> PhysicalDevicePresentWaitFeaturesKHRBuilder<'a> { PhysicalDevicePresentWaitFeaturesKHRBuilder { @@ -20413,7 +20928,7 @@ impl ::std::default::Default for HdrMetadataEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::HDR_METADATA_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), display_primary_red: XYColorEXT::default(), display_primary_green: XYColorEXT::default(), @@ -20426,6 +20941,9 @@ impl ::std::default::Default for HdrMetadataEXT { } } } +unsafe impl TaggedStructure for HdrMetadataEXT { + const STRUCTURE_TYPE: StructureType = StructureType::HDR_METADATA_EXT; +} impl HdrMetadataEXT { pub fn builder<'a>() -> HdrMetadataEXTBuilder<'a> { HdrMetadataEXTBuilder { @@ -20511,12 +21029,16 @@ impl ::std::default::Default for DisplayNativeHdrSurfaceCapabilitiesAMD { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_NATIVE_HDR_SURFACE_CAPABILITIES_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), local_dimming_support: Bool32::default(), } } } +unsafe impl TaggedStructure for DisplayNativeHdrSurfaceCapabilitiesAMD { + const STRUCTURE_TYPE: StructureType = + StructureType::DISPLAY_NATIVE_HDR_SURFACE_CAPABILITIES_AMD; +} impl DisplayNativeHdrSurfaceCapabilitiesAMD { pub fn builder<'a>() -> DisplayNativeHdrSurfaceCapabilitiesAMDBuilder<'a> { DisplayNativeHdrSurfaceCapabilitiesAMDBuilder { @@ -20569,12 +21091,16 @@ impl ::std::default::Default for SwapchainDisplayNativeHdrCreateInfoAMD { #[inline] fn default() -> Self { Self { - s_type: StructureType::SWAPCHAIN_DISPLAY_NATIVE_HDR_CREATE_INFO_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), local_dimming_enable: Bool32::default(), } } } +unsafe impl TaggedStructure for SwapchainDisplayNativeHdrCreateInfoAMD { + const STRUCTURE_TYPE: StructureType = + StructureType::SWAPCHAIN_DISPLAY_NATIVE_HDR_CREATE_INFO_AMD; +} impl SwapchainDisplayNativeHdrCreateInfoAMD { pub fn builder<'a>() -> SwapchainDisplayNativeHdrCreateInfoAMDBuilder<'a> { SwapchainDisplayNativeHdrCreateInfoAMDBuilder { @@ -20740,13 +21266,16 @@ impl ::std::default::Default for PresentTimesInfoGOOGLE { #[inline] fn default() -> Self { Self { - s_type: StructureType::PRESENT_TIMES_INFO_GOOGLE, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), swapchain_count: u32::default(), p_times: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for PresentTimesInfoGOOGLE { + const STRUCTURE_TYPE: StructureType = StructureType::PRESENT_TIMES_INFO_GOOGLE; +} impl PresentTimesInfoGOOGLE { pub fn builder<'a>() -> PresentTimesInfoGOOGLEBuilder<'a> { PresentTimesInfoGOOGLEBuilder { @@ -20851,13 +21380,16 @@ impl ::std::default::Default for IOSSurfaceCreateInfoMVK { #[inline] fn default() -> Self { Self { - s_type: StructureType::IOS_SURFACE_CREATE_INFO_MVK, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: IOSSurfaceCreateFlagsMVK::default(), p_view: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for IOSSurfaceCreateInfoMVK { + const STRUCTURE_TYPE: StructureType = StructureType::IOS_SURFACE_CREATE_INFO_MVK; +} impl IOSSurfaceCreateInfoMVK { pub fn builder<'a>() -> IOSSurfaceCreateInfoMVKBuilder<'a> { IOSSurfaceCreateInfoMVKBuilder { @@ -20914,13 +21446,16 @@ impl ::std::default::Default for MacOSSurfaceCreateInfoMVK { #[inline] fn default() -> Self { Self { - s_type: StructureType::MACOS_SURFACE_CREATE_INFO_MVK, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: MacOSSurfaceCreateFlagsMVK::default(), p_view: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for MacOSSurfaceCreateInfoMVK { + const STRUCTURE_TYPE: StructureType = StructureType::MACOS_SURFACE_CREATE_INFO_MVK; +} impl MacOSSurfaceCreateInfoMVK { pub fn builder<'a>() -> MacOSSurfaceCreateInfoMVKBuilder<'a> { MacOSSurfaceCreateInfoMVKBuilder { @@ -20977,13 +21512,16 @@ impl ::std::default::Default for MetalSurfaceCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::METAL_SURFACE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: MetalSurfaceCreateFlagsEXT::default(), p_layer: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for MetalSurfaceCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::METAL_SURFACE_CREATE_INFO_EXT; +} impl MetalSurfaceCreateInfoEXT { pub fn builder<'a>() -> MetalSurfaceCreateInfoEXTBuilder<'a> { MetalSurfaceCreateInfoEXTBuilder { @@ -21091,7 +21629,7 @@ impl ::std::default::Default for PipelineViewportWScalingStateCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), viewport_w_scaling_enable: Bool32::default(), viewport_count: u32::default(), @@ -21099,6 +21637,10 @@ impl ::std::default::Default for PipelineViewportWScalingStateCreateInfoNV { } } } +unsafe impl TaggedStructure for PipelineViewportWScalingStateCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV; +} impl PipelineViewportWScalingStateCreateInfoNV { pub fn builder<'a>() -> PipelineViewportWScalingStateCreateInfoNVBuilder<'a> { PipelineViewportWScalingStateCreateInfoNVBuilder { @@ -21224,7 +21766,7 @@ impl ::std::default::Default for PipelineViewportSwizzleStateCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineViewportSwizzleStateCreateFlagsNV::default(), viewport_count: u32::default(), @@ -21232,6 +21774,10 @@ impl ::std::default::Default for PipelineViewportSwizzleStateCreateInfoNV { } } } +unsafe impl TaggedStructure for PipelineViewportSwizzleStateCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV; +} impl PipelineViewportSwizzleStateCreateInfoNV { pub fn builder<'a>() -> PipelineViewportSwizzleStateCreateInfoNVBuilder<'a> { PipelineViewportSwizzleStateCreateInfoNVBuilder { @@ -21293,12 +21839,16 @@ impl ::std::default::Default for PhysicalDeviceDiscardRectanglePropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_discard_rectangles: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceDiscardRectanglePropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT; +} impl PhysicalDeviceDiscardRectanglePropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceDiscardRectanglePropertiesEXTBuilder<'a> { PhysicalDeviceDiscardRectanglePropertiesEXTBuilder { @@ -21357,7 +21907,7 @@ impl ::std::default::Default for PipelineDiscardRectangleStateCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineDiscardRectangleStateCreateFlagsEXT::default(), discard_rectangle_mode: DiscardRectangleModeEXT::default(), @@ -21366,6 +21916,10 @@ impl ::std::default::Default for PipelineDiscardRectangleStateCreateInfoEXT { } } } +unsafe impl TaggedStructure for PipelineDiscardRectangleStateCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT; +} impl PipelineDiscardRectangleStateCreateInfoEXT { pub fn builder<'a>() -> PipelineDiscardRectangleStateCreateInfoEXTBuilder<'a> { PipelineDiscardRectangleStateCreateInfoEXTBuilder { @@ -21435,12 +21989,16 @@ impl ::std::default::Default for PhysicalDeviceMultiviewPerViewAttributesPropert #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), per_view_position_all_components: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMultiviewPerViewAttributesPropertiesNVX { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX; +} impl PhysicalDeviceMultiviewPerViewAttributesPropertiesNVX { pub fn builder<'a>() -> PhysicalDeviceMultiviewPerViewAttributesPropertiesNVXBuilder<'a> { PhysicalDeviceMultiviewPerViewAttributesPropertiesNVXBuilder { @@ -21559,13 +22117,17 @@ impl ::std::default::Default for RenderPassInputAttachmentAspectCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), aspect_reference_count: u32::default(), p_aspect_references: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for RenderPassInputAttachmentAspectCreateInfo { + const STRUCTURE_TYPE: StructureType = + StructureType::RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO; +} impl RenderPassInputAttachmentAspectCreateInfo { pub fn builder<'a>() -> RenderPassInputAttachmentAspectCreateInfoBuilder<'a> { RenderPassInputAttachmentAspectCreateInfoBuilder { @@ -21622,12 +22184,15 @@ impl ::std::default::Default for PhysicalDeviceSurfaceInfo2KHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SURFACE_INFO_2_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), surface: SurfaceKHR::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceSurfaceInfo2KHR { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_SURFACE_INFO_2_KHR; +} impl PhysicalDeviceSurfaceInfo2KHR { pub fn builder<'a>() -> PhysicalDeviceSurfaceInfo2KHRBuilder<'a> { PhysicalDeviceSurfaceInfo2KHRBuilder { @@ -21693,12 +22258,15 @@ impl ::std::default::Default for SurfaceCapabilities2KHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::SURFACE_CAPABILITIES_2_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), surface_capabilities: SurfaceCapabilitiesKHR::default(), } } } +unsafe impl TaggedStructure for SurfaceCapabilities2KHR { + const STRUCTURE_TYPE: StructureType = StructureType::SURFACE_CAPABILITIES_2_KHR; +} impl SurfaceCapabilities2KHR { pub fn builder<'a>() -> SurfaceCapabilities2KHRBuilder<'a> { SurfaceCapabilities2KHRBuilder { @@ -21764,12 +22332,15 @@ impl ::std::default::Default for SurfaceFormat2KHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::SURFACE_FORMAT_2_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), surface_format: SurfaceFormatKHR::default(), } } } +unsafe impl TaggedStructure for SurfaceFormat2KHR { + const STRUCTURE_TYPE: StructureType = StructureType::SURFACE_FORMAT_2_KHR; +} impl SurfaceFormat2KHR { pub fn builder<'a>() -> SurfaceFormat2KHRBuilder<'a> { SurfaceFormat2KHRBuilder { @@ -21835,12 +22406,15 @@ impl ::std::default::Default for DisplayProperties2KHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_PROPERTIES_2_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), display_properties: DisplayPropertiesKHR::default(), } } } +unsafe impl TaggedStructure for DisplayProperties2KHR { + const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_PROPERTIES_2_KHR; +} impl DisplayProperties2KHR { pub fn builder<'a>() -> DisplayProperties2KHRBuilder<'a> { DisplayProperties2KHRBuilder { @@ -21891,12 +22465,15 @@ impl ::std::default::Default for DisplayPlaneProperties2KHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_PLANE_PROPERTIES_2_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), display_plane_properties: DisplayPlanePropertiesKHR::default(), } } } +unsafe impl TaggedStructure for DisplayPlaneProperties2KHR { + const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_PLANE_PROPERTIES_2_KHR; +} impl DisplayPlaneProperties2KHR { pub fn builder<'a>() -> DisplayPlaneProperties2KHRBuilder<'a> { DisplayPlaneProperties2KHRBuilder { @@ -21950,12 +22527,15 @@ impl ::std::default::Default for DisplayModeProperties2KHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_MODE_PROPERTIES_2_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), display_mode_properties: DisplayModePropertiesKHR::default(), } } } +unsafe impl TaggedStructure for DisplayModeProperties2KHR { + const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_MODE_PROPERTIES_2_KHR; +} impl DisplayModeProperties2KHR { pub fn builder<'a>() -> DisplayModeProperties2KHRBuilder<'a> { DisplayModeProperties2KHRBuilder { @@ -22010,13 +22590,16 @@ impl ::std::default::Default for DisplayPlaneInfo2KHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_PLANE_INFO_2_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), mode: DisplayModeKHR::default(), plane_index: u32::default(), } } } +unsafe impl TaggedStructure for DisplayPlaneInfo2KHR { + const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_PLANE_INFO_2_KHR; +} impl DisplayPlaneInfo2KHR { pub fn builder<'a>() -> DisplayPlaneInfo2KHRBuilder<'a> { DisplayPlaneInfo2KHRBuilder { @@ -22072,12 +22655,15 @@ impl ::std::default::Default for DisplayPlaneCapabilities2KHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DISPLAY_PLANE_CAPABILITIES_2_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), capabilities: DisplayPlaneCapabilitiesKHR::default(), } } } +unsafe impl TaggedStructure for DisplayPlaneCapabilities2KHR { + const STRUCTURE_TYPE: StructureType = StructureType::DISPLAY_PLANE_CAPABILITIES_2_KHR; +} impl DisplayPlaneCapabilities2KHR { pub fn builder<'a>() -> DisplayPlaneCapabilities2KHRBuilder<'a> { DisplayPlaneCapabilities2KHRBuilder { @@ -22128,12 +22714,15 @@ impl ::std::default::Default for SharedPresentSurfaceCapabilitiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::SHARED_PRESENT_SURFACE_CAPABILITIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shared_present_supported_usage_flags: ImageUsageFlags::default(), } } } +unsafe impl TaggedStructure for SharedPresentSurfaceCapabilitiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::SHARED_PRESENT_SURFACE_CAPABILITIES_KHR; +} impl SharedPresentSurfaceCapabilitiesKHR { pub fn builder<'a>() -> SharedPresentSurfaceCapabilitiesKHRBuilder<'a> { SharedPresentSurfaceCapabilitiesKHRBuilder { @@ -22192,7 +22781,7 @@ impl ::std::default::Default for PhysicalDevice16BitStorageFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), storage_buffer16_bit_access: Bool32::default(), uniform_and_storage_buffer16_bit_access: Bool32::default(), @@ -22201,6 +22790,9 @@ impl ::std::default::Default for PhysicalDevice16BitStorageFeatures { } } } +unsafe impl TaggedStructure for PhysicalDevice16BitStorageFeatures { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES; +} impl PhysicalDevice16BitStorageFeatures { pub fn builder<'a>() -> PhysicalDevice16BitStorageFeaturesBuilder<'a> { PhysicalDevice16BitStorageFeaturesBuilder { @@ -22277,7 +22869,7 @@ impl ::std::default::Default for PhysicalDeviceSubgroupProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SUBGROUP_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), subgroup_size: u32::default(), supported_stages: ShaderStageFlags::default(), @@ -22286,6 +22878,9 @@ impl ::std::default::Default for PhysicalDeviceSubgroupProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceSubgroupProperties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_SUBGROUP_PROPERTIES; +} impl PhysicalDeviceSubgroupProperties { pub fn builder<'a>() -> PhysicalDeviceSubgroupPropertiesBuilder<'a> { PhysicalDeviceSubgroupPropertiesBuilder { @@ -22353,12 +22948,16 @@ impl ::std::default::Default for PhysicalDeviceShaderSubgroupExtendedTypesFeatur #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_subgroup_extended_types: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderSubgroupExtendedTypesFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES; +} impl PhysicalDeviceShaderSubgroupExtendedTypesFeatures { pub fn builder<'a>() -> PhysicalDeviceShaderSubgroupExtendedTypesFeaturesBuilder<'a> { PhysicalDeviceShaderSubgroupExtendedTypesFeaturesBuilder { @@ -22419,12 +23018,15 @@ impl ::std::default::Default for BufferMemoryRequirementsInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_MEMORY_REQUIREMENTS_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), buffer: Buffer::default(), } } } +unsafe impl TaggedStructure for BufferMemoryRequirementsInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_MEMORY_REQUIREMENTS_INFO_2; +} impl BufferMemoryRequirementsInfo2 { pub fn builder<'a>() -> BufferMemoryRequirementsInfo2Builder<'a> { BufferMemoryRequirementsInfo2Builder { @@ -22475,12 +23077,15 @@ impl ::std::default::Default for DeviceBufferMemoryRequirements { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_BUFFER_MEMORY_REQUIREMENTS, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_create_info: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for DeviceBufferMemoryRequirements { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_BUFFER_MEMORY_REQUIREMENTS; +} impl DeviceBufferMemoryRequirements { pub fn builder<'a>() -> DeviceBufferMemoryRequirementsBuilder<'a> { DeviceBufferMemoryRequirementsBuilder { @@ -22531,12 +23136,15 @@ impl ::std::default::Default for ImageMemoryRequirementsInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_MEMORY_REQUIREMENTS_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image: Image::default(), } } } +unsafe impl TaggedStructure for ImageMemoryRequirementsInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_MEMORY_REQUIREMENTS_INFO_2; +} impl ImageMemoryRequirementsInfo2 { pub fn builder<'a>() -> ImageMemoryRequirementsInfo2Builder<'a> { ImageMemoryRequirementsInfo2Builder { @@ -22602,12 +23210,15 @@ impl ::std::default::Default for ImageSparseMemoryRequirementsInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image: Image::default(), } } } +unsafe impl TaggedStructure for ImageSparseMemoryRequirementsInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2; +} impl ImageSparseMemoryRequirementsInfo2 { pub fn builder<'a>() -> ImageSparseMemoryRequirementsInfo2Builder<'a> { ImageSparseMemoryRequirementsInfo2Builder { @@ -22659,13 +23270,16 @@ impl ::std::default::Default for DeviceImageMemoryRequirements { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_IMAGE_MEMORY_REQUIREMENTS, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_create_info: ::std::ptr::null(), plane_aspect: ImageAspectFlags::default(), } } } +unsafe impl TaggedStructure for DeviceImageMemoryRequirements { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_IMAGE_MEMORY_REQUIREMENTS; +} impl DeviceImageMemoryRequirements { pub fn builder<'a>() -> DeviceImageMemoryRequirementsBuilder<'a> { DeviceImageMemoryRequirementsBuilder { @@ -22721,12 +23335,15 @@ impl ::std::default::Default for MemoryRequirements2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_REQUIREMENTS_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), memory_requirements: MemoryRequirements::default(), } } } +unsafe impl TaggedStructure for MemoryRequirements2 { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_REQUIREMENTS_2; +} impl MemoryRequirements2 { pub fn builder<'a>() -> MemoryRequirements2Builder<'a> { MemoryRequirements2Builder { @@ -22792,12 +23409,15 @@ impl ::std::default::Default for SparseImageMemoryRequirements2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::SPARSE_IMAGE_MEMORY_REQUIREMENTS_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), memory_requirements: SparseImageMemoryRequirements::default(), } } } +unsafe impl TaggedStructure for SparseImageMemoryRequirements2 { + const STRUCTURE_TYPE: StructureType = StructureType::SPARSE_IMAGE_MEMORY_REQUIREMENTS_2; +} impl SparseImageMemoryRequirements2 { pub fn builder<'a>() -> SparseImageMemoryRequirements2Builder<'a> { SparseImageMemoryRequirements2Builder { @@ -22851,12 +23471,15 @@ impl ::std::default::Default for PhysicalDevicePointClippingProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), point_clipping_behavior: PointClippingBehavior::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePointClippingProperties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES; +} impl PhysicalDevicePointClippingProperties { pub fn builder<'a>() -> PhysicalDevicePointClippingPropertiesBuilder<'a> { PhysicalDevicePointClippingPropertiesBuilder { @@ -22913,13 +23536,16 @@ impl ::std::default::Default for MemoryDedicatedRequirements { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_DEDICATED_REQUIREMENTS, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), prefers_dedicated_allocation: Bool32::default(), requires_dedicated_allocation: Bool32::default(), } } } +unsafe impl TaggedStructure for MemoryDedicatedRequirements { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_DEDICATED_REQUIREMENTS; +} impl MemoryDedicatedRequirements { pub fn builder<'a>() -> MemoryDedicatedRequirementsBuilder<'a> { MemoryDedicatedRequirementsBuilder { @@ -22978,13 +23604,16 @@ impl ::std::default::Default for MemoryDedicatedAllocateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_DEDICATED_ALLOCATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image: Image::default(), buffer: Buffer::default(), } } } +unsafe impl TaggedStructure for MemoryDedicatedAllocateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_DEDICATED_ALLOCATE_INFO; +} impl MemoryDedicatedAllocateInfo { pub fn builder<'a>() -> MemoryDedicatedAllocateInfoBuilder<'a> { MemoryDedicatedAllocateInfoBuilder { @@ -23042,12 +23671,15 @@ impl ::std::default::Default for ImageViewUsageCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_VIEW_USAGE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), usage: ImageUsageFlags::default(), } } } +unsafe impl TaggedStructure for ImageViewUsageCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_VIEW_USAGE_CREATE_INFO; +} impl ImageViewUsageCreateInfo { pub fn builder<'a>() -> ImageViewUsageCreateInfoBuilder<'a> { ImageViewUsageCreateInfoBuilder { @@ -23100,12 +23732,16 @@ impl ::std::default::Default for PipelineTessellationDomainOriginStateCreateInfo #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), domain_origin: TessellationDomainOrigin::default(), } } } +unsafe impl TaggedStructure for PipelineTessellationDomainOriginStateCreateInfo { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO; +} impl PipelineTessellationDomainOriginStateCreateInfo { pub fn builder<'a>() -> PipelineTessellationDomainOriginStateCreateInfoBuilder<'a> { PipelineTessellationDomainOriginStateCreateInfoBuilder { @@ -23164,12 +23800,15 @@ impl ::std::default::Default for SamplerYcbcrConversionInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SAMPLER_YCBCR_CONVERSION_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), conversion: SamplerYcbcrConversion::default(), } } } +unsafe impl TaggedStructure for SamplerYcbcrConversionInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SAMPLER_YCBCR_CONVERSION_INFO; +} impl SamplerYcbcrConversionInfo { pub fn builder<'a>() -> SamplerYcbcrConversionInfoBuilder<'a> { SamplerYcbcrConversionInfoBuilder { @@ -23231,7 +23870,7 @@ impl ::std::default::Default for SamplerYcbcrConversionCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SAMPLER_YCBCR_CONVERSION_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), format: Format::default(), ycbcr_model: SamplerYcbcrModelConversion::default(), @@ -23244,6 +23883,9 @@ impl ::std::default::Default for SamplerYcbcrConversionCreateInfo { } } } +unsafe impl TaggedStructure for SamplerYcbcrConversionCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SAMPLER_YCBCR_CONVERSION_CREATE_INFO; +} impl SamplerYcbcrConversionCreateInfo { pub fn builder<'a>() -> SamplerYcbcrConversionCreateInfoBuilder<'a> { SamplerYcbcrConversionCreateInfoBuilder { @@ -23347,12 +23989,15 @@ impl ::std::default::Default for BindImagePlaneMemoryInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::BIND_IMAGE_PLANE_MEMORY_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), plane_aspect: ImageAspectFlags::default(), } } } +unsafe impl TaggedStructure for BindImagePlaneMemoryInfo { + const STRUCTURE_TYPE: StructureType = StructureType::BIND_IMAGE_PLANE_MEMORY_INFO; +} impl BindImagePlaneMemoryInfo { pub fn builder<'a>() -> BindImagePlaneMemoryInfoBuilder<'a> { BindImagePlaneMemoryInfoBuilder { @@ -23405,12 +24050,15 @@ impl ::std::default::Default for ImagePlaneMemoryRequirementsInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), plane_aspect: ImageAspectFlags::default(), } } } +unsafe impl TaggedStructure for ImagePlaneMemoryRequirementsInfo { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO; +} impl ImagePlaneMemoryRequirementsInfo { pub fn builder<'a>() -> ImagePlaneMemoryRequirementsInfoBuilder<'a> { ImagePlaneMemoryRequirementsInfoBuilder { @@ -23463,12 +24111,16 @@ impl ::std::default::Default for PhysicalDeviceSamplerYcbcrConversionFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), sampler_ycbcr_conversion: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceSamplerYcbcrConversionFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES; +} impl PhysicalDeviceSamplerYcbcrConversionFeatures { pub fn builder<'a>() -> PhysicalDeviceSamplerYcbcrConversionFeaturesBuilder<'a> { PhysicalDeviceSamplerYcbcrConversionFeaturesBuilder { @@ -23526,12 +24178,16 @@ impl ::std::default::Default for SamplerYcbcrConversionImageFormatProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), combined_image_sampler_descriptor_count: u32::default(), } } } +unsafe impl TaggedStructure for SamplerYcbcrConversionImageFormatProperties { + const STRUCTURE_TYPE: StructureType = + StructureType::SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES; +} impl SamplerYcbcrConversionImageFormatProperties { pub fn builder<'a>() -> SamplerYcbcrConversionImageFormatPropertiesBuilder<'a> { SamplerYcbcrConversionImageFormatPropertiesBuilder { @@ -23591,12 +24247,15 @@ impl ::std::default::Default for TextureLODGatherFormatPropertiesAMD { #[inline] fn default() -> Self { Self { - s_type: StructureType::TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), supports_texture_gather_lod_bias_amd: Bool32::default(), } } } +unsafe impl TaggedStructure for TextureLODGatherFormatPropertiesAMD { + const STRUCTURE_TYPE: StructureType = StructureType::TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD; +} impl TextureLODGatherFormatPropertiesAMD { pub fn builder<'a>() -> TextureLODGatherFormatPropertiesAMDBuilder<'a> { TextureLODGatherFormatPropertiesAMDBuilder { @@ -23655,7 +24314,7 @@ impl ::std::default::Default for ConditionalRenderingBeginInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::CONDITIONAL_RENDERING_BEGIN_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), buffer: Buffer::default(), offset: DeviceSize::default(), @@ -23663,6 +24322,9 @@ impl ::std::default::Default for ConditionalRenderingBeginInfoEXT { } } } +unsafe impl TaggedStructure for ConditionalRenderingBeginInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::CONDITIONAL_RENDERING_BEGIN_INFO_EXT; +} impl ConditionalRenderingBeginInfoEXT { pub fn builder<'a>() -> ConditionalRenderingBeginInfoEXTBuilder<'a> { ConditionalRenderingBeginInfoEXTBuilder { @@ -23723,12 +24385,15 @@ impl ::std::default::Default for ProtectedSubmitInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PROTECTED_SUBMIT_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), protected_submit: Bool32::default(), } } } +unsafe impl TaggedStructure for ProtectedSubmitInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PROTECTED_SUBMIT_INFO; +} impl ProtectedSubmitInfo { pub fn builder<'a>() -> ProtectedSubmitInfoBuilder<'a> { ProtectedSubmitInfoBuilder { @@ -23781,12 +24446,15 @@ impl ::std::default::Default for PhysicalDeviceProtectedMemoryFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), protected_memory: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceProtectedMemoryFeatures { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES; +} impl PhysicalDeviceProtectedMemoryFeatures { pub fn builder<'a>() -> PhysicalDeviceProtectedMemoryFeaturesBuilder<'a> { PhysicalDeviceProtectedMemoryFeaturesBuilder { @@ -23841,12 +24509,16 @@ impl ::std::default::Default for PhysicalDeviceProtectedMemoryProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), protected_no_fault: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceProtectedMemoryProperties { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES; +} impl PhysicalDeviceProtectedMemoryProperties { pub fn builder<'a>() -> PhysicalDeviceProtectedMemoryPropertiesBuilder<'a> { PhysicalDeviceProtectedMemoryPropertiesBuilder { @@ -23904,7 +24576,7 @@ impl ::std::default::Default for DeviceQueueInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_QUEUE_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DeviceQueueCreateFlags::default(), queue_family_index: u32::default(), @@ -23912,6 +24584,9 @@ impl ::std::default::Default for DeviceQueueInfo2 { } } } +unsafe impl TaggedStructure for DeviceQueueInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_QUEUE_INFO_2; +} impl DeviceQueueInfo2 { pub fn builder<'a>() -> DeviceQueueInfo2Builder<'a> { DeviceQueueInfo2Builder { @@ -23974,7 +24649,7 @@ impl ::std::default::Default for PipelineCoverageToColorStateCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineCoverageToColorStateCreateFlagsNV::default(), coverage_to_color_enable: Bool32::default(), @@ -23982,6 +24657,10 @@ impl ::std::default::Default for PipelineCoverageToColorStateCreateInfoNV { } } } +unsafe impl TaggedStructure for PipelineCoverageToColorStateCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV; +} impl PipelineCoverageToColorStateCreateInfoNV { pub fn builder<'a>() -> PipelineCoverageToColorStateCreateInfoNVBuilder<'a> { PipelineCoverageToColorStateCreateInfoNVBuilder { @@ -24048,13 +24727,17 @@ impl ::std::default::Default for PhysicalDeviceSamplerFilterMinmaxProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), filter_minmax_single_component_formats: Bool32::default(), filter_minmax_image_component_mapping: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceSamplerFilterMinmaxProperties { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES; +} impl PhysicalDeviceSamplerFilterMinmaxProperties { pub fn builder<'a>() -> PhysicalDeviceSamplerFilterMinmaxPropertiesBuilder<'a> { PhysicalDeviceSamplerFilterMinmaxPropertiesBuilder { @@ -24176,7 +24859,7 @@ impl ::std::default::Default for SampleLocationsInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SAMPLE_LOCATIONS_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), sample_locations_per_pixel: SampleCountFlags::default(), sample_location_grid_size: Extent2D::default(), @@ -24185,6 +24868,9 @@ impl ::std::default::Default for SampleLocationsInfoEXT { } } } +unsafe impl TaggedStructure for SampleLocationsInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::SAMPLE_LOCATIONS_INFO_EXT; +} impl SampleLocationsInfoEXT { pub fn builder<'a>() -> SampleLocationsInfoEXTBuilder<'a> { SampleLocationsInfoEXTBuilder { @@ -24356,7 +25042,7 @@ impl ::std::default::Default for RenderPassSampleLocationsBeginInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), attachment_initial_sample_locations_count: u32::default(), p_attachment_initial_sample_locations: ::std::ptr::null(), @@ -24365,6 +25051,10 @@ impl ::std::default::Default for RenderPassSampleLocationsBeginInfoEXT { } } } +unsafe impl TaggedStructure for RenderPassSampleLocationsBeginInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT; +} impl RenderPassSampleLocationsBeginInfoEXT { pub fn builder<'a>() -> RenderPassSampleLocationsBeginInfoEXTBuilder<'a> { RenderPassSampleLocationsBeginInfoEXTBuilder { @@ -24433,13 +25123,17 @@ impl ::std::default::Default for PipelineSampleLocationsStateCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), sample_locations_enable: Bool32::default(), sample_locations_info: SampleLocationsInfoEXT::default(), } } } +unsafe impl TaggedStructure for PipelineSampleLocationsStateCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT; +} impl PipelineSampleLocationsStateCreateInfoEXT { pub fn builder<'a>() -> PipelineSampleLocationsStateCreateInfoEXTBuilder<'a> { PipelineSampleLocationsStateCreateInfoEXTBuilder { @@ -24507,7 +25201,7 @@ impl ::std::default::Default for PhysicalDeviceSampleLocationsPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), sample_location_sample_counts: SampleCountFlags::default(), max_sample_location_grid_size: Extent2D::default(), @@ -24517,6 +25211,10 @@ impl ::std::default::Default for PhysicalDeviceSampleLocationsPropertiesEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceSampleLocationsPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT; +} impl PhysicalDeviceSampleLocationsPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceSampleLocationsPropertiesEXTBuilder<'a> { PhysicalDeviceSampleLocationsPropertiesEXTBuilder { @@ -24601,12 +25299,15 @@ impl ::std::default::Default for MultisamplePropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::MULTISAMPLE_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_sample_location_grid_size: Extent2D::default(), } } } +unsafe impl TaggedStructure for MultisamplePropertiesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::MULTISAMPLE_PROPERTIES_EXT; +} impl MultisamplePropertiesEXT { pub fn builder<'a>() -> MultisamplePropertiesEXTBuilder<'a> { MultisamplePropertiesEXTBuilder { @@ -24660,12 +25361,15 @@ impl ::std::default::Default for SamplerReductionModeCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SAMPLER_REDUCTION_MODE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), reduction_mode: SamplerReductionMode::default(), } } } +unsafe impl TaggedStructure for SamplerReductionModeCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SAMPLER_REDUCTION_MODE_CREATE_INFO; +} impl SamplerReductionModeCreateInfo { pub fn builder<'a>() -> SamplerReductionModeCreateInfoBuilder<'a> { SamplerReductionModeCreateInfoBuilder { @@ -24718,12 +25422,16 @@ impl ::std::default::Default for PhysicalDeviceBlendOperationAdvancedFeaturesEXT #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), advanced_blend_coherent_operations: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceBlendOperationAdvancedFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT; +} impl PhysicalDeviceBlendOperationAdvancedFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceBlendOperationAdvancedFeaturesEXTBuilder<'a> { PhysicalDeviceBlendOperationAdvancedFeaturesEXTBuilder { @@ -24784,12 +25492,15 @@ impl ::std::default::Default for PhysicalDeviceMultiDrawFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), multi_draw: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMultiDrawFeaturesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT; +} impl PhysicalDeviceMultiDrawFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceMultiDrawFeaturesEXTBuilder<'a> { PhysicalDeviceMultiDrawFeaturesEXTBuilder { @@ -24849,7 +25560,7 @@ impl ::std::default::Default for PhysicalDeviceBlendOperationAdvancedPropertiesE #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), advanced_blend_max_color_attachments: u32::default(), advanced_blend_independent_blend: Bool32::default(), @@ -24860,6 +25571,10 @@ impl ::std::default::Default for PhysicalDeviceBlendOperationAdvancedPropertiesE } } } +unsafe impl TaggedStructure for PhysicalDeviceBlendOperationAdvancedPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT; +} impl PhysicalDeviceBlendOperationAdvancedPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceBlendOperationAdvancedPropertiesEXTBuilder<'a> { PhysicalDeviceBlendOperationAdvancedPropertiesEXTBuilder { @@ -24959,7 +25674,7 @@ impl ::std::default::Default for PipelineColorBlendAdvancedStateCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_premultiplied: Bool32::default(), dst_premultiplied: Bool32::default(), @@ -24967,6 +25682,10 @@ impl ::std::default::Default for PipelineColorBlendAdvancedStateCreateInfoEXT { } } } +unsafe impl TaggedStructure for PipelineColorBlendAdvancedStateCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT; +} impl PipelineColorBlendAdvancedStateCreateInfoEXT { pub fn builder<'a>() -> PipelineColorBlendAdvancedStateCreateInfoEXTBuilder<'a> { PipelineColorBlendAdvancedStateCreateInfoEXTBuilder { @@ -25036,13 +25755,17 @@ impl ::std::default::Default for PhysicalDeviceInlineUniformBlockFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), inline_uniform_block: Bool32::default(), descriptor_binding_inline_uniform_block_update_after_bind: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceInlineUniformBlockFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES; +} impl PhysicalDeviceInlineUniformBlockFeatures { pub fn builder<'a>() -> PhysicalDeviceInlineUniformBlockFeaturesBuilder<'a> { PhysicalDeviceInlineUniformBlockFeaturesBuilder { @@ -25111,7 +25834,7 @@ impl ::std::default::Default for PhysicalDeviceInlineUniformBlockProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_inline_uniform_block_size: u32::default(), max_per_stage_descriptor_inline_uniform_blocks: u32::default(), @@ -25121,6 +25844,10 @@ impl ::std::default::Default for PhysicalDeviceInlineUniformBlockProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceInlineUniformBlockProperties { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_PROPERTIES; +} impl PhysicalDeviceInlineUniformBlockProperties { pub fn builder<'a>() -> PhysicalDeviceInlineUniformBlockPropertiesBuilder<'a> { PhysicalDeviceInlineUniformBlockPropertiesBuilder { @@ -25215,13 +25942,16 @@ impl ::std::default::Default for WriteDescriptorSetInlineUniformBlock { #[inline] fn default() -> Self { Self { - s_type: StructureType::WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), data_size: u32::default(), p_data: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for WriteDescriptorSetInlineUniformBlock { + const STRUCTURE_TYPE: StructureType = StructureType::WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK; +} impl WriteDescriptorSetInlineUniformBlock { pub fn builder<'a>() -> WriteDescriptorSetInlineUniformBlockBuilder<'a> { WriteDescriptorSetInlineUniformBlockBuilder { @@ -25275,12 +26005,16 @@ impl ::std::default::Default for DescriptorPoolInlineUniformBlockCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), max_inline_uniform_block_bindings: u32::default(), } } } +unsafe impl TaggedStructure for DescriptorPoolInlineUniformBlockCreateInfo { + const STRUCTURE_TYPE: StructureType = + StructureType::DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO; +} impl DescriptorPoolInlineUniformBlockCreateInfo { pub fn builder<'a>() -> DescriptorPoolInlineUniformBlockCreateInfoBuilder<'a> { DescriptorPoolInlineUniformBlockCreateInfoBuilder { @@ -25343,7 +26077,7 @@ impl ::std::default::Default for PipelineCoverageModulationStateCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineCoverageModulationStateCreateFlagsNV::default(), coverage_modulation_mode: CoverageModulationModeNV::default(), @@ -25353,6 +26087,10 @@ impl ::std::default::Default for PipelineCoverageModulationStateCreateInfoNV { } } } +unsafe impl TaggedStructure for PipelineCoverageModulationStateCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV; +} impl PipelineCoverageModulationStateCreateInfoNV { pub fn builder<'a>() -> PipelineCoverageModulationStateCreateInfoNVBuilder<'a> { PipelineCoverageModulationStateCreateInfoNVBuilder { @@ -25434,13 +26172,16 @@ impl ::std::default::Default for ImageFormatListCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_FORMAT_LIST_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), view_format_count: u32::default(), p_view_formats: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for ImageFormatListCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_FORMAT_LIST_CREATE_INFO; +} impl ImageFormatListCreateInfo { pub fn builder<'a>() -> ImageFormatListCreateInfoBuilder<'a> { ImageFormatListCreateInfoBuilder { @@ -25500,7 +26241,7 @@ impl ::std::default::Default for ValidationCacheCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VALIDATION_CACHE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: ValidationCacheCreateFlagsEXT::default(), initial_data_size: usize::default(), @@ -25508,6 +26249,9 @@ impl ::std::default::Default for ValidationCacheCreateInfoEXT { } } } +unsafe impl TaggedStructure for ValidationCacheCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VALIDATION_CACHE_CREATE_INFO_EXT; +} impl ValidationCacheCreateInfoEXT { pub fn builder<'a>() -> ValidationCacheCreateInfoEXTBuilder<'a> { ValidationCacheCreateInfoEXTBuilder { @@ -25564,12 +26308,16 @@ impl ::std::default::Default for ShaderModuleValidationCacheCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SHADER_MODULE_VALIDATION_CACHE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), validation_cache: ValidationCacheEXT::default(), } } } +unsafe impl TaggedStructure for ShaderModuleValidationCacheCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::SHADER_MODULE_VALIDATION_CACHE_CREATE_INFO_EXT; +} impl ShaderModuleValidationCacheCreateInfoEXT { pub fn builder<'a>() -> ShaderModuleValidationCacheCreateInfoEXTBuilder<'a> { ShaderModuleValidationCacheCreateInfoEXTBuilder { @@ -25623,13 +26371,16 @@ impl ::std::default::Default for PhysicalDeviceMaintenance3Properties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_per_set_descriptors: u32::default(), max_memory_allocation_size: DeviceSize::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMaintenance3Properties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES; +} impl PhysicalDeviceMaintenance3Properties { pub fn builder<'a>() -> PhysicalDeviceMaintenance3PropertiesBuilder<'a> { PhysicalDeviceMaintenance3PropertiesBuilder { @@ -25687,12 +26438,15 @@ impl ::std::default::Default for PhysicalDeviceMaintenance4Features { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), maintenance4: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMaintenance4Features { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES; +} impl PhysicalDeviceMaintenance4Features { pub fn builder<'a>() -> PhysicalDeviceMaintenance4FeaturesBuilder<'a> { PhysicalDeviceMaintenance4FeaturesBuilder { @@ -25747,12 +26501,15 @@ impl ::std::default::Default for PhysicalDeviceMaintenance4Properties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_buffer_size: DeviceSize::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMaintenance4Properties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES; +} impl PhysicalDeviceMaintenance4Properties { pub fn builder<'a>() -> PhysicalDeviceMaintenance4PropertiesBuilder<'a> { PhysicalDeviceMaintenance4PropertiesBuilder { @@ -25805,12 +26562,15 @@ impl ::std::default::Default for DescriptorSetLayoutSupport { #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_SET_LAYOUT_SUPPORT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), supported: Bool32::default(), } } } +unsafe impl TaggedStructure for DescriptorSetLayoutSupport { + const STRUCTURE_TYPE: StructureType = StructureType::DESCRIPTOR_SET_LAYOUT_SUPPORT; +} impl DescriptorSetLayoutSupport { pub fn builder<'a>() -> DescriptorSetLayoutSupportBuilder<'a> { DescriptorSetLayoutSupportBuilder { @@ -25876,12 +26636,16 @@ impl ::std::default::Default for PhysicalDeviceShaderDrawParametersFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_draw_parameters: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderDrawParametersFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES; +} impl PhysicalDeviceShaderDrawParametersFeatures { pub fn builder<'a>() -> PhysicalDeviceShaderDrawParametersFeaturesBuilder<'a> { PhysicalDeviceShaderDrawParametersFeaturesBuilder { @@ -25940,13 +26704,17 @@ impl ::std::default::Default for PhysicalDeviceShaderFloat16Int8Features { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_float16: Bool32::default(), shader_int8: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderFloat16Int8Features { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES; +} impl PhysicalDeviceShaderFloat16Int8Features { pub fn builder<'a>() -> PhysicalDeviceShaderFloat16Int8FeaturesBuilder<'a> { PhysicalDeviceShaderFloat16Int8FeaturesBuilder { @@ -26022,7 +26790,7 @@ impl ::std::default::Default for PhysicalDeviceFloatControlsProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), denorm_behavior_independence: ShaderFloatControlsIndependence::default(), rounding_mode_independence: ShaderFloatControlsIndependence::default(), @@ -26044,6 +26812,9 @@ impl ::std::default::Default for PhysicalDeviceFloatControlsProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceFloatControlsProperties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES; +} impl PhysicalDeviceFloatControlsProperties { pub fn builder<'a>() -> PhysicalDeviceFloatControlsPropertiesBuilder<'a> { PhysicalDeviceFloatControlsPropertiesBuilder { @@ -26221,12 +26992,15 @@ impl ::std::default::Default for PhysicalDeviceHostQueryResetFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), host_query_reset: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceHostQueryResetFeatures { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES; +} impl PhysicalDeviceHostQueryResetFeatures { pub fn builder<'a>() -> PhysicalDeviceHostQueryResetFeaturesBuilder<'a> { PhysicalDeviceHostQueryResetFeaturesBuilder { @@ -26335,7 +27109,7 @@ impl ::std::default::Default for NativeBufferANDROID { #[inline] fn default() -> Self { Self { - s_type: StructureType::NATIVE_BUFFER_ANDROID, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle: ::std::ptr::null(), stride: c_int::default(), @@ -26345,6 +27119,9 @@ impl ::std::default::Default for NativeBufferANDROID { } } } +unsafe impl TaggedStructure for NativeBufferANDROID { + const STRUCTURE_TYPE: StructureType = StructureType::NATIVE_BUFFER_ANDROID; +} impl NativeBufferANDROID { pub fn builder<'a>() -> NativeBufferANDROIDBuilder<'a> { NativeBufferANDROIDBuilder { @@ -26415,12 +27192,15 @@ impl ::std::default::Default for SwapchainImageCreateInfoANDROID { #[inline] fn default() -> Self { Self { - s_type: StructureType::SWAPCHAIN_IMAGE_CREATE_INFO_ANDROID, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), usage: SwapchainImageUsageFlagsANDROID::default(), } } } +unsafe impl TaggedStructure for SwapchainImageCreateInfoANDROID { + const STRUCTURE_TYPE: StructureType = StructureType::SWAPCHAIN_IMAGE_CREATE_INFO_ANDROID; +} impl SwapchainImageCreateInfoANDROID { pub fn builder<'a>() -> SwapchainImageCreateInfoANDROIDBuilder<'a> { SwapchainImageCreateInfoANDROIDBuilder { @@ -26471,12 +27251,16 @@ impl ::std::default::Default for PhysicalDevicePresentationPropertiesANDROID { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PRESENTATION_PROPERTIES_ANDROID, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), shared_image: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePresentationPropertiesANDROID { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PRESENTATION_PROPERTIES_ANDROID; +} impl PhysicalDevicePresentationPropertiesANDROID { pub fn builder<'a>() -> PhysicalDevicePresentationPropertiesANDROIDBuilder<'a> { PhysicalDevicePresentationPropertiesANDROIDBuilder { @@ -26689,12 +27473,16 @@ impl ::std::default::Default for DeviceQueueGlobalPriorityCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), global_priority: QueueGlobalPriorityKHR::default(), } } } +unsafe impl TaggedStructure for DeviceQueueGlobalPriorityCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_KHR; +} impl DeviceQueueGlobalPriorityCreateInfoKHR { pub fn builder<'a>() -> DeviceQueueGlobalPriorityCreateInfoKHRBuilder<'a> { DeviceQueueGlobalPriorityCreateInfoKHRBuilder { @@ -26747,12 +27535,16 @@ impl ::std::default::Default for PhysicalDeviceGlobalPriorityQueryFeaturesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), global_priority_query: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceGlobalPriorityQueryFeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_KHR; +} impl PhysicalDeviceGlobalPriorityQueryFeaturesKHR { pub fn builder<'a>() -> PhysicalDeviceGlobalPriorityQueryFeaturesKHRBuilder<'a> { PhysicalDeviceGlobalPriorityQueryFeaturesKHRBuilder { @@ -26811,13 +27603,17 @@ impl ::std::default::Default for QueueFamilyGlobalPriorityPropertiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), priority_count: u32::default(), priorities: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for QueueFamilyGlobalPriorityPropertiesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_KHR; +} impl QueueFamilyGlobalPriorityPropertiesKHR { pub fn builder<'a>() -> QueueFamilyGlobalPriorityPropertiesKHRBuilder<'a> { QueueFamilyGlobalPriorityPropertiesKHRBuilder { @@ -26880,7 +27676,7 @@ impl ::std::default::Default for DebugUtilsObjectNameInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEBUG_UTILS_OBJECT_NAME_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), object_type: ObjectType::default(), object_handle: u64::default(), @@ -26888,6 +27684,9 @@ impl ::std::default::Default for DebugUtilsObjectNameInfoEXT { } } } +unsafe impl TaggedStructure for DebugUtilsObjectNameInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEBUG_UTILS_OBJECT_NAME_INFO_EXT; +} impl DebugUtilsObjectNameInfoEXT { pub fn builder<'a>() -> DebugUtilsObjectNameInfoEXTBuilder<'a> { DebugUtilsObjectNameInfoEXTBuilder { @@ -26954,7 +27753,7 @@ impl ::std::default::Default for DebugUtilsObjectTagInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEBUG_UTILS_OBJECT_TAG_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), object_type: ObjectType::default(), object_handle: u64::default(), @@ -26964,6 +27763,9 @@ impl ::std::default::Default for DebugUtilsObjectTagInfoEXT { } } } +unsafe impl TaggedStructure for DebugUtilsObjectTagInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEBUG_UTILS_OBJECT_TAG_INFO_EXT; +} impl DebugUtilsObjectTagInfoEXT { pub fn builder<'a>() -> DebugUtilsObjectTagInfoEXTBuilder<'a> { DebugUtilsObjectTagInfoEXTBuilder { @@ -27031,13 +27833,16 @@ impl ::std::default::Default for DebugUtilsLabelEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEBUG_UTILS_LABEL_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_label_name: ::std::ptr::null(), color: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for DebugUtilsLabelEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEBUG_UTILS_LABEL_EXT; +} impl DebugUtilsLabelEXT { pub fn builder<'a>() -> DebugUtilsLabelEXTBuilder<'a> { DebugUtilsLabelEXTBuilder { @@ -27113,7 +27918,7 @@ impl ::std::default::Default for DebugUtilsMessengerCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DebugUtilsMessengerCreateFlagsEXT::default(), message_severity: DebugUtilsMessageSeverityFlagsEXT::default(), @@ -27123,6 +27928,9 @@ impl ::std::default::Default for DebugUtilsMessengerCreateInfoEXT { } } } +unsafe impl TaggedStructure for DebugUtilsMessengerCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT; +} impl DebugUtilsMessengerCreateInfoEXT { pub fn builder<'a>() -> DebugUtilsMessengerCreateInfoEXTBuilder<'a> { DebugUtilsMessengerCreateInfoEXTBuilder { @@ -27207,7 +28015,7 @@ impl ::std::default::Default for DebugUtilsMessengerCallbackDataEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DebugUtilsMessengerCallbackDataFlagsEXT::default(), p_message_id_name: ::std::ptr::null(), @@ -27222,6 +28030,9 @@ impl ::std::default::Default for DebugUtilsMessengerCallbackDataEXT { } } } +unsafe impl TaggedStructure for DebugUtilsMessengerCallbackDataEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT; +} impl DebugUtilsMessengerCallbackDataEXT { pub fn builder<'a>() -> DebugUtilsMessengerCallbackDataEXTBuilder<'a> { DebugUtilsMessengerCallbackDataEXTBuilder { @@ -27305,12 +28116,16 @@ impl ::std::default::Default for PhysicalDeviceDeviceMemoryReportFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DEVICE_MEMORY_REPORT_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), device_memory_report: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceDeviceMemoryReportFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DEVICE_MEMORY_REPORT_FEATURES_EXT; +} impl PhysicalDeviceDeviceMemoryReportFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceDeviceMemoryReportFeaturesEXTBuilder<'a> { PhysicalDeviceDeviceMemoryReportFeaturesEXTBuilder { @@ -27384,7 +28199,7 @@ impl ::std::default::Default for DeviceDeviceMemoryReportCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_DEVICE_MEMORY_REPORT_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DeviceMemoryReportFlagsEXT::default(), pfn_user_callback: PFN_vkDeviceMemoryReportCallbackEXT::default(), @@ -27392,6 +28207,10 @@ impl ::std::default::Default for DeviceDeviceMemoryReportCreateInfoEXT { } } } +unsafe impl TaggedStructure for DeviceDeviceMemoryReportCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::DEVICE_DEVICE_MEMORY_REPORT_CREATE_INFO_EXT; +} impl DeviceDeviceMemoryReportCreateInfoEXT { pub fn builder<'a>() -> DeviceDeviceMemoryReportCreateInfoEXTBuilder<'a> { DeviceDeviceMemoryReportCreateInfoEXTBuilder { @@ -27463,7 +28282,7 @@ impl ::std::default::Default for DeviceMemoryReportCallbackDataEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_MEMORY_REPORT_CALLBACK_DATA_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), flags: DeviceMemoryReportFlagsEXT::default(), ty: DeviceMemoryReportEventTypeEXT::default(), @@ -27475,6 +28294,9 @@ impl ::std::default::Default for DeviceMemoryReportCallbackDataEXT { } } } +unsafe impl TaggedStructure for DeviceMemoryReportCallbackDataEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_MEMORY_REPORT_CALLBACK_DATA_EXT; +} impl DeviceMemoryReportCallbackDataEXT { pub fn builder<'a>() -> DeviceMemoryReportCallbackDataEXTBuilder<'a> { DeviceMemoryReportCallbackDataEXTBuilder { @@ -27556,13 +28378,16 @@ impl ::std::default::Default for ImportMemoryHostPointerInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_MEMORY_HOST_POINTER_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), handle_type: ExternalMemoryHandleTypeFlags::default(), p_host_pointer: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for ImportMemoryHostPointerInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_MEMORY_HOST_POINTER_INFO_EXT; +} impl ImportMemoryHostPointerInfoEXT { pub fn builder<'a>() -> ImportMemoryHostPointerInfoEXTBuilder<'a> { ImportMemoryHostPointerInfoEXTBuilder { @@ -27620,12 +28445,15 @@ impl ::std::default::Default for MemoryHostPointerPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_HOST_POINTER_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), memory_type_bits: u32::default(), } } } +unsafe impl TaggedStructure for MemoryHostPointerPropertiesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_HOST_POINTER_PROPERTIES_EXT; +} impl MemoryHostPointerPropertiesEXT { pub fn builder<'a>() -> MemoryHostPointerPropertiesEXTBuilder<'a> { MemoryHostPointerPropertiesEXTBuilder { @@ -27676,12 +28504,16 @@ impl ::std::default::Default for PhysicalDeviceExternalMemoryHostPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), min_imported_host_pointer_alignment: DeviceSize::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceExternalMemoryHostPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT; +} impl PhysicalDeviceExternalMemoryHostPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceExternalMemoryHostPropertiesEXTBuilder<'a> { PhysicalDeviceExternalMemoryHostPropertiesEXTBuilder { @@ -27748,7 +28580,7 @@ impl ::std::default::Default for PhysicalDeviceConservativeRasterizationProperti #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), primitive_overestimation_size: f32::default(), max_extra_primitive_overestimation_size: f32::default(), @@ -27762,6 +28594,10 @@ impl ::std::default::Default for PhysicalDeviceConservativeRasterizationProperti } } } +unsafe impl TaggedStructure for PhysicalDeviceConservativeRasterizationPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXT; +} impl PhysicalDeviceConservativeRasterizationPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceConservativeRasterizationPropertiesEXTBuilder<'a> { PhysicalDeviceConservativeRasterizationPropertiesEXTBuilder { @@ -27883,12 +28719,15 @@ impl ::std::default::Default for CalibratedTimestampInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::CALIBRATED_TIMESTAMP_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), time_domain: TimeDomainEXT::default(), } } } +unsafe impl TaggedStructure for CalibratedTimestampInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::CALIBRATED_TIMESTAMP_INFO_EXT; +} impl CalibratedTimestampInfoEXT { pub fn builder<'a>() -> CalibratedTimestampInfoEXTBuilder<'a> { CalibratedTimestampInfoEXTBuilder { @@ -27952,7 +28791,7 @@ impl ::std::default::Default for PhysicalDeviceShaderCorePropertiesAMD { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_engine_count: u32::default(), shader_arrays_per_engine_count: u32::default(), @@ -27971,6 +28810,9 @@ impl ::std::default::Default for PhysicalDeviceShaderCorePropertiesAMD { } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderCorePropertiesAMD { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMD; +} impl PhysicalDeviceShaderCorePropertiesAMD { pub fn builder<'a>() -> PhysicalDeviceShaderCorePropertiesAMDBuilder<'a> { PhysicalDeviceShaderCorePropertiesAMDBuilder { @@ -28089,13 +28931,17 @@ impl ::std::default::Default for PhysicalDeviceShaderCoreProperties2AMD { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_core_features: ShaderCorePropertiesFlagsAMD::default(), active_compute_unit_count: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderCoreProperties2AMD { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD; +} impl PhysicalDeviceShaderCoreProperties2AMD { pub fn builder<'a>() -> PhysicalDeviceShaderCoreProperties2AMDBuilder<'a> { PhysicalDeviceShaderCoreProperties2AMDBuilder { @@ -28158,7 +29004,7 @@ impl ::std::default::Default for PipelineRasterizationConservativeStateCreateInf #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineRasterizationConservativeStateCreateFlagsEXT::default(), conservative_rasterization_mode: ConservativeRasterizationModeEXT::default(), @@ -28166,6 +29012,10 @@ impl ::std::default::Default for PipelineRasterizationConservativeStateCreateInf } } } +unsafe impl TaggedStructure for PipelineRasterizationConservativeStateCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXT; +} impl PipelineRasterizationConservativeStateCreateInfoEXT { pub fn builder<'a>() -> PipelineRasterizationConservativeStateCreateInfoEXTBuilder<'a> { PipelineRasterizationConservativeStateCreateInfoEXTBuilder { @@ -28259,7 +29109,7 @@ impl ::std::default::Default for PhysicalDeviceDescriptorIndexingFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_input_attachment_array_dynamic_indexing: Bool32::default(), shader_uniform_texel_buffer_array_dynamic_indexing: Bool32::default(), @@ -28284,6 +29134,10 @@ impl ::std::default::Default for PhysicalDeviceDescriptorIndexingFeatures { } } } +unsafe impl TaggedStructure for PhysicalDeviceDescriptorIndexingFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES; +} impl PhysicalDeviceDescriptorIndexingFeatures { pub fn builder<'a>() -> PhysicalDeviceDescriptorIndexingFeaturesBuilder<'a> { PhysicalDeviceDescriptorIndexingFeaturesBuilder { @@ -28541,7 +29395,7 @@ impl ::std::default::Default for PhysicalDeviceDescriptorIndexingProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_update_after_bind_descriptors_in_all_pools: u32::default(), shader_uniform_buffer_array_non_uniform_indexing_native: Bool32::default(), @@ -28569,6 +29423,10 @@ impl ::std::default::Default for PhysicalDeviceDescriptorIndexingProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceDescriptorIndexingProperties { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES; +} impl PhysicalDeviceDescriptorIndexingProperties { pub fn builder<'a>() -> PhysicalDeviceDescriptorIndexingPropertiesBuilder<'a> { PhysicalDeviceDescriptorIndexingPropertiesBuilder { @@ -28841,13 +29699,17 @@ impl ::std::default::Default for DescriptorSetLayoutBindingFlagsCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), binding_count: u32::default(), p_binding_flags: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for DescriptorSetLayoutBindingFlagsCreateInfo { + const STRUCTURE_TYPE: StructureType = + StructureType::DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO; +} impl DescriptorSetLayoutBindingFlagsCreateInfo { pub fn builder<'a>() -> DescriptorSetLayoutBindingFlagsCreateInfoBuilder<'a> { DescriptorSetLayoutBindingFlagsCreateInfoBuilder { @@ -28905,13 +29767,17 @@ impl ::std::default::Default for DescriptorSetVariableDescriptorCountAllocateInf #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), descriptor_set_count: u32::default(), p_descriptor_counts: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for DescriptorSetVariableDescriptorCountAllocateInfo { + const STRUCTURE_TYPE: StructureType = + StructureType::DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO; +} impl DescriptorSetVariableDescriptorCountAllocateInfo { pub fn builder<'a>() -> DescriptorSetVariableDescriptorCountAllocateInfoBuilder<'a> { DescriptorSetVariableDescriptorCountAllocateInfoBuilder { @@ -28968,12 +29834,16 @@ impl ::std::default::Default for DescriptorSetVariableDescriptorCountLayoutSuppo #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_variable_descriptor_count: u32::default(), } } } +unsafe impl TaggedStructure for DescriptorSetVariableDescriptorCountLayoutSupport { + const STRUCTURE_TYPE: StructureType = + StructureType::DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT; +} impl DescriptorSetVariableDescriptorCountLayoutSupport { pub fn builder<'a>() -> DescriptorSetVariableDescriptorCountLayoutSupportBuilder<'a> { DescriptorSetVariableDescriptorCountLayoutSupportBuilder { @@ -29040,7 +29910,7 @@ impl ::std::default::Default for AttachmentDescription2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::ATTACHMENT_DESCRIPTION_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: AttachmentDescriptionFlags::default(), format: Format::default(), @@ -29054,6 +29924,9 @@ impl ::std::default::Default for AttachmentDescription2 { } } } +unsafe impl TaggedStructure for AttachmentDescription2 { + const STRUCTURE_TYPE: StructureType = StructureType::ATTACHMENT_DESCRIPTION_2; +} impl AttachmentDescription2 { pub fn builder<'a>() -> AttachmentDescription2Builder<'a> { AttachmentDescription2Builder { @@ -29161,7 +30034,7 @@ impl ::std::default::Default for AttachmentReference2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::ATTACHMENT_REFERENCE_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), attachment: u32::default(), layout: ImageLayout::default(), @@ -29169,6 +30042,9 @@ impl ::std::default::Default for AttachmentReference2 { } } } +unsafe impl TaggedStructure for AttachmentReference2 { + const STRUCTURE_TYPE: StructureType = StructureType::ATTACHMENT_REFERENCE_2; +} impl AttachmentReference2 { pub fn builder<'a>() -> AttachmentReference2Builder<'a> { AttachmentReference2Builder { @@ -29254,7 +30130,7 @@ impl ::std::default::Default for SubpassDescription2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBPASS_DESCRIPTION_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: SubpassDescriptionFlags::default(), pipeline_bind_point: PipelineBindPoint::default(), @@ -29270,6 +30146,9 @@ impl ::std::default::Default for SubpassDescription2 { } } } +unsafe impl TaggedStructure for SubpassDescription2 { + const STRUCTURE_TYPE: StructureType = StructureType::SUBPASS_DESCRIPTION_2; +} impl SubpassDescription2 { pub fn builder<'a>() -> SubpassDescription2Builder<'a> { SubpassDescription2Builder { @@ -29384,7 +30263,7 @@ impl ::std::default::Default for SubpassDependency2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBPASS_DEPENDENCY_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_subpass: u32::default(), dst_subpass: u32::default(), @@ -29397,6 +30276,9 @@ impl ::std::default::Default for SubpassDependency2 { } } } +unsafe impl TaggedStructure for SubpassDependency2 { + const STRUCTURE_TYPE: StructureType = StructureType::SUBPASS_DEPENDENCY_2; +} impl SubpassDependency2 { pub fn builder<'a>() -> SubpassDependency2Builder<'a> { SubpassDependency2Builder { @@ -29505,7 +30387,7 @@ impl ::std::default::Default for RenderPassCreateInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_CREATE_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: RenderPassCreateFlags::default(), attachment_count: u32::default(), @@ -29519,6 +30401,9 @@ impl ::std::default::Default for RenderPassCreateInfo2 { } } } +unsafe impl TaggedStructure for RenderPassCreateInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::RENDER_PASS_CREATE_INFO_2; +} impl RenderPassCreateInfo2 { pub fn builder<'a>() -> RenderPassCreateInfo2Builder<'a> { RenderPassCreateInfo2Builder { @@ -29608,12 +30493,15 @@ impl ::std::default::Default for SubpassBeginInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBPASS_BEGIN_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), contents: SubpassContents::default(), } } } +unsafe impl TaggedStructure for SubpassBeginInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SUBPASS_BEGIN_INFO; +} impl SubpassBeginInfo { pub fn builder<'a>() -> SubpassBeginInfoBuilder<'a> { SubpassBeginInfoBuilder { @@ -29663,11 +30551,14 @@ impl ::std::default::Default for SubpassEndInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBPASS_END_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for SubpassEndInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SUBPASS_END_INFO; +} impl SubpassEndInfo { pub fn builder<'a>() -> SubpassEndInfoBuilder<'a> { SubpassEndInfoBuilder { @@ -29728,12 +30619,16 @@ impl ::std::default::Default for PhysicalDeviceTimelineSemaphoreFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), timeline_semaphore: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceTimelineSemaphoreFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES; +} impl PhysicalDeviceTimelineSemaphoreFeatures { pub fn builder<'a>() -> PhysicalDeviceTimelineSemaphoreFeaturesBuilder<'a> { PhysicalDeviceTimelineSemaphoreFeaturesBuilder { @@ -29788,12 +30683,16 @@ impl ::std::default::Default for PhysicalDeviceTimelineSemaphoreProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_timeline_semaphore_value_difference: u64::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceTimelineSemaphoreProperties { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES; +} impl PhysicalDeviceTimelineSemaphoreProperties { pub fn builder<'a>() -> PhysicalDeviceTimelineSemaphorePropertiesBuilder<'a> { PhysicalDeviceTimelineSemaphorePropertiesBuilder { @@ -29854,13 +30753,16 @@ impl ::std::default::Default for SemaphoreTypeCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SEMAPHORE_TYPE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), semaphore_type: SemaphoreType::default(), initial_value: u64::default(), } } } +unsafe impl TaggedStructure for SemaphoreTypeCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SEMAPHORE_TYPE_CREATE_INFO; +} impl SemaphoreTypeCreateInfo { pub fn builder<'a>() -> SemaphoreTypeCreateInfoBuilder<'a> { SemaphoreTypeCreateInfoBuilder { @@ -29923,7 +30825,7 @@ impl ::std::default::Default for TimelineSemaphoreSubmitInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::TIMELINE_SEMAPHORE_SUBMIT_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), wait_semaphore_value_count: u32::default(), p_wait_semaphore_values: ::std::ptr::null(), @@ -29932,6 +30834,9 @@ impl ::std::default::Default for TimelineSemaphoreSubmitInfo { } } } +unsafe impl TaggedStructure for TimelineSemaphoreSubmitInfo { + const STRUCTURE_TYPE: StructureType = StructureType::TIMELINE_SEMAPHORE_SUBMIT_INFO; +} impl TimelineSemaphoreSubmitInfo { pub fn builder<'a>() -> TimelineSemaphoreSubmitInfoBuilder<'a> { TimelineSemaphoreSubmitInfoBuilder { @@ -29996,7 +30901,7 @@ impl ::std::default::Default for SemaphoreWaitInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SEMAPHORE_WAIT_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: SemaphoreWaitFlags::default(), semaphore_count: u32::default(), @@ -30005,6 +30910,9 @@ impl ::std::default::Default for SemaphoreWaitInfo { } } } +unsafe impl TaggedStructure for SemaphoreWaitInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SEMAPHORE_WAIT_INFO; +} impl SemaphoreWaitInfo { pub fn builder<'a>() -> SemaphoreWaitInfoBuilder<'a> { SemaphoreWaitInfoBuilder { @@ -30068,13 +30976,16 @@ impl ::std::default::Default for SemaphoreSignalInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SEMAPHORE_SIGNAL_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), semaphore: Semaphore::default(), value: u64::default(), } } } +unsafe impl TaggedStructure for SemaphoreSignalInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SEMAPHORE_SIGNAL_INFO; +} impl SemaphoreSignalInfo { pub fn builder<'a>() -> SemaphoreSignalInfoBuilder<'a> { SemaphoreSignalInfoBuilder { @@ -30181,13 +31092,17 @@ impl ::std::default::Default for PipelineVertexInputDivisorStateCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), vertex_binding_divisor_count: u32::default(), p_vertex_binding_divisors: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for PipelineVertexInputDivisorStateCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT; +} impl PipelineVertexInputDivisorStateCreateInfoEXT { pub fn builder<'a>() -> PipelineVertexInputDivisorStateCreateInfoEXTBuilder<'a> { PipelineVertexInputDivisorStateCreateInfoEXTBuilder { @@ -30250,12 +31165,16 @@ impl ::std::default::Default for PhysicalDeviceVertexAttributeDivisorPropertiesE #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_vertex_attrib_divisor: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceVertexAttributeDivisorPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT; +} impl PhysicalDeviceVertexAttributeDivisorPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceVertexAttributeDivisorPropertiesEXTBuilder<'a> { PhysicalDeviceVertexAttributeDivisorPropertiesEXTBuilder { @@ -30314,7 +31233,7 @@ impl ::std::default::Default for PhysicalDevicePCIBusInfoPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), pci_domain: u32::default(), pci_bus: u32::default(), @@ -30323,6 +31242,10 @@ impl ::std::default::Default for PhysicalDevicePCIBusInfoPropertiesEXT { } } } +unsafe impl TaggedStructure for PhysicalDevicePCIBusInfoPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT; +} impl PhysicalDevicePCIBusInfoPropertiesEXT { pub fn builder<'a>() -> PhysicalDevicePCIBusInfoPropertiesEXTBuilder<'a> { PhysicalDevicePCIBusInfoPropertiesEXTBuilder { @@ -30390,12 +31313,16 @@ impl ::std::default::Default for ImportAndroidHardwareBufferInfoANDROID { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_ANDROID_HARDWARE_BUFFER_INFO_ANDROID, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), buffer: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for ImportAndroidHardwareBufferInfoANDROID { + const STRUCTURE_TYPE: StructureType = + StructureType::IMPORT_ANDROID_HARDWARE_BUFFER_INFO_ANDROID; +} impl ImportAndroidHardwareBufferInfoANDROID { pub fn builder<'a>() -> ImportAndroidHardwareBufferInfoANDROIDBuilder<'a> { ImportAndroidHardwareBufferInfoANDROIDBuilder { @@ -30448,12 +31375,15 @@ impl ::std::default::Default for AndroidHardwareBufferUsageANDROID { #[inline] fn default() -> Self { Self { - s_type: StructureType::ANDROID_HARDWARE_BUFFER_USAGE_ANDROID, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), android_hardware_buffer_usage: u64::default(), } } } +unsafe impl TaggedStructure for AndroidHardwareBufferUsageANDROID { + const STRUCTURE_TYPE: StructureType = StructureType::ANDROID_HARDWARE_BUFFER_USAGE_ANDROID; +} impl AndroidHardwareBufferUsageANDROID { pub fn builder<'a>() -> AndroidHardwareBufferUsageANDROIDBuilder<'a> { AndroidHardwareBufferUsageANDROIDBuilder { @@ -30507,13 +31437,16 @@ impl ::std::default::Default for AndroidHardwareBufferPropertiesANDROID { #[inline] fn default() -> Self { Self { - s_type: StructureType::ANDROID_HARDWARE_BUFFER_PROPERTIES_ANDROID, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), allocation_size: DeviceSize::default(), memory_type_bits: u32::default(), } } } +unsafe impl TaggedStructure for AndroidHardwareBufferPropertiesANDROID { + const STRUCTURE_TYPE: StructureType = StructureType::ANDROID_HARDWARE_BUFFER_PROPERTIES_ANDROID; +} impl AndroidHardwareBufferPropertiesANDROID { pub fn builder<'a>() -> AndroidHardwareBufferPropertiesANDROIDBuilder<'a> { AndroidHardwareBufferPropertiesANDROIDBuilder { @@ -30587,12 +31520,16 @@ impl ::std::default::Default for MemoryGetAndroidHardwareBufferInfoANDROID { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_GET_ANDROID_HARDWARE_BUFFER_INFO_ANDROID, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), memory: DeviceMemory::default(), } } } +unsafe impl TaggedStructure for MemoryGetAndroidHardwareBufferInfoANDROID { + const STRUCTURE_TYPE: StructureType = + StructureType::MEMORY_GET_ANDROID_HARDWARE_BUFFER_INFO_ANDROID; +} impl MemoryGetAndroidHardwareBufferInfoANDROID { pub fn builder<'a>() -> MemoryGetAndroidHardwareBufferInfoANDROIDBuilder<'a> { MemoryGetAndroidHardwareBufferInfoANDROIDBuilder { @@ -30650,7 +31587,7 @@ impl ::std::default::Default for AndroidHardwareBufferFormatPropertiesANDROID { #[inline] fn default() -> Self { Self { - s_type: StructureType::ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), format: Format::default(), external_format: u64::default(), @@ -30663,6 +31600,10 @@ impl ::std::default::Default for AndroidHardwareBufferFormatPropertiesANDROID { } } } +unsafe impl TaggedStructure for AndroidHardwareBufferFormatPropertiesANDROID { + const STRUCTURE_TYPE: StructureType = + StructureType::ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID; +} impl AndroidHardwareBufferFormatPropertiesANDROID { pub fn builder<'a>() -> AndroidHardwareBufferFormatPropertiesANDROIDBuilder<'a> { AndroidHardwareBufferFormatPropertiesANDROIDBuilder { @@ -30762,12 +31703,16 @@ impl ::std::default::Default for CommandBufferInheritanceConditionalRenderingInf #[inline] fn default() -> Self { Self { - s_type: StructureType::COMMAND_BUFFER_INHERITANCE_CONDITIONAL_RENDERING_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), conditional_rendering_enable: Bool32::default(), } } } +unsafe impl TaggedStructure for CommandBufferInheritanceConditionalRenderingInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::COMMAND_BUFFER_INHERITANCE_CONDITIONAL_RENDERING_INFO_EXT; +} impl CommandBufferInheritanceConditionalRenderingInfoEXT { pub fn builder<'a>() -> CommandBufferInheritanceConditionalRenderingInfoEXTBuilder<'a> { CommandBufferInheritanceConditionalRenderingInfoEXTBuilder { @@ -30826,12 +31771,15 @@ impl ::std::default::Default for ExternalFormatANDROID { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXTERNAL_FORMAT_ANDROID, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), external_format: u64::default(), } } } +unsafe impl TaggedStructure for ExternalFormatANDROID { + const STRUCTURE_TYPE: StructureType = StructureType::EXTERNAL_FORMAT_ANDROID; +} impl ExternalFormatANDROID { pub fn builder<'a>() -> ExternalFormatANDROIDBuilder<'a> { ExternalFormatANDROIDBuilder { @@ -30888,7 +31836,7 @@ impl ::std::default::Default for PhysicalDevice8BitStorageFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), storage_buffer8_bit_access: Bool32::default(), uniform_and_storage_buffer8_bit_access: Bool32::default(), @@ -30896,6 +31844,9 @@ impl ::std::default::Default for PhysicalDevice8BitStorageFeatures { } } } +unsafe impl TaggedStructure for PhysicalDevice8BitStorageFeatures { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES; +} impl PhysicalDevice8BitStorageFeatures { pub fn builder<'a>() -> PhysicalDevice8BitStorageFeaturesBuilder<'a> { PhysicalDevice8BitStorageFeaturesBuilder { @@ -30965,13 +31916,17 @@ impl ::std::default::Default for PhysicalDeviceConditionalRenderingFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), conditional_rendering: Bool32::default(), inherited_conditional_rendering: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceConditionalRenderingFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT; +} impl PhysicalDeviceConditionalRenderingFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceConditionalRenderingFeaturesEXTBuilder<'a> { PhysicalDeviceConditionalRenderingFeaturesEXTBuilder { @@ -31039,7 +31994,7 @@ impl ::std::default::Default for PhysicalDeviceVulkanMemoryModelFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), vulkan_memory_model: Bool32::default(), vulkan_memory_model_device_scope: Bool32::default(), @@ -31047,6 +32002,10 @@ impl ::std::default::Default for PhysicalDeviceVulkanMemoryModelFeatures { } } } +unsafe impl TaggedStructure for PhysicalDeviceVulkanMemoryModelFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES; +} impl PhysicalDeviceVulkanMemoryModelFeatures { pub fn builder<'a>() -> PhysicalDeviceVulkanMemoryModelFeaturesBuilder<'a> { PhysicalDeviceVulkanMemoryModelFeaturesBuilder { @@ -31120,13 +32079,17 @@ impl ::std::default::Default for PhysicalDeviceShaderAtomicInt64Features { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_buffer_int64_atomics: Bool32::default(), shader_shared_int64_atomics: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderAtomicInt64Features { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES; +} impl PhysicalDeviceShaderAtomicInt64Features { pub fn builder<'a>() -> PhysicalDeviceShaderAtomicInt64FeaturesBuilder<'a> { PhysicalDeviceShaderAtomicInt64FeaturesBuilder { @@ -31197,7 +32160,7 @@ impl ::std::default::Default for PhysicalDeviceShaderAtomicFloatFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_buffer_float32_atomics: Bool32::default(), shader_buffer_float32_atomic_add: Bool32::default(), @@ -31214,6 +32177,10 @@ impl ::std::default::Default for PhysicalDeviceShaderAtomicFloatFeaturesEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderAtomicFloatFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT; +} impl PhysicalDeviceShaderAtomicFloatFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceShaderAtomicFloatFeaturesEXTBuilder<'a> { PhysicalDeviceShaderAtomicFloatFeaturesEXTBuilder { @@ -31355,7 +32322,7 @@ impl ::std::default::Default for PhysicalDeviceShaderAtomicFloat2FeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_2_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_buffer_float16_atomics: Bool32::default(), shader_buffer_float16_atomic_add: Bool32::default(), @@ -31372,6 +32339,10 @@ impl ::std::default::Default for PhysicalDeviceShaderAtomicFloat2FeaturesEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderAtomicFloat2FeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_2_FEATURES_EXT; +} impl PhysicalDeviceShaderAtomicFloat2FeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceShaderAtomicFloat2FeaturesEXTBuilder<'a> { PhysicalDeviceShaderAtomicFloat2FeaturesEXTBuilder { @@ -31521,13 +32492,17 @@ impl ::std::default::Default for PhysicalDeviceVertexAttributeDivisorFeaturesEXT #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), vertex_attribute_instance_rate_divisor: Bool32::default(), vertex_attribute_instance_rate_zero_divisor: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceVertexAttributeDivisorFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT; +} impl PhysicalDeviceVertexAttributeDivisorFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceVertexAttributeDivisorFeaturesEXTBuilder<'a> { PhysicalDeviceVertexAttributeDivisorFeaturesEXTBuilder { @@ -31598,12 +32573,15 @@ impl ::std::default::Default for QueueFamilyCheckpointPropertiesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::QUEUE_FAMILY_CHECKPOINT_PROPERTIES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), checkpoint_execution_stage_mask: PipelineStageFlags::default(), } } } +unsafe impl TaggedStructure for QueueFamilyCheckpointPropertiesNV { + const STRUCTURE_TYPE: StructureType = StructureType::QUEUE_FAMILY_CHECKPOINT_PROPERTIES_NV; +} impl QueueFamilyCheckpointPropertiesNV { pub fn builder<'a>() -> QueueFamilyCheckpointPropertiesNVBuilder<'a> { QueueFamilyCheckpointPropertiesNVBuilder { @@ -31660,13 +32638,16 @@ impl ::std::default::Default for CheckpointDataNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::CHECKPOINT_DATA_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), stage: PipelineStageFlags::default(), p_checkpoint_marker: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for CheckpointDataNV { + const STRUCTURE_TYPE: StructureType = StructureType::CHECKPOINT_DATA_NV; +} impl CheckpointDataNV { pub fn builder<'a>() -> CheckpointDataNVBuilder<'a> { CheckpointDataNVBuilder { @@ -31725,7 +32706,7 @@ impl ::std::default::Default for PhysicalDeviceDepthStencilResolveProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), supported_depth_resolve_modes: ResolveModeFlags::default(), supported_stencil_resolve_modes: ResolveModeFlags::default(), @@ -31734,6 +32715,10 @@ impl ::std::default::Default for PhysicalDeviceDepthStencilResolveProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceDepthStencilResolveProperties { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES; +} impl PhysicalDeviceDepthStencilResolveProperties { pub fn builder<'a>() -> PhysicalDeviceDepthStencilResolvePropertiesBuilder<'a> { PhysicalDeviceDepthStencilResolvePropertiesBuilder { @@ -31812,7 +32797,7 @@ impl ::std::default::Default for SubpassDescriptionDepthStencilResolve { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), depth_resolve_mode: ResolveModeFlags::default(), stencil_resolve_mode: ResolveModeFlags::default(), @@ -31820,6 +32805,9 @@ impl ::std::default::Default for SubpassDescriptionDepthStencilResolve { } } } +unsafe impl TaggedStructure for SubpassDescriptionDepthStencilResolve { + const STRUCTURE_TYPE: StructureType = StructureType::SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE; +} impl SubpassDescriptionDepthStencilResolve { pub fn builder<'a>() -> SubpassDescriptionDepthStencilResolveBuilder<'a> { SubpassDescriptionDepthStencilResolveBuilder { @@ -31885,12 +32873,15 @@ impl ::std::default::Default for ImageViewASTCDecodeModeEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_VIEW_ASTC_DECODE_MODE_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), decode_mode: Format::default(), } } } +unsafe impl TaggedStructure for ImageViewASTCDecodeModeEXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_VIEW_ASTC_DECODE_MODE_EXT; +} impl ImageViewASTCDecodeModeEXT { pub fn builder<'a>() -> ImageViewASTCDecodeModeEXTBuilder<'a> { ImageViewASTCDecodeModeEXTBuilder { @@ -31943,12 +32934,15 @@ impl ::std::default::Default for PhysicalDeviceASTCDecodeFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_ASTC_DECODE_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), decode_mode_shared_exponent: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceASTCDecodeFeaturesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_ASTC_DECODE_FEATURES_EXT; +} impl PhysicalDeviceASTCDecodeFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceASTCDecodeFeaturesEXTBuilder<'a> { PhysicalDeviceASTCDecodeFeaturesEXTBuilder { @@ -32004,13 +32998,17 @@ impl ::std::default::Default for PhysicalDeviceTransformFeedbackFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), transform_feedback: Bool32::default(), geometry_streams: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceTransformFeedbackFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT; +} impl PhysicalDeviceTransformFeedbackFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceTransformFeedbackFeaturesEXTBuilder<'a> { PhysicalDeviceTransformFeedbackFeaturesEXTBuilder { @@ -32082,7 +33080,7 @@ impl ::std::default::Default for PhysicalDeviceTransformFeedbackPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_transform_feedback_streams: u32::default(), max_transform_feedback_buffers: u32::default(), @@ -32097,6 +33095,10 @@ impl ::std::default::Default for PhysicalDeviceTransformFeedbackPropertiesEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceTransformFeedbackPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT; +} impl PhysicalDeviceTransformFeedbackPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceTransformFeedbackPropertiesEXTBuilder<'a> { PhysicalDeviceTransformFeedbackPropertiesEXTBuilder { @@ -32221,13 +33223,17 @@ impl ::std::default::Default for PipelineRasterizationStateStreamCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineRasterizationStateStreamCreateFlagsEXT::default(), rasterization_stream: u32::default(), } } } +unsafe impl TaggedStructure for PipelineRasterizationStateStreamCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT; +} impl PipelineRasterizationStateStreamCreateInfoEXT { pub fn builder<'a>() -> PipelineRasterizationStateStreamCreateInfoEXTBuilder<'a> { PipelineRasterizationStateStreamCreateInfoEXTBuilder { @@ -32291,12 +33297,16 @@ impl ::std::default::Default for PhysicalDeviceRepresentativeFragmentTestFeature #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_REPRESENTATIVE_FRAGMENT_TEST_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), representative_fragment_test: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceRepresentativeFragmentTestFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_REPRESENTATIVE_FRAGMENT_TEST_FEATURES_NV; +} impl PhysicalDeviceRepresentativeFragmentTestFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceRepresentativeFragmentTestFeaturesNVBuilder<'a> { PhysicalDeviceRepresentativeFragmentTestFeaturesNVBuilder { @@ -32357,12 +33367,16 @@ impl ::std::default::Default for PipelineRepresentativeFragmentTestStateCreateIn #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_REPRESENTATIVE_FRAGMENT_TEST_STATE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), representative_fragment_test_enable: Bool32::default(), } } } +unsafe impl TaggedStructure for PipelineRepresentativeFragmentTestStateCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_REPRESENTATIVE_FRAGMENT_TEST_STATE_CREATE_INFO_NV; +} impl PipelineRepresentativeFragmentTestStateCreateInfoNV { pub fn builder<'a>() -> PipelineRepresentativeFragmentTestStateCreateInfoNVBuilder<'a> { PipelineRepresentativeFragmentTestStateCreateInfoNVBuilder { @@ -32424,12 +33438,16 @@ impl ::std::default::Default for PhysicalDeviceExclusiveScissorFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), exclusive_scissor: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceExclusiveScissorFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV; +} impl PhysicalDeviceExclusiveScissorFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceExclusiveScissorFeaturesNVBuilder<'a> { PhysicalDeviceExclusiveScissorFeaturesNVBuilder { @@ -32485,13 +33503,17 @@ impl ::std::default::Default for PipelineViewportExclusiveScissorStateCreateInfo #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), exclusive_scissor_count: u32::default(), p_exclusive_scissors: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for PipelineViewportExclusiveScissorStateCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NV; +} impl PipelineViewportExclusiveScissorStateCreateInfoNV { pub fn builder<'a>() -> PipelineViewportExclusiveScissorStateCreateInfoNVBuilder<'a> { PipelineViewportExclusiveScissorStateCreateInfoNVBuilder { @@ -32551,12 +33573,16 @@ impl ::std::default::Default for PhysicalDeviceCornerSampledImageFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), corner_sampled_image: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceCornerSampledImageFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV; +} impl PhysicalDeviceCornerSampledImageFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceCornerSampledImageFeaturesNVBuilder<'a> { PhysicalDeviceCornerSampledImageFeaturesNVBuilder { @@ -32615,13 +33641,17 @@ impl ::std::default::Default for PhysicalDeviceComputeShaderDerivativesFeaturesN #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), compute_derivative_group_quads: Bool32::default(), compute_derivative_group_linear: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceComputeShaderDerivativesFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV; +} impl PhysicalDeviceComputeShaderDerivativesFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceComputeShaderDerivativesFeaturesNVBuilder<'a> { PhysicalDeviceComputeShaderDerivativesFeaturesNVBuilder { @@ -32690,12 +33720,16 @@ impl ::std::default::Default for PhysicalDeviceShaderImageFootprintFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), image_footprint: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderImageFootprintFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV; +} impl PhysicalDeviceShaderImageFootprintFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceShaderImageFootprintFeaturesNVBuilder<'a> { PhysicalDeviceShaderImageFootprintFeaturesNVBuilder { @@ -32753,12 +33787,16 @@ impl ::std::default::Default for PhysicalDeviceDedicatedAllocationImageAliasingF #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DEDICATED_ALLOCATION_IMAGE_ALIASING_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), dedicated_allocation_image_aliasing: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DEDICATED_ALLOCATION_IMAGE_ALIASING_FEATURES_NV; +} impl PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNVBuilder<'a> { PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNVBuilder { @@ -32887,7 +33925,7 @@ impl ::std::default::Default for PipelineViewportShadingRateImageStateCreateInfo #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_VIEWPORT_SHADING_RATE_IMAGE_STATE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), shading_rate_image_enable: Bool32::default(), viewport_count: u32::default(), @@ -32895,6 +33933,10 @@ impl ::std::default::Default for PipelineViewportShadingRateImageStateCreateInfo } } } +unsafe impl TaggedStructure for PipelineViewportShadingRateImageStateCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_VIEWPORT_SHADING_RATE_IMAGE_STATE_CREATE_INFO_NV; +} impl PipelineViewportShadingRateImageStateCreateInfoNV { pub fn builder<'a>() -> PipelineViewportShadingRateImageStateCreateInfoNVBuilder<'a> { PipelineViewportShadingRateImageStateCreateInfoNVBuilder { @@ -32963,13 +34005,17 @@ impl ::std::default::Default for PhysicalDeviceShadingRateImageFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADING_RATE_IMAGE_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shading_rate_image: Bool32::default(), shading_rate_coarse_sample_order: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShadingRateImageFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADING_RATE_IMAGE_FEATURES_NV; +} impl PhysicalDeviceShadingRateImageFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceShadingRateImageFeaturesNVBuilder<'a> { PhysicalDeviceShadingRateImageFeaturesNVBuilder { @@ -33034,7 +34080,7 @@ impl ::std::default::Default for PhysicalDeviceShadingRateImagePropertiesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADING_RATE_IMAGE_PROPERTIES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shading_rate_texel_size: Extent2D::default(), shading_rate_palette_size: u32::default(), @@ -33042,6 +34088,10 @@ impl ::std::default::Default for PhysicalDeviceShadingRateImagePropertiesNV { } } } +unsafe impl TaggedStructure for PhysicalDeviceShadingRateImagePropertiesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADING_RATE_IMAGE_PROPERTIES_NV; +} impl PhysicalDeviceShadingRateImagePropertiesNV { pub fn builder<'a>() -> PhysicalDeviceShadingRateImagePropertiesNVBuilder<'a> { PhysicalDeviceShadingRateImagePropertiesNVBuilder { @@ -33107,12 +34157,16 @@ impl ::std::default::Default for PhysicalDeviceInvocationMaskFeaturesHUAWEI { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_INVOCATION_MASK_FEATURES_HUAWEI, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), invocation_mask: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceInvocationMaskFeaturesHUAWEI { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_INVOCATION_MASK_FEATURES_HUAWEI; +} impl PhysicalDeviceInvocationMaskFeaturesHUAWEI { pub fn builder<'a>() -> PhysicalDeviceInvocationMaskFeaturesHUAWEIBuilder<'a> { PhysicalDeviceInvocationMaskFeaturesHUAWEIBuilder { @@ -33297,7 +34351,7 @@ impl ::std::default::Default for PipelineViewportCoarseSampleOrderStateCreateInf #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_VIEWPORT_COARSE_SAMPLE_ORDER_STATE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), sample_order_type: CoarseSampleOrderTypeNV::default(), custom_sample_order_count: u32::default(), @@ -33305,6 +34359,10 @@ impl ::std::default::Default for PipelineViewportCoarseSampleOrderStateCreateInf } } } +unsafe impl TaggedStructure for PipelineViewportCoarseSampleOrderStateCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_VIEWPORT_COARSE_SAMPLE_ORDER_STATE_CREATE_INFO_NV; +} impl PipelineViewportCoarseSampleOrderStateCreateInfoNV { pub fn builder<'a>() -> PipelineViewportCoarseSampleOrderStateCreateInfoNVBuilder<'a> { PipelineViewportCoarseSampleOrderStateCreateInfoNVBuilder { @@ -33373,13 +34431,16 @@ impl ::std::default::Default for PhysicalDeviceMeshShaderFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MESH_SHADER_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), task_shader: Bool32::default(), mesh_shader: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMeshShaderFeaturesNV { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_MESH_SHADER_FEATURES_NV; +} impl PhysicalDeviceMeshShaderFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceMeshShaderFeaturesNVBuilder<'a> { PhysicalDeviceMeshShaderFeaturesNVBuilder { @@ -33451,7 +34512,7 @@ impl ::std::default::Default for PhysicalDeviceMeshShaderPropertiesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_draw_mesh_tasks_count: u32::default(), max_task_work_group_invocations: u32::default(), @@ -33469,6 +34530,9 @@ impl ::std::default::Default for PhysicalDeviceMeshShaderPropertiesNV { } } } +unsafe impl TaggedStructure for PhysicalDeviceMeshShaderPropertiesNV { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_NV; +} impl PhysicalDeviceMeshShaderPropertiesNV { pub fn builder<'a>() -> PhysicalDeviceMeshShaderPropertiesNVBuilder<'a> { PhysicalDeviceMeshShaderPropertiesNVBuilder { @@ -33641,7 +34705,7 @@ impl ::std::default::Default for RayTracingShaderGroupCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::RAY_TRACING_SHADER_GROUP_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), ty: RayTracingShaderGroupTypeKHR::default(), general_shader: u32::default(), @@ -33651,6 +34715,9 @@ impl ::std::default::Default for RayTracingShaderGroupCreateInfoNV { } } } +unsafe impl TaggedStructure for RayTracingShaderGroupCreateInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::RAY_TRACING_SHADER_GROUP_CREATE_INFO_NV; +} impl RayTracingShaderGroupCreateInfoNV { pub fn builder<'a>() -> RayTracingShaderGroupCreateInfoNVBuilder<'a> { RayTracingShaderGroupCreateInfoNVBuilder { @@ -33726,7 +34793,7 @@ impl ::std::default::Default for RayTracingShaderGroupCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::RAY_TRACING_SHADER_GROUP_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), ty: RayTracingShaderGroupTypeKHR::default(), general_shader: u32::default(), @@ -33737,6 +34804,9 @@ impl ::std::default::Default for RayTracingShaderGroupCreateInfoKHR { } } } +unsafe impl TaggedStructure for RayTracingShaderGroupCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::RAY_TRACING_SHADER_GROUP_CREATE_INFO_KHR; +} impl RayTracingShaderGroupCreateInfoKHR { pub fn builder<'a>() -> RayTracingShaderGroupCreateInfoKHRBuilder<'a> { RayTracingShaderGroupCreateInfoKHRBuilder { @@ -33823,7 +34893,7 @@ impl ::std::default::Default for RayTracingPipelineCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::RAY_TRACING_PIPELINE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineCreateFlags::default(), stage_count: u32::default(), @@ -33837,6 +34907,9 @@ impl ::std::default::Default for RayTracingPipelineCreateInfoNV { } } } +unsafe impl TaggedStructure for RayTracingPipelineCreateInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::RAY_TRACING_PIPELINE_CREATE_INFO_NV; +} impl RayTracingPipelineCreateInfoNV { pub fn builder<'a>() -> RayTracingPipelineCreateInfoNVBuilder<'a> { RayTracingPipelineCreateInfoNVBuilder { @@ -33945,7 +35018,7 @@ impl ::std::default::Default for RayTracingPipelineCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::RAY_TRACING_PIPELINE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineCreateFlags::default(), stage_count: u32::default(), @@ -33962,6 +35035,9 @@ impl ::std::default::Default for RayTracingPipelineCreateInfoKHR { } } } +unsafe impl TaggedStructure for RayTracingPipelineCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::RAY_TRACING_PIPELINE_CREATE_INFO_KHR; +} impl RayTracingPipelineCreateInfoKHR { pub fn builder<'a>() -> RayTracingPipelineCreateInfoKHRBuilder<'a> { RayTracingPipelineCreateInfoKHRBuilder { @@ -34090,7 +35166,7 @@ impl ::std::default::Default for GeometryTrianglesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::GEOMETRY_TRIANGLES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), vertex_data: Buffer::default(), vertex_offset: DeviceSize::default(), @@ -34106,6 +35182,9 @@ impl ::std::default::Default for GeometryTrianglesNV { } } } +unsafe impl TaggedStructure for GeometryTrianglesNV { + const STRUCTURE_TYPE: StructureType = StructureType::GEOMETRY_TRIANGLES_NV; +} impl GeometryTrianglesNV { pub fn builder<'a>() -> GeometryTrianglesNVBuilder<'a> { GeometryTrianglesNVBuilder { @@ -34209,7 +35288,7 @@ impl ::std::default::Default for GeometryAABBNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::GEOMETRY_AABB_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), aabb_data: Buffer::default(), num_aab_bs: u32::default(), @@ -34218,6 +35297,9 @@ impl ::std::default::Default for GeometryAABBNV { } } } +unsafe impl TaggedStructure for GeometryAABBNV { + const STRUCTURE_TYPE: StructureType = StructureType::GEOMETRY_AABB_NV; +} impl GeometryAABBNV { pub fn builder<'a>() -> GeometryAABBNVBuilder<'a> { GeometryAABBNVBuilder { @@ -34335,7 +35417,7 @@ impl ::std::default::Default for GeometryNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::GEOMETRY_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), geometry_type: GeometryTypeKHR::default(), geometry: GeometryDataNV::default(), @@ -34343,6 +35425,9 @@ impl ::std::default::Default for GeometryNV { } } } +unsafe impl TaggedStructure for GeometryNV { + const STRUCTURE_TYPE: StructureType = StructureType::GEOMETRY_NV; +} impl GeometryNV { pub fn builder<'a>() -> GeometryNVBuilder<'a> { GeometryNVBuilder { @@ -34407,7 +35492,7 @@ impl ::std::default::Default for AccelerationStructureInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), ty: AccelerationStructureTypeNV::default(), flags: BuildAccelerationStructureFlagsNV::default(), @@ -34417,6 +35502,9 @@ impl ::std::default::Default for AccelerationStructureInfoNV { } } } +unsafe impl TaggedStructure for AccelerationStructureInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::ACCELERATION_STRUCTURE_INFO_NV; +} impl AccelerationStructureInfoNV { pub fn builder<'a>() -> AccelerationStructureInfoNVBuilder<'a> { AccelerationStructureInfoNVBuilder { @@ -34484,13 +35572,16 @@ impl ::std::default::Default for AccelerationStructureCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), compacted_size: DeviceSize::default(), info: AccelerationStructureInfoNV::default(), } } } +unsafe impl TaggedStructure for AccelerationStructureCreateInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::ACCELERATION_STRUCTURE_CREATE_INFO_NV; +} impl AccelerationStructureCreateInfoNV { pub fn builder<'a>() -> AccelerationStructureCreateInfoNVBuilder<'a> { AccelerationStructureCreateInfoNVBuilder { @@ -34550,7 +35641,7 @@ impl ::std::default::Default for BindAccelerationStructureMemoryInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::BIND_ACCELERATION_STRUCTURE_MEMORY_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), acceleration_structure: AccelerationStructureNV::default(), memory: DeviceMemory::default(), @@ -34560,6 +35651,9 @@ impl ::std::default::Default for BindAccelerationStructureMemoryInfoNV { } } } +unsafe impl TaggedStructure for BindAccelerationStructureMemoryInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::BIND_ACCELERATION_STRUCTURE_MEMORY_INFO_NV; +} impl BindAccelerationStructureMemoryInfoNV { pub fn builder<'a>() -> BindAccelerationStructureMemoryInfoNVBuilder<'a> { BindAccelerationStructureMemoryInfoNVBuilder { @@ -34630,13 +35724,17 @@ impl ::std::default::Default for WriteDescriptorSetAccelerationStructureKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), acceleration_structure_count: u32::default(), p_acceleration_structures: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for WriteDescriptorSetAccelerationStructureKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_KHR; +} impl WriteDescriptorSetAccelerationStructureKHR { pub fn builder<'a>() -> WriteDescriptorSetAccelerationStructureKHRBuilder<'a> { WriteDescriptorSetAccelerationStructureKHRBuilder { @@ -34694,13 +35792,17 @@ impl ::std::default::Default for WriteDescriptorSetAccelerationStructureNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), acceleration_structure_count: u32::default(), p_acceleration_structures: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for WriteDescriptorSetAccelerationStructureNV { + const STRUCTURE_TYPE: StructureType = + StructureType::WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_NV; +} impl WriteDescriptorSetAccelerationStructureNV { pub fn builder<'a>() -> WriteDescriptorSetAccelerationStructureNVBuilder<'a> { WriteDescriptorSetAccelerationStructureNVBuilder { @@ -34758,13 +35860,17 @@ impl ::std::default::Default for AccelerationStructureMemoryRequirementsInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), ty: AccelerationStructureMemoryRequirementsTypeNV::default(), acceleration_structure: AccelerationStructureNV::default(), } } } +unsafe impl TaggedStructure for AccelerationStructureMemoryRequirementsInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_NV; +} impl AccelerationStructureMemoryRequirementsInfoNV { pub fn builder<'a>() -> AccelerationStructureMemoryRequirementsInfoNVBuilder<'a> { AccelerationStructureMemoryRequirementsInfoNVBuilder { @@ -34827,7 +35933,7 @@ impl ::std::default::Default for PhysicalDeviceAccelerationStructureFeaturesKHR #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), acceleration_structure: Bool32::default(), acceleration_structure_capture_replay: Bool32::default(), @@ -34837,6 +35943,10 @@ impl ::std::default::Default for PhysicalDeviceAccelerationStructureFeaturesKHR } } } +unsafe impl TaggedStructure for PhysicalDeviceAccelerationStructureFeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_FEATURES_KHR; +} impl PhysicalDeviceAccelerationStructureFeaturesKHR { pub fn builder<'a>() -> PhysicalDeviceAccelerationStructureFeaturesKHRBuilder<'a> { PhysicalDeviceAccelerationStructureFeaturesKHRBuilder { @@ -34935,7 +36045,7 @@ impl ::std::default::Default for PhysicalDeviceRayTracingPipelineFeaturesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), ray_tracing_pipeline: Bool32::default(), ray_tracing_pipeline_shader_group_handle_capture_replay: Bool32::default(), @@ -34945,6 +36055,10 @@ impl ::std::default::Default for PhysicalDeviceRayTracingPipelineFeaturesKHR { } } } +unsafe impl TaggedStructure for PhysicalDeviceRayTracingPipelineFeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHR; +} impl PhysicalDeviceRayTracingPipelineFeaturesKHR { pub fn builder<'a>() -> PhysicalDeviceRayTracingPipelineFeaturesKHRBuilder<'a> { PhysicalDeviceRayTracingPipelineFeaturesKHRBuilder { @@ -35039,12 +36153,15 @@ impl ::std::default::Default for PhysicalDeviceRayQueryFeaturesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_RAY_QUERY_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), ray_query: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceRayQueryFeaturesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_RAY_QUERY_FEATURES_KHR; +} impl PhysicalDeviceRayQueryFeaturesKHR { pub fn builder<'a>() -> PhysicalDeviceRayQueryFeaturesKHRBuilder<'a> { PhysicalDeviceRayQueryFeaturesKHRBuilder { @@ -35106,7 +36223,7 @@ impl ::std::default::Default for PhysicalDeviceAccelerationStructurePropertiesKH #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_geometry_count: u64::default(), max_instance_count: u64::default(), @@ -35119,6 +36236,10 @@ impl ::std::default::Default for PhysicalDeviceAccelerationStructurePropertiesKH } } } +unsafe impl TaggedStructure for PhysicalDeviceAccelerationStructurePropertiesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_PROPERTIES_KHR; +} impl PhysicalDeviceAccelerationStructurePropertiesKHR { pub fn builder<'a>() -> PhysicalDeviceAccelerationStructurePropertiesKHRBuilder<'a> { PhysicalDeviceAccelerationStructurePropertiesKHRBuilder { @@ -35239,7 +36360,7 @@ impl ::std::default::Default for PhysicalDeviceRayTracingPipelinePropertiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_group_handle_size: u32::default(), max_ray_recursion_depth: u32::default(), @@ -35252,6 +36373,10 @@ impl ::std::default::Default for PhysicalDeviceRayTracingPipelinePropertiesKHR { } } } +unsafe impl TaggedStructure for PhysicalDeviceRayTracingPipelinePropertiesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_PROPERTIES_KHR; +} impl PhysicalDeviceRayTracingPipelinePropertiesKHR { pub fn builder<'a>() -> PhysicalDeviceRayTracingPipelinePropertiesKHRBuilder<'a> { PhysicalDeviceRayTracingPipelinePropertiesKHRBuilder { @@ -35356,7 +36481,7 @@ impl ::std::default::Default for PhysicalDeviceRayTracingPropertiesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_group_handle_size: u32::default(), max_recursion_depth: u32::default(), @@ -35369,6 +36494,9 @@ impl ::std::default::Default for PhysicalDeviceRayTracingPropertiesNV { } } } +unsafe impl TaggedStructure for PhysicalDeviceRayTracingPropertiesNV { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NV; +} impl PhysicalDeviceRayTracingPropertiesNV { pub fn builder<'a>() -> PhysicalDeviceRayTracingPropertiesNVBuilder<'a> { PhysicalDeviceRayTracingPropertiesNVBuilder { @@ -35725,13 +36853,17 @@ impl ::std::default::Default for PhysicalDeviceRayTracingMaintenance1FeaturesKHR #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_RAY_TRACING_MAINTENANCE_1_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), ray_tracing_maintenance1: Bool32::default(), ray_tracing_pipeline_trace_rays_indirect2: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceRayTracingMaintenance1FeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_RAY_TRACING_MAINTENANCE_1_FEATURES_KHR; +} impl PhysicalDeviceRayTracingMaintenance1FeaturesKHR { pub fn builder<'a>() -> PhysicalDeviceRayTracingMaintenance1FeaturesKHRBuilder<'a> { PhysicalDeviceRayTracingMaintenance1FeaturesKHRBuilder { @@ -35799,13 +36931,16 @@ impl ::std::default::Default for DrmFormatModifierPropertiesListEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DRM_FORMAT_MODIFIER_PROPERTIES_LIST_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), drm_format_modifier_count: u32::default(), p_drm_format_modifier_properties: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for DrmFormatModifierPropertiesListEXT { + const STRUCTURE_TYPE: StructureType = StructureType::DRM_FORMAT_MODIFIER_PROPERTIES_LIST_EXT; +} impl DrmFormatModifierPropertiesListEXT { pub fn builder<'a>() -> DrmFormatModifierPropertiesListEXTBuilder<'a> { DrmFormatModifierPropertiesListEXTBuilder { @@ -35924,7 +37059,7 @@ impl ::std::default::Default for PhysicalDeviceImageDrmFormatModifierInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), drm_format_modifier: u64::default(), sharing_mode: SharingMode::default(), @@ -35933,6 +37068,10 @@ impl ::std::default::Default for PhysicalDeviceImageDrmFormatModifierInfoEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceImageDrmFormatModifierInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT; +} impl PhysicalDeviceImageDrmFormatModifierInfoEXT { pub fn builder<'a>() -> PhysicalDeviceImageDrmFormatModifierInfoEXTBuilder<'a> { PhysicalDeviceImageDrmFormatModifierInfoEXTBuilder { @@ -36000,13 +37139,17 @@ impl ::std::default::Default for ImageDrmFormatModifierListCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_DRM_FORMAT_MODIFIER_LIST_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), drm_format_modifier_count: u32::default(), p_drm_format_modifiers: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for ImageDrmFormatModifierListCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::IMAGE_DRM_FORMAT_MODIFIER_LIST_CREATE_INFO_EXT; +} impl ImageDrmFormatModifierListCreateInfoEXT { pub fn builder<'a>() -> ImageDrmFormatModifierListCreateInfoEXTBuilder<'a> { ImageDrmFormatModifierListCreateInfoEXTBuilder { @@ -36062,7 +37205,7 @@ impl ::std::default::Default for ImageDrmFormatModifierExplicitCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_DRM_FORMAT_MODIFIER_EXPLICIT_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), drm_format_modifier: u64::default(), drm_format_modifier_plane_count: u32::default(), @@ -36070,6 +37213,10 @@ impl ::std::default::Default for ImageDrmFormatModifierExplicitCreateInfoEXT { } } } +unsafe impl TaggedStructure for ImageDrmFormatModifierExplicitCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::IMAGE_DRM_FORMAT_MODIFIER_EXPLICIT_CREATE_INFO_EXT; +} impl ImageDrmFormatModifierExplicitCreateInfoEXT { pub fn builder<'a>() -> ImageDrmFormatModifierExplicitCreateInfoEXTBuilder<'a> { ImageDrmFormatModifierExplicitCreateInfoEXTBuilder { @@ -36128,12 +37275,15 @@ impl ::std::default::Default for ImageDrmFormatModifierPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), drm_format_modifier: u64::default(), } } } +unsafe impl TaggedStructure for ImageDrmFormatModifierPropertiesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT; +} impl ImageDrmFormatModifierPropertiesEXT { pub fn builder<'a>() -> ImageDrmFormatModifierPropertiesEXTBuilder<'a> { ImageDrmFormatModifierPropertiesEXTBuilder { @@ -36184,12 +37334,15 @@ impl ::std::default::Default for ImageStencilUsageCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_STENCIL_USAGE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), stencil_usage: ImageUsageFlags::default(), } } } +unsafe impl TaggedStructure for ImageStencilUsageCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_STENCIL_USAGE_CREATE_INFO; +} impl ImageStencilUsageCreateInfo { pub fn builder<'a>() -> ImageStencilUsageCreateInfoBuilder<'a> { ImageStencilUsageCreateInfoBuilder { @@ -36244,12 +37397,16 @@ impl ::std::default::Default for DeviceMemoryOverallocationCreateInfoAMD { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), overallocation_behavior: MemoryOverallocationBehaviorAMD::default(), } } } +unsafe impl TaggedStructure for DeviceMemoryOverallocationCreateInfoAMD { + const STRUCTURE_TYPE: StructureType = + StructureType::DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD; +} impl DeviceMemoryOverallocationCreateInfoAMD { pub fn builder<'a>() -> DeviceMemoryOverallocationCreateInfoAMDBuilder<'a> { DeviceMemoryOverallocationCreateInfoAMDBuilder { @@ -36307,7 +37464,7 @@ impl ::std::default::Default for PhysicalDeviceFragmentDensityMapFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), fragment_density_map: Bool32::default(), fragment_density_map_dynamic: Bool32::default(), @@ -36315,6 +37472,10 @@ impl ::std::default::Default for PhysicalDeviceFragmentDensityMapFeaturesEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentDensityMapFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_FEATURES_EXT; +} impl PhysicalDeviceFragmentDensityMapFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceFragmentDensityMapFeaturesEXTBuilder<'a> { PhysicalDeviceFragmentDensityMapFeaturesEXTBuilder { @@ -36386,12 +37547,16 @@ impl ::std::default::Default for PhysicalDeviceFragmentDensityMap2FeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), fragment_density_map_deferred: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentDensityMap2FeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_FEATURES_EXT; +} impl PhysicalDeviceFragmentDensityMap2FeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceFragmentDensityMap2FeaturesEXTBuilder<'a> { PhysicalDeviceFragmentDensityMap2FeaturesEXTBuilder { @@ -36449,12 +37614,16 @@ impl ::std::default::Default for PhysicalDeviceFragmentDensityMapOffsetFeaturesQ #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_OFFSET_FEATURES_QCOM, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), fragment_density_map_offset: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_OFFSET_FEATURES_QCOM; +} impl PhysicalDeviceFragmentDensityMapOffsetFeaturesQCOM { pub fn builder<'a>() -> PhysicalDeviceFragmentDensityMapOffsetFeaturesQCOMBuilder<'a> { PhysicalDeviceFragmentDensityMapOffsetFeaturesQCOMBuilder { @@ -36517,7 +37686,7 @@ impl ::std::default::Default for PhysicalDeviceFragmentDensityMapPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), min_fragment_density_texel_size: Extent2D::default(), max_fragment_density_texel_size: Extent2D::default(), @@ -36525,6 +37694,10 @@ impl ::std::default::Default for PhysicalDeviceFragmentDensityMapPropertiesEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentDensityMapPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_PROPERTIES_EXT; +} impl PhysicalDeviceFragmentDensityMapPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceFragmentDensityMapPropertiesEXTBuilder<'a> { PhysicalDeviceFragmentDensityMapPropertiesEXTBuilder { @@ -36599,7 +37772,7 @@ impl ::std::default::Default for PhysicalDeviceFragmentDensityMap2PropertiesEXT #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), subsampled_loads: Bool32::default(), subsampled_coarse_reconstruction_early_access: Bool32::default(), @@ -36608,6 +37781,10 @@ impl ::std::default::Default for PhysicalDeviceFragmentDensityMap2PropertiesEXT } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentDensityMap2PropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_PROPERTIES_EXT; +} impl PhysicalDeviceFragmentDensityMap2PropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceFragmentDensityMap2PropertiesEXTBuilder<'a> { PhysicalDeviceFragmentDensityMap2PropertiesEXTBuilder { @@ -36685,12 +37862,16 @@ impl ::std::default::Default for PhysicalDeviceFragmentDensityMapOffsetPropertie #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_OFFSET_PROPERTIES_QCOM, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), fragment_density_offset_granularity: Extent2D::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_OFFSET_PROPERTIES_QCOM; +} impl PhysicalDeviceFragmentDensityMapOffsetPropertiesQCOM { pub fn builder<'a>() -> PhysicalDeviceFragmentDensityMapOffsetPropertiesQCOMBuilder<'a> { PhysicalDeviceFragmentDensityMapOffsetPropertiesQCOMBuilder { @@ -36752,12 +37933,16 @@ impl ::std::default::Default for RenderPassFragmentDensityMapCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), fragment_density_map_attachment: AttachmentReference::default(), } } } +unsafe impl TaggedStructure for RenderPassFragmentDensityMapCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT; +} impl RenderPassFragmentDensityMapCreateInfoEXT { pub fn builder<'a>() -> RenderPassFragmentDensityMapCreateInfoEXTBuilder<'a> { RenderPassFragmentDensityMapCreateInfoEXTBuilder { @@ -36816,13 +38001,17 @@ impl ::std::default::Default for SubpassFragmentDensityMapOffsetEndInfoQCOM { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBPASS_FRAGMENT_DENSITY_MAP_OFFSET_END_INFO_QCOM, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), fragment_density_offset_count: u32::default(), p_fragment_density_offsets: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for SubpassFragmentDensityMapOffsetEndInfoQCOM { + const STRUCTURE_TYPE: StructureType = + StructureType::SUBPASS_FRAGMENT_DENSITY_MAP_OFFSET_END_INFO_QCOM; +} impl SubpassFragmentDensityMapOffsetEndInfoQCOM { pub fn builder<'a>() -> SubpassFragmentDensityMapOffsetEndInfoQCOMBuilder<'a> { SubpassFragmentDensityMapOffsetEndInfoQCOMBuilder { @@ -36876,12 +38065,16 @@ impl ::std::default::Default for PhysicalDeviceScalarBlockLayoutFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), scalar_block_layout: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceScalarBlockLayoutFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES; +} impl PhysicalDeviceScalarBlockLayoutFeatures { pub fn builder<'a>() -> PhysicalDeviceScalarBlockLayoutFeaturesBuilder<'a> { PhysicalDeviceScalarBlockLayoutFeaturesBuilder { @@ -36936,12 +38129,15 @@ impl ::std::default::Default for SurfaceProtectedCapabilitiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::SURFACE_PROTECTED_CAPABILITIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), supports_protected: Bool32::default(), } } } +unsafe impl TaggedStructure for SurfaceProtectedCapabilitiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::SURFACE_PROTECTED_CAPABILITIES_KHR; +} impl SurfaceProtectedCapabilitiesKHR { pub fn builder<'a>() -> SurfaceProtectedCapabilitiesKHRBuilder<'a> { SurfaceProtectedCapabilitiesKHRBuilder { @@ -36994,12 +38190,16 @@ impl ::std::default::Default for PhysicalDeviceUniformBufferStandardLayoutFeatur #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), uniform_buffer_standard_layout: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceUniformBufferStandardLayoutFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES; +} impl PhysicalDeviceUniformBufferStandardLayoutFeatures { pub fn builder<'a>() -> PhysicalDeviceUniformBufferStandardLayoutFeaturesBuilder<'a> { PhysicalDeviceUniformBufferStandardLayoutFeaturesBuilder { @@ -37060,12 +38260,16 @@ impl ::std::default::Default for PhysicalDeviceDepthClipEnableFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DEPTH_CLIP_ENABLE_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), depth_clip_enable: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceDepthClipEnableFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DEPTH_CLIP_ENABLE_FEATURES_EXT; +} impl PhysicalDeviceDepthClipEnableFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceDepthClipEnableFeaturesEXTBuilder<'a> { PhysicalDeviceDepthClipEnableFeaturesEXTBuilder { @@ -37121,13 +38325,17 @@ impl ::std::default::Default for PipelineRasterizationDepthClipStateCreateInfoEX #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_RASTERIZATION_DEPTH_CLIP_STATE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineRasterizationDepthClipStateCreateFlagsEXT::default(), depth_clip_enable: Bool32::default(), } } } +unsafe impl TaggedStructure for PipelineRasterizationDepthClipStateCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_RASTERIZATION_DEPTH_CLIP_STATE_CREATE_INFO_EXT; +} impl PipelineRasterizationDepthClipStateCreateInfoEXT { pub fn builder<'a>() -> PipelineRasterizationDepthClipStateCreateInfoEXTBuilder<'a> { PipelineRasterizationDepthClipStateCreateInfoEXTBuilder { @@ -37192,13 +38400,17 @@ impl ::std::default::Default for PhysicalDeviceMemoryBudgetPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), heap_budget: unsafe { ::std::mem::zeroed() }, heap_usage: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for PhysicalDeviceMemoryBudgetPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT; +} impl PhysicalDeviceMemoryBudgetPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceMemoryBudgetPropertiesEXTBuilder<'a> { PhysicalDeviceMemoryBudgetPropertiesEXTBuilder { @@ -37259,12 +38471,16 @@ impl ::std::default::Default for PhysicalDeviceMemoryPriorityFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MEMORY_PRIORITY_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), memory_priority: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMemoryPriorityFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_MEMORY_PRIORITY_FEATURES_EXT; +} impl PhysicalDeviceMemoryPriorityFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceMemoryPriorityFeaturesEXTBuilder<'a> { PhysicalDeviceMemoryPriorityFeaturesEXTBuilder { @@ -37319,12 +38535,15 @@ impl ::std::default::Default for MemoryPriorityAllocateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_PRIORITY_ALLOCATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), priority: f32::default(), } } } +unsafe impl TaggedStructure for MemoryPriorityAllocateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_PRIORITY_ALLOCATE_INFO_EXT; +} impl MemoryPriorityAllocateInfoEXT { pub fn builder<'a>() -> MemoryPriorityAllocateInfoEXTBuilder<'a> { MemoryPriorityAllocateInfoEXTBuilder { @@ -37377,12 +38596,16 @@ impl ::std::default::Default for PhysicalDevicePageableDeviceLocalMemoryFeatures #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PAGEABLE_DEVICE_LOCAL_MEMORY_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), pageable_device_local_memory: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePageableDeviceLocalMemoryFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PAGEABLE_DEVICE_LOCAL_MEMORY_FEATURES_EXT; +} impl PhysicalDevicePageableDeviceLocalMemoryFeaturesEXT { pub fn builder<'a>() -> PhysicalDevicePageableDeviceLocalMemoryFeaturesEXTBuilder<'a> { PhysicalDevicePageableDeviceLocalMemoryFeaturesEXTBuilder { @@ -37445,7 +38668,7 @@ impl ::std::default::Default for PhysicalDeviceBufferDeviceAddressFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), buffer_device_address: Bool32::default(), buffer_device_address_capture_replay: Bool32::default(), @@ -37453,6 +38676,10 @@ impl ::std::default::Default for PhysicalDeviceBufferDeviceAddressFeatures { } } } +unsafe impl TaggedStructure for PhysicalDeviceBufferDeviceAddressFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES; +} impl PhysicalDeviceBufferDeviceAddressFeatures { pub fn builder<'a>() -> PhysicalDeviceBufferDeviceAddressFeaturesBuilder<'a> { PhysicalDeviceBufferDeviceAddressFeaturesBuilder { @@ -37529,7 +38756,7 @@ impl ::std::default::Default for PhysicalDeviceBufferDeviceAddressFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), buffer_device_address: Bool32::default(), buffer_device_address_capture_replay: Bool32::default(), @@ -37537,6 +38764,10 @@ impl ::std::default::Default for PhysicalDeviceBufferDeviceAddressFeaturesEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceBufferDeviceAddressFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXT; +} impl PhysicalDeviceBufferDeviceAddressFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceBufferDeviceAddressFeaturesEXTBuilder<'a> { PhysicalDeviceBufferDeviceAddressFeaturesEXTBuilder { @@ -37611,12 +38842,15 @@ impl ::std::default::Default for BufferDeviceAddressInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_DEVICE_ADDRESS_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), buffer: Buffer::default(), } } } +unsafe impl TaggedStructure for BufferDeviceAddressInfo { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_DEVICE_ADDRESS_INFO; +} impl BufferDeviceAddressInfo { pub fn builder<'a>() -> BufferDeviceAddressInfoBuilder<'a> { BufferDeviceAddressInfoBuilder { @@ -37667,12 +38901,15 @@ impl ::std::default::Default for BufferOpaqueCaptureAddressCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), opaque_capture_address: u64::default(), } } } +unsafe impl TaggedStructure for BufferOpaqueCaptureAddressCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO; +} impl BufferOpaqueCaptureAddressCreateInfo { pub fn builder<'a>() -> BufferOpaqueCaptureAddressCreateInfoBuilder<'a> { BufferOpaqueCaptureAddressCreateInfoBuilder { @@ -37725,12 +38962,15 @@ impl ::std::default::Default for BufferDeviceAddressCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), device_address: DeviceAddress::default(), } } } +unsafe impl TaggedStructure for BufferDeviceAddressCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXT; +} impl BufferDeviceAddressCreateInfoEXT { pub fn builder<'a>() -> BufferDeviceAddressCreateInfoEXTBuilder<'a> { BufferDeviceAddressCreateInfoEXTBuilder { @@ -37783,12 +39023,16 @@ impl ::std::default::Default for PhysicalDeviceImageViewImageFormatInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_IMAGE_VIEW_IMAGE_FORMAT_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), image_view_type: ImageViewType::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceImageViewImageFormatInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_IMAGE_VIEW_IMAGE_FORMAT_INFO_EXT; +} impl PhysicalDeviceImageViewImageFormatInfoEXT { pub fn builder<'a>() -> PhysicalDeviceImageViewImageFormatInfoEXTBuilder<'a> { PhysicalDeviceImageViewImageFormatInfoEXTBuilder { @@ -37845,13 +39089,17 @@ impl ::std::default::Default for FilterCubicImageViewImageFormatPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::FILTER_CUBIC_IMAGE_VIEW_IMAGE_FORMAT_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), filter_cubic: Bool32::default(), filter_cubic_minmax: Bool32::default(), } } } +unsafe impl TaggedStructure for FilterCubicImageViewImageFormatPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::FILTER_CUBIC_IMAGE_VIEW_IMAGE_FORMAT_PROPERTIES_EXT; +} impl FilterCubicImageViewImageFormatPropertiesEXT { pub fn builder<'a>() -> FilterCubicImageViewImageFormatPropertiesEXTBuilder<'a> { FilterCubicImageViewImageFormatPropertiesEXTBuilder { @@ -37912,12 +39160,16 @@ impl ::std::default::Default for PhysicalDeviceImagelessFramebufferFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), imageless_framebuffer: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceImagelessFramebufferFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES; +} impl PhysicalDeviceImagelessFramebufferFeatures { pub fn builder<'a>() -> PhysicalDeviceImagelessFramebufferFeaturesBuilder<'a> { PhysicalDeviceImagelessFramebufferFeaturesBuilder { @@ -37976,13 +39228,16 @@ impl ::std::default::Default for FramebufferAttachmentsCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::FRAMEBUFFER_ATTACHMENTS_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), attachment_image_info_count: u32::default(), p_attachment_image_infos: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for FramebufferAttachmentsCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::FRAMEBUFFER_ATTACHMENTS_CREATE_INFO; +} impl FramebufferAttachmentsCreateInfo { pub fn builder<'a>() -> FramebufferAttachmentsCreateInfoBuilder<'a> { FramebufferAttachmentsCreateInfoBuilder { @@ -38045,7 +39300,7 @@ impl ::std::default::Default for FramebufferAttachmentImageInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::FRAMEBUFFER_ATTACHMENT_IMAGE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: ImageCreateFlags::default(), usage: ImageUsageFlags::default(), @@ -38057,6 +39312,9 @@ impl ::std::default::Default for FramebufferAttachmentImageInfo { } } } +unsafe impl TaggedStructure for FramebufferAttachmentImageInfo { + const STRUCTURE_TYPE: StructureType = StructureType::FRAMEBUFFER_ATTACHMENT_IMAGE_INFO; +} impl FramebufferAttachmentImageInfo { pub fn builder<'a>() -> FramebufferAttachmentImageInfoBuilder<'a> { FramebufferAttachmentImageInfoBuilder { @@ -38134,13 +39392,16 @@ impl ::std::default::Default for RenderPassAttachmentBeginInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_ATTACHMENT_BEGIN_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), attachment_count: u32::default(), p_attachments: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for RenderPassAttachmentBeginInfo { + const STRUCTURE_TYPE: StructureType = StructureType::RENDER_PASS_ATTACHMENT_BEGIN_INFO; +} impl RenderPassAttachmentBeginInfo { pub fn builder<'a>() -> RenderPassAttachmentBeginInfoBuilder<'a> { RenderPassAttachmentBeginInfoBuilder { @@ -38194,12 +39455,16 @@ impl ::std::default::Default for PhysicalDeviceTextureCompressionASTCHDRFeatures #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), texture_compression_astc_hdr: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceTextureCompressionASTCHDRFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES; +} impl PhysicalDeviceTextureCompressionASTCHDRFeatures { pub fn builder<'a>() -> PhysicalDeviceTextureCompressionASTCHDRFeaturesBuilder<'a> { PhysicalDeviceTextureCompressionASTCHDRFeaturesBuilder { @@ -38258,13 +39523,17 @@ impl ::std::default::Default for PhysicalDeviceCooperativeMatrixFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_COOPERATIVE_MATRIX_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), cooperative_matrix: Bool32::default(), cooperative_matrix_robust_buffer_access: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceCooperativeMatrixFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_COOPERATIVE_MATRIX_FEATURES_NV; +} impl PhysicalDeviceCooperativeMatrixFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceCooperativeMatrixFeaturesNVBuilder<'a> { PhysicalDeviceCooperativeMatrixFeaturesNVBuilder { @@ -38331,12 +39600,16 @@ impl ::std::default::Default for PhysicalDeviceCooperativeMatrixPropertiesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_COOPERATIVE_MATRIX_PROPERTIES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), cooperative_matrix_supported_stages: ShaderStageFlags::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceCooperativeMatrixPropertiesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_COOPERATIVE_MATRIX_PROPERTIES_NV; +} impl PhysicalDeviceCooperativeMatrixPropertiesNV { pub fn builder<'a>() -> PhysicalDeviceCooperativeMatrixPropertiesNVBuilder<'a> { PhysicalDeviceCooperativeMatrixPropertiesNVBuilder { @@ -38402,7 +39675,7 @@ impl ::std::default::Default for CooperativeMatrixPropertiesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::COOPERATIVE_MATRIX_PROPERTIES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), m_size: u32::default(), n_size: u32::default(), @@ -38415,6 +39688,9 @@ impl ::std::default::Default for CooperativeMatrixPropertiesNV { } } } +unsafe impl TaggedStructure for CooperativeMatrixPropertiesNV { + const STRUCTURE_TYPE: StructureType = StructureType::COOPERATIVE_MATRIX_PROPERTIES_NV; +} impl CooperativeMatrixPropertiesNV { pub fn builder<'a>() -> CooperativeMatrixPropertiesNVBuilder<'a> { CooperativeMatrixPropertiesNVBuilder { @@ -38500,12 +39776,16 @@ impl ::std::default::Default for PhysicalDeviceYcbcrImageArraysFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), ycbcr_image_arrays: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceYcbcrImageArraysFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT; +} impl PhysicalDeviceYcbcrImageArraysFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceYcbcrImageArraysFeaturesEXTBuilder<'a> { PhysicalDeviceYcbcrImageArraysFeaturesEXTBuilder { @@ -38565,7 +39845,7 @@ impl ::std::default::Default for ImageViewHandleInfoNVX { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_VIEW_HANDLE_INFO_NVX, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image_view: ImageView::default(), descriptor_type: DescriptorType::default(), @@ -38573,6 +39853,9 @@ impl ::std::default::Default for ImageViewHandleInfoNVX { } } } +unsafe impl TaggedStructure for ImageViewHandleInfoNVX { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_VIEW_HANDLE_INFO_NVX; +} impl ImageViewHandleInfoNVX { pub fn builder<'a>() -> ImageViewHandleInfoNVXBuilder<'a> { ImageViewHandleInfoNVXBuilder { @@ -38634,13 +39917,16 @@ impl ::std::default::Default for ImageViewAddressPropertiesNVX { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_VIEW_ADDRESS_PROPERTIES_NVX, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), device_address: DeviceAddress::default(), size: DeviceSize::default(), } } } +unsafe impl TaggedStructure for ImageViewAddressPropertiesNVX { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_VIEW_ADDRESS_PROPERTIES_NVX; +} impl ImageViewAddressPropertiesNVX { pub fn builder<'a>() -> ImageViewAddressPropertiesNVXBuilder<'a> { ImageViewAddressPropertiesNVXBuilder { @@ -38696,12 +39982,15 @@ impl ::std::default::Default for PresentFrameTokenGGP { #[inline] fn default() -> Self { Self { - s_type: StructureType::PRESENT_FRAME_TOKEN_GGP, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), frame_token: GgpFrameToken::default(), } } } +unsafe impl TaggedStructure for PresentFrameTokenGGP { + const STRUCTURE_TYPE: StructureType = StructureType::PRESENT_FRAME_TOKEN_GGP; +} impl PresentFrameTokenGGP { pub fn builder<'a>() -> PresentFrameTokenGGPBuilder<'a> { PresentFrameTokenGGPBuilder { @@ -38806,7 +40095,7 @@ impl ::std::default::Default for PipelineCreationFeedbackCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_CREATION_FEEDBACK_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_pipeline_creation_feedback: ::std::ptr::null_mut(), pipeline_stage_creation_feedback_count: u32::default(), @@ -38814,6 +40103,9 @@ impl ::std::default::Default for PipelineCreationFeedbackCreateInfo { } } } +unsafe impl TaggedStructure for PipelineCreationFeedbackCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_CREATION_FEEDBACK_CREATE_INFO; +} impl PipelineCreationFeedbackCreateInfo { pub fn builder<'a>() -> PipelineCreationFeedbackCreateInfoBuilder<'a> { PipelineCreationFeedbackCreateInfoBuilder { @@ -38892,12 +40184,15 @@ impl ::std::default::Default for SurfaceFullScreenExclusiveInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), full_screen_exclusive: FullScreenExclusiveEXT::default(), } } } +unsafe impl TaggedStructure for SurfaceFullScreenExclusiveInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT; +} impl SurfaceFullScreenExclusiveInfoEXT { pub fn builder<'a>() -> SurfaceFullScreenExclusiveInfoEXTBuilder<'a> { SurfaceFullScreenExclusiveInfoEXTBuilder { @@ -38952,12 +40247,16 @@ impl ::std::default::Default for SurfaceFullScreenExclusiveWin32InfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SURFACE_FULL_SCREEN_EXCLUSIVE_WIN32_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), hmonitor: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for SurfaceFullScreenExclusiveWin32InfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::SURFACE_FULL_SCREEN_EXCLUSIVE_WIN32_INFO_EXT; +} impl SurfaceFullScreenExclusiveWin32InfoEXT { pub fn builder<'a>() -> SurfaceFullScreenExclusiveWin32InfoEXTBuilder<'a> { SurfaceFullScreenExclusiveWin32InfoEXTBuilder { @@ -39015,12 +40314,16 @@ impl ::std::default::Default for SurfaceCapabilitiesFullScreenExclusiveEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SURFACE_CAPABILITIES_FULL_SCREEN_EXCLUSIVE_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), full_screen_exclusive_supported: Bool32::default(), } } } +unsafe impl TaggedStructure for SurfaceCapabilitiesFullScreenExclusiveEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::SURFACE_CAPABILITIES_FULL_SCREEN_EXCLUSIVE_EXT; +} impl SurfaceCapabilitiesFullScreenExclusiveEXT { pub fn builder<'a>() -> SurfaceCapabilitiesFullScreenExclusiveEXTBuilder<'a> { SurfaceCapabilitiesFullScreenExclusiveEXTBuilder { @@ -39080,13 +40383,17 @@ impl ::std::default::Default for PhysicalDevicePerformanceQueryFeaturesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PERFORMANCE_QUERY_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), performance_counter_query_pools: Bool32::default(), performance_counter_multiple_query_pools: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePerformanceQueryFeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PERFORMANCE_QUERY_FEATURES_KHR; +} impl PhysicalDevicePerformanceQueryFeaturesKHR { pub fn builder<'a>() -> PhysicalDevicePerformanceQueryFeaturesKHRBuilder<'a> { PhysicalDevicePerformanceQueryFeaturesKHRBuilder { @@ -39156,12 +40463,16 @@ impl ::std::default::Default for PhysicalDevicePerformanceQueryPropertiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PERFORMANCE_QUERY_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), allow_command_buffer_query_copies: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePerformanceQueryPropertiesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PERFORMANCE_QUERY_PROPERTIES_KHR; +} impl PhysicalDevicePerformanceQueryPropertiesKHR { pub fn builder<'a>() -> PhysicalDevicePerformanceQueryPropertiesKHRBuilder<'a> { PhysicalDevicePerformanceQueryPropertiesKHRBuilder { @@ -39223,7 +40534,7 @@ impl ::std::default::Default for PerformanceCounterKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PERFORMANCE_COUNTER_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), unit: PerformanceCounterUnitKHR::default(), scope: PerformanceCounterScopeKHR::default(), @@ -39232,6 +40543,9 @@ impl ::std::default::Default for PerformanceCounterKHR { } } } +unsafe impl TaggedStructure for PerformanceCounterKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PERFORMANCE_COUNTER_KHR; +} impl PerformanceCounterKHR { pub fn builder<'a>() -> PerformanceCounterKHRBuilder<'a> { PerformanceCounterKHRBuilder { @@ -39318,7 +40632,7 @@ impl ::std::default::Default for PerformanceCounterDescriptionKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PERFORMANCE_COUNTER_DESCRIPTION_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), flags: PerformanceCounterDescriptionFlagsKHR::default(), name: unsafe { ::std::mem::zeroed() }, @@ -39327,6 +40641,9 @@ impl ::std::default::Default for PerformanceCounterDescriptionKHR { } } } +unsafe impl TaggedStructure for PerformanceCounterDescriptionKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PERFORMANCE_COUNTER_DESCRIPTION_KHR; +} impl PerformanceCounterDescriptionKHR { pub fn builder<'a>() -> PerformanceCounterDescriptionKHRBuilder<'a> { PerformanceCounterDescriptionKHRBuilder { @@ -39394,7 +40711,7 @@ impl ::std::default::Default for QueryPoolPerformanceCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::QUERY_POOL_PERFORMANCE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), queue_family_index: u32::default(), counter_index_count: u32::default(), @@ -39402,6 +40719,9 @@ impl ::std::default::Default for QueryPoolPerformanceCreateInfoKHR { } } } +unsafe impl TaggedStructure for QueryPoolPerformanceCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::QUERY_POOL_PERFORMANCE_CREATE_INFO_KHR; +} impl QueryPoolPerformanceCreateInfoKHR { pub fn builder<'a>() -> QueryPoolPerformanceCreateInfoKHRBuilder<'a> { QueryPoolPerformanceCreateInfoKHRBuilder { @@ -39478,13 +40798,16 @@ impl ::std::default::Default for AcquireProfilingLockInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACQUIRE_PROFILING_LOCK_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: AcquireProfilingLockFlagsKHR::default(), timeout: u64::default(), } } } +unsafe impl TaggedStructure for AcquireProfilingLockInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::ACQUIRE_PROFILING_LOCK_INFO_KHR; +} impl AcquireProfilingLockInfoKHR { pub fn builder<'a>() -> AcquireProfilingLockInfoKHRBuilder<'a> { AcquireProfilingLockInfoKHRBuilder { @@ -39540,12 +40863,15 @@ impl ::std::default::Default for PerformanceQuerySubmitInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PERFORMANCE_QUERY_SUBMIT_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), counter_pass_index: u32::default(), } } } +unsafe impl TaggedStructure for PerformanceQuerySubmitInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PERFORMANCE_QUERY_SUBMIT_INFO_KHR; +} impl PerformanceQuerySubmitInfoKHR { pub fn builder<'a>() -> PerformanceQuerySubmitInfoKHRBuilder<'a> { PerformanceQuerySubmitInfoKHRBuilder { @@ -39600,12 +40926,15 @@ impl ::std::default::Default for HeadlessSurfaceCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::HEADLESS_SURFACE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: HeadlessSurfaceCreateFlagsEXT::default(), } } } +unsafe impl TaggedStructure for HeadlessSurfaceCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::HEADLESS_SURFACE_CREATE_INFO_EXT; +} impl HeadlessSurfaceCreateInfoEXT { pub fn builder<'a>() -> HeadlessSurfaceCreateInfoEXTBuilder<'a> { HeadlessSurfaceCreateInfoEXTBuilder { @@ -39656,12 +40985,16 @@ impl ::std::default::Default for PhysicalDeviceCoverageReductionModeFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), coverage_reduction_mode: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceCoverageReductionModeFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NV; +} impl PhysicalDeviceCoverageReductionModeFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceCoverageReductionModeFeaturesNVBuilder<'a> { PhysicalDeviceCoverageReductionModeFeaturesNVBuilder { @@ -39720,13 +41053,17 @@ impl ::std::default::Default for PipelineCoverageReductionStateCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: PipelineCoverageReductionStateCreateFlagsNV::default(), coverage_reduction_mode: CoverageReductionModeNV::default(), } } } +unsafe impl TaggedStructure for PipelineCoverageReductionStateCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NV; +} impl PipelineCoverageReductionStateCreateInfoNV { pub fn builder<'a>() -> PipelineCoverageReductionStateCreateInfoNVBuilder<'a> { PipelineCoverageReductionStateCreateInfoNVBuilder { @@ -39796,7 +41133,7 @@ impl ::std::default::Default for FramebufferMixedSamplesCombinationNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::FRAMEBUFFER_MIXED_SAMPLES_COMBINATION_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), coverage_reduction_mode: CoverageReductionModeNV::default(), rasterization_samples: SampleCountFlags::default(), @@ -39805,6 +41142,9 @@ impl ::std::default::Default for FramebufferMixedSamplesCombinationNV { } } } +unsafe impl TaggedStructure for FramebufferMixedSamplesCombinationNV { + const STRUCTURE_TYPE: StructureType = StructureType::FRAMEBUFFER_MIXED_SAMPLES_COMBINATION_NV; +} impl FramebufferMixedSamplesCombinationNV { pub fn builder<'a>() -> FramebufferMixedSamplesCombinationNVBuilder<'a> { FramebufferMixedSamplesCombinationNVBuilder { @@ -39873,12 +41213,16 @@ impl ::std::default::Default for PhysicalDeviceShaderIntegerFunctions2FeaturesIN #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_integer_functions2: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderIntegerFunctions2FeaturesINTEL { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL; +} impl PhysicalDeviceShaderIntegerFunctions2FeaturesINTEL { pub fn builder<'a>() -> PhysicalDeviceShaderIntegerFunctions2FeaturesINTELBuilder<'a> { PhysicalDeviceShaderIntegerFunctions2FeaturesINTELBuilder { @@ -40013,12 +41357,15 @@ impl ::std::default::Default for InitializePerformanceApiInfoINTEL { #[inline] fn default() -> Self { Self { - s_type: StructureType::INITIALIZE_PERFORMANCE_API_INFO_INTEL, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_user_data: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for InitializePerformanceApiInfoINTEL { + const STRUCTURE_TYPE: StructureType = StructureType::INITIALIZE_PERFORMANCE_API_INFO_INTEL; +} impl InitializePerformanceApiInfoINTEL { pub fn builder<'a>() -> InitializePerformanceApiInfoINTELBuilder<'a> { InitializePerformanceApiInfoINTELBuilder { @@ -40069,12 +41416,16 @@ impl ::std::default::Default for QueryPoolPerformanceQueryCreateInfoINTEL { #[inline] fn default() -> Self { Self { - s_type: StructureType::QUERY_POOL_PERFORMANCE_QUERY_CREATE_INFO_INTEL, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), performance_counters_sampling: QueryPoolSamplingModeINTEL::default(), } } } +unsafe impl TaggedStructure for QueryPoolPerformanceQueryCreateInfoINTEL { + const STRUCTURE_TYPE: StructureType = + StructureType::QUERY_POOL_PERFORMANCE_QUERY_CREATE_INFO_INTEL; +} impl QueryPoolPerformanceQueryCreateInfoINTEL { pub fn builder<'a>() -> QueryPoolPerformanceQueryCreateInfoINTELBuilder<'a> { QueryPoolPerformanceQueryCreateInfoINTELBuilder { @@ -40130,12 +41481,15 @@ impl ::std::default::Default for PerformanceMarkerInfoINTEL { #[inline] fn default() -> Self { Self { - s_type: StructureType::PERFORMANCE_MARKER_INFO_INTEL, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), marker: u64::default(), } } } +unsafe impl TaggedStructure for PerformanceMarkerInfoINTEL { + const STRUCTURE_TYPE: StructureType = StructureType::PERFORMANCE_MARKER_INFO_INTEL; +} impl PerformanceMarkerInfoINTEL { pub fn builder<'a>() -> PerformanceMarkerInfoINTELBuilder<'a> { PerformanceMarkerInfoINTELBuilder { @@ -40186,12 +41540,15 @@ impl ::std::default::Default for PerformanceStreamMarkerInfoINTEL { #[inline] fn default() -> Self { Self { - s_type: StructureType::PERFORMANCE_STREAM_MARKER_INFO_INTEL, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), marker: u32::default(), } } } +unsafe impl TaggedStructure for PerformanceStreamMarkerInfoINTEL { + const STRUCTURE_TYPE: StructureType = StructureType::PERFORMANCE_STREAM_MARKER_INFO_INTEL; +} impl PerformanceStreamMarkerInfoINTEL { pub fn builder<'a>() -> PerformanceStreamMarkerInfoINTELBuilder<'a> { PerformanceStreamMarkerInfoINTELBuilder { @@ -40244,7 +41601,7 @@ impl ::std::default::Default for PerformanceOverrideInfoINTEL { #[inline] fn default() -> Self { Self { - s_type: StructureType::PERFORMANCE_OVERRIDE_INFO_INTEL, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), ty: PerformanceOverrideTypeINTEL::default(), enable: Bool32::default(), @@ -40252,6 +41609,9 @@ impl ::std::default::Default for PerformanceOverrideInfoINTEL { } } } +unsafe impl TaggedStructure for PerformanceOverrideInfoINTEL { + const STRUCTURE_TYPE: StructureType = StructureType::PERFORMANCE_OVERRIDE_INFO_INTEL; +} impl PerformanceOverrideInfoINTEL { pub fn builder<'a>() -> PerformanceOverrideInfoINTELBuilder<'a> { PerformanceOverrideInfoINTELBuilder { @@ -40312,12 +41672,16 @@ impl ::std::default::Default for PerformanceConfigurationAcquireInfoINTEL { #[inline] fn default() -> Self { Self { - s_type: StructureType::PERFORMANCE_CONFIGURATION_ACQUIRE_INFO_INTEL, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), ty: PerformanceConfigurationTypeINTEL::default(), } } } +unsafe impl TaggedStructure for PerformanceConfigurationAcquireInfoINTEL { + const STRUCTURE_TYPE: StructureType = + StructureType::PERFORMANCE_CONFIGURATION_ACQUIRE_INFO_INTEL; +} impl PerformanceConfigurationAcquireInfoINTEL { pub fn builder<'a>() -> PerformanceConfigurationAcquireInfoINTELBuilder<'a> { PerformanceConfigurationAcquireInfoINTELBuilder { @@ -40369,13 +41733,16 @@ impl ::std::default::Default for PhysicalDeviceShaderClockFeaturesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_subgroup_clock: Bool32::default(), shader_device_clock: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderClockFeaturesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR; +} impl PhysicalDeviceShaderClockFeaturesKHR { pub fn builder<'a>() -> PhysicalDeviceShaderClockFeaturesKHRBuilder<'a> { PhysicalDeviceShaderClockFeaturesKHRBuilder { @@ -40435,12 +41802,16 @@ impl ::std::default::Default for PhysicalDeviceIndexTypeUint8FeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), index_type_uint8: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceIndexTypeUint8FeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT; +} impl PhysicalDeviceIndexTypeUint8FeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceIndexTypeUint8FeaturesEXTBuilder<'a> { PhysicalDeviceIndexTypeUint8FeaturesEXTBuilder { @@ -40496,13 +41867,17 @@ impl ::std::default::Default for PhysicalDeviceShaderSMBuiltinsPropertiesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_SM_BUILTINS_PROPERTIES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_sm_count: u32::default(), shader_warps_per_sm: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderSMBuiltinsPropertiesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_SM_BUILTINS_PROPERTIES_NV; +} impl PhysicalDeviceShaderSMBuiltinsPropertiesNV { pub fn builder<'a>() -> PhysicalDeviceShaderSMBuiltinsPropertiesNVBuilder<'a> { PhysicalDeviceShaderSMBuiltinsPropertiesNVBuilder { @@ -40563,12 +41938,16 @@ impl ::std::default::Default for PhysicalDeviceShaderSMBuiltinsFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_SM_BUILTINS_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_sm_builtins: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderSMBuiltinsFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_SM_BUILTINS_FEATURES_NV; +} impl PhysicalDeviceShaderSMBuiltinsFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceShaderSMBuiltinsFeaturesNVBuilder<'a> { PhysicalDeviceShaderSMBuiltinsFeaturesNVBuilder { @@ -40625,7 +42004,7 @@ impl ::std::default::Default for PhysicalDeviceFragmentShaderInterlockFeaturesEX #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), fragment_shader_sample_interlock: Bool32::default(), fragment_shader_pixel_interlock: Bool32::default(), @@ -40633,6 +42012,10 @@ impl ::std::default::Default for PhysicalDeviceFragmentShaderInterlockFeaturesEX } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentShaderInterlockFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT; +} impl PhysicalDeviceFragmentShaderInterlockFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceFragmentShaderInterlockFeaturesEXTBuilder<'a> { PhysicalDeviceFragmentShaderInterlockFeaturesEXTBuilder { @@ -40713,12 +42096,16 @@ impl ::std::default::Default for PhysicalDeviceSeparateDepthStencilLayoutsFeatur #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), separate_depth_stencil_layouts: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceSeparateDepthStencilLayoutsFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES; +} impl PhysicalDeviceSeparateDepthStencilLayoutsFeatures { pub fn builder<'a>() -> PhysicalDeviceSeparateDepthStencilLayoutsFeaturesBuilder<'a> { PhysicalDeviceSeparateDepthStencilLayoutsFeaturesBuilder { @@ -40779,12 +42166,15 @@ impl ::std::default::Default for AttachmentReferenceStencilLayout { #[inline] fn default() -> Self { Self { - s_type: StructureType::ATTACHMENT_REFERENCE_STENCIL_LAYOUT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), stencil_layout: ImageLayout::default(), } } } +unsafe impl TaggedStructure for AttachmentReferenceStencilLayout { + const STRUCTURE_TYPE: StructureType = StructureType::ATTACHMENT_REFERENCE_STENCIL_LAYOUT; +} impl AttachmentReferenceStencilLayout { pub fn builder<'a>() -> AttachmentReferenceStencilLayoutBuilder<'a> { AttachmentReferenceStencilLayoutBuilder { @@ -40838,13 +42228,17 @@ impl ::std::default::Default for PhysicalDevicePrimitiveTopologyListRestartFeatu #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), primitive_topology_list_restart: Bool32::default(), primitive_topology_patch_list_restart: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePrimitiveTopologyListRestartFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT; +} impl PhysicalDevicePrimitiveTopologyListRestartFeaturesEXT { pub fn builder<'a>() -> PhysicalDevicePrimitiveTopologyListRestartFeaturesEXTBuilder<'a> { PhysicalDevicePrimitiveTopologyListRestartFeaturesEXTBuilder { @@ -40921,13 +42315,16 @@ impl ::std::default::Default for AttachmentDescriptionStencilLayout { #[inline] fn default() -> Self { Self { - s_type: StructureType::ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), stencil_initial_layout: ImageLayout::default(), stencil_final_layout: ImageLayout::default(), } } } +unsafe impl TaggedStructure for AttachmentDescriptionStencilLayout { + const STRUCTURE_TYPE: StructureType = StructureType::ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT; +} impl AttachmentDescriptionStencilLayout { pub fn builder<'a>() -> AttachmentDescriptionStencilLayoutBuilder<'a> { AttachmentDescriptionStencilLayoutBuilder { @@ -40985,12 +42382,16 @@ impl ::std::default::Default for PhysicalDevicePipelineExecutablePropertiesFeatu #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PIPELINE_EXECUTABLE_PROPERTIES_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), pipeline_executable_info: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePipelineExecutablePropertiesFeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PIPELINE_EXECUTABLE_PROPERTIES_FEATURES_KHR; +} impl PhysicalDevicePipelineExecutablePropertiesFeaturesKHR { pub fn builder<'a>() -> PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder<'a> { PhysicalDevicePipelineExecutablePropertiesFeaturesKHRBuilder { @@ -41054,12 +42455,15 @@ impl ::std::default::Default for PipelineInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), pipeline: Pipeline::default(), } } } +unsafe impl TaggedStructure for PipelineInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_INFO_KHR; +} impl PipelineInfoKHR { pub fn builder<'a>() -> PipelineInfoKHRBuilder<'a> { PipelineInfoKHRBuilder { @@ -41129,7 +42533,7 @@ impl ::std::default::Default for PipelineExecutablePropertiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_EXECUTABLE_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), stages: ShaderStageFlags::default(), name: unsafe { ::std::mem::zeroed() }, @@ -41138,6 +42542,9 @@ impl ::std::default::Default for PipelineExecutablePropertiesKHR { } } } +unsafe impl TaggedStructure for PipelineExecutablePropertiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_EXECUTABLE_PROPERTIES_KHR; +} impl PipelineExecutablePropertiesKHR { pub fn builder<'a>() -> PipelineExecutablePropertiesKHRBuilder<'a> { PipelineExecutablePropertiesKHRBuilder { @@ -41204,13 +42611,16 @@ impl ::std::default::Default for PipelineExecutableInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_EXECUTABLE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), pipeline: Pipeline::default(), executable_index: u32::default(), } } } +unsafe impl TaggedStructure for PipelineExecutableInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_EXECUTABLE_INFO_KHR; +} impl PipelineExecutableInfoKHR { pub fn builder<'a>() -> PipelineExecutableInfoKHRBuilder<'a> { PipelineExecutableInfoKHRBuilder { @@ -41300,7 +42710,7 @@ impl ::std::default::Default for PipelineExecutableStatisticKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_EXECUTABLE_STATISTIC_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), name: unsafe { ::std::mem::zeroed() }, description: unsafe { ::std::mem::zeroed() }, @@ -41309,6 +42719,9 @@ impl ::std::default::Default for PipelineExecutableStatisticKHR { } } } +unsafe impl TaggedStructure for PipelineExecutableStatisticKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_EXECUTABLE_STATISTIC_KHR; +} impl PipelineExecutableStatisticKHR { pub fn builder<'a>() -> PipelineExecutableStatisticKHRBuilder<'a> { PipelineExecutableStatisticKHRBuilder { @@ -41395,7 +42808,7 @@ impl ::std::default::Default for PipelineExecutableInternalRepresentationKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_EXECUTABLE_INTERNAL_REPRESENTATION_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), name: unsafe { ::std::mem::zeroed() }, description: unsafe { ::std::mem::zeroed() }, @@ -41405,6 +42818,10 @@ impl ::std::default::Default for PipelineExecutableInternalRepresentationKHR { } } } +unsafe impl TaggedStructure for PipelineExecutableInternalRepresentationKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_EXECUTABLE_INTERNAL_REPRESENTATION_KHR; +} impl PipelineExecutableInternalRepresentationKHR { pub fn builder<'a>() -> PipelineExecutableInternalRepresentationKHRBuilder<'a> { PipelineExecutableInternalRepresentationKHRBuilder { @@ -41471,12 +42888,16 @@ impl ::std::default::Default for PhysicalDeviceShaderDemoteToHelperInvocationFea #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_demote_to_helper_invocation: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderDemoteToHelperInvocationFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES; +} impl PhysicalDeviceShaderDemoteToHelperInvocationFeatures { pub fn builder<'a>() -> PhysicalDeviceShaderDemoteToHelperInvocationFeaturesBuilder<'a> { PhysicalDeviceShaderDemoteToHelperInvocationFeaturesBuilder { @@ -41543,12 +42964,16 @@ impl ::std::default::Default for PhysicalDeviceTexelBufferAlignmentFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), texel_buffer_alignment: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceTexelBufferAlignmentFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_FEATURES_EXT; +} impl PhysicalDeviceTexelBufferAlignmentFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceTexelBufferAlignmentFeaturesEXTBuilder<'a> { PhysicalDeviceTexelBufferAlignmentFeaturesEXTBuilder { @@ -41609,7 +43034,7 @@ impl ::std::default::Default for PhysicalDeviceTexelBufferAlignmentProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), storage_texel_buffer_offset_alignment_bytes: DeviceSize::default(), storage_texel_buffer_offset_single_texel_alignment: Bool32::default(), @@ -41618,6 +43043,10 @@ impl ::std::default::Default for PhysicalDeviceTexelBufferAlignmentProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceTexelBufferAlignmentProperties { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES; +} impl PhysicalDeviceTexelBufferAlignmentProperties { pub fn builder<'a>() -> PhysicalDeviceTexelBufferAlignmentPropertiesBuilder<'a> { PhysicalDeviceTexelBufferAlignmentPropertiesBuilder { @@ -41707,13 +43136,17 @@ impl ::std::default::Default for PhysicalDeviceSubgroupSizeControlFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), subgroup_size_control: Bool32::default(), compute_full_subgroups: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceSubgroupSizeControlFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES; +} impl PhysicalDeviceSubgroupSizeControlFeatures { pub fn builder<'a>() -> PhysicalDeviceSubgroupSizeControlFeaturesBuilder<'a> { PhysicalDeviceSubgroupSizeControlFeaturesBuilder { @@ -41779,7 +43212,7 @@ impl ::std::default::Default for PhysicalDeviceSubgroupSizeControlProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), min_subgroup_size: u32::default(), max_subgroup_size: u32::default(), @@ -41788,6 +43221,10 @@ impl ::std::default::Default for PhysicalDeviceSubgroupSizeControlProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceSubgroupSizeControlProperties { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES; +} impl PhysicalDeviceSubgroupSizeControlProperties { pub fn builder<'a>() -> PhysicalDeviceSubgroupSizeControlPropertiesBuilder<'a> { PhysicalDeviceSubgroupSizeControlPropertiesBuilder { @@ -41861,12 +43298,16 @@ impl ::std::default::Default for PipelineShaderStageRequiredSubgroupSizeCreateIn #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), required_subgroup_size: u32::default(), } } } +unsafe impl TaggedStructure for PipelineShaderStageRequiredSubgroupSizeCreateInfo { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO; +} impl PipelineShaderStageRequiredSubgroupSizeCreateInfo { pub fn builder<'a>() -> PipelineShaderStageRequiredSubgroupSizeCreateInfoBuilder<'a> { PipelineShaderStageRequiredSubgroupSizeCreateInfoBuilder { @@ -41926,13 +43367,17 @@ impl ::std::default::Default for SubpassShadingPipelineCreateInfoHUAWEI { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBPASS_SHADING_PIPELINE_CREATE_INFO_HUAWEI, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), render_pass: RenderPass::default(), subpass: u32::default(), } } } +unsafe impl TaggedStructure for SubpassShadingPipelineCreateInfoHUAWEI { + const STRUCTURE_TYPE: StructureType = + StructureType::SUBPASS_SHADING_PIPELINE_CREATE_INFO_HUAWEI; +} impl SubpassShadingPipelineCreateInfoHUAWEI { pub fn builder<'a>() -> SubpassShadingPipelineCreateInfoHUAWEIBuilder<'a> { SubpassShadingPipelineCreateInfoHUAWEIBuilder { @@ -41990,12 +43435,16 @@ impl ::std::default::Default for PhysicalDeviceSubpassShadingPropertiesHUAWEI { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SUBPASS_SHADING_PROPERTIES_HUAWEI, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_subpass_shading_workgroup_size_aspect_ratio: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceSubpassShadingPropertiesHUAWEI { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SUBPASS_SHADING_PROPERTIES_HUAWEI; +} impl PhysicalDeviceSubpassShadingPropertiesHUAWEI { pub fn builder<'a>() -> PhysicalDeviceSubpassShadingPropertiesHUAWEIBuilder<'a> { PhysicalDeviceSubpassShadingPropertiesHUAWEIBuilder { @@ -42055,12 +43504,16 @@ impl ::std::default::Default for MemoryOpaqueCaptureAddressAllocateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), opaque_capture_address: u64::default(), } } } +unsafe impl TaggedStructure for MemoryOpaqueCaptureAddressAllocateInfo { + const STRUCTURE_TYPE: StructureType = + StructureType::MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO; +} impl MemoryOpaqueCaptureAddressAllocateInfo { pub fn builder<'a>() -> MemoryOpaqueCaptureAddressAllocateInfoBuilder<'a> { MemoryOpaqueCaptureAddressAllocateInfoBuilder { @@ -42113,12 +43566,15 @@ impl ::std::default::Default for DeviceMemoryOpaqueCaptureAddressInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), memory: DeviceMemory::default(), } } } +unsafe impl TaggedStructure for DeviceMemoryOpaqueCaptureAddressInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO; +} impl DeviceMemoryOpaqueCaptureAddressInfo { pub fn builder<'a>() -> DeviceMemoryOpaqueCaptureAddressInfoBuilder<'a> { DeviceMemoryOpaqueCaptureAddressInfoBuilder { @@ -42174,7 +43630,7 @@ impl ::std::default::Default for PhysicalDeviceLineRasterizationFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), rectangular_lines: Bool32::default(), bresenham_lines: Bool32::default(), @@ -42185,6 +43641,10 @@ impl ::std::default::Default for PhysicalDeviceLineRasterizationFeaturesEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceLineRasterizationFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT; +} impl PhysicalDeviceLineRasterizationFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceLineRasterizationFeaturesEXTBuilder<'a> { PhysicalDeviceLineRasterizationFeaturesEXTBuilder { @@ -42267,12 +43727,16 @@ impl ::std::default::Default for PhysicalDeviceLineRasterizationPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), line_sub_pixel_precision_bits: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceLineRasterizationPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT; +} impl PhysicalDeviceLineRasterizationPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceLineRasterizationPropertiesEXTBuilder<'a> { PhysicalDeviceLineRasterizationPropertiesEXTBuilder { @@ -42331,7 +43795,7 @@ impl ::std::default::Default for PipelineRasterizationLineStateCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), line_rasterization_mode: LineRasterizationModeEXT::default(), stippled_line_enable: Bool32::default(), @@ -42340,6 +43804,10 @@ impl ::std::default::Default for PipelineRasterizationLineStateCreateInfoEXT { } } } +unsafe impl TaggedStructure for PipelineRasterizationLineStateCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT; +} impl PipelineRasterizationLineStateCreateInfoEXT { pub fn builder<'a>() -> PipelineRasterizationLineStateCreateInfoEXTBuilder<'a> { PipelineRasterizationLineStateCreateInfoEXTBuilder { @@ -42416,12 +43884,16 @@ impl ::std::default::Default for PhysicalDevicePipelineCreationCacheControlFeatu #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), pipeline_creation_cache_control: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePipelineCreationCacheControlFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES; +} impl PhysicalDevicePipelineCreationCacheControlFeatures { pub fn builder<'a>() -> PhysicalDevicePipelineCreationCacheControlFeaturesBuilder<'a> { PhysicalDevicePipelineCreationCacheControlFeaturesBuilder { @@ -42496,7 +43968,7 @@ impl ::std::default::Default for PhysicalDeviceVulkan11Features { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VULKAN_1_1_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), storage_buffer16_bit_access: Bool32::default(), uniform_and_storage_buffer16_bit_access: Bool32::default(), @@ -42513,6 +43985,9 @@ impl ::std::default::Default for PhysicalDeviceVulkan11Features { } } } +unsafe impl TaggedStructure for PhysicalDeviceVulkan11Features { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_VULKAN_1_1_FEATURES; +} impl PhysicalDeviceVulkan11Features { pub fn builder<'a>() -> PhysicalDeviceVulkan11FeaturesBuilder<'a> { PhysicalDeviceVulkan11FeaturesBuilder { @@ -42643,7 +44118,7 @@ impl ::std::default::Default for PhysicalDeviceVulkan11Properties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), device_uuid: unsafe { ::std::mem::zeroed() }, driver_uuid: unsafe { ::std::mem::zeroed() }, @@ -42663,6 +44138,9 @@ impl ::std::default::Default for PhysicalDeviceVulkan11Properties { } } } +unsafe impl TaggedStructure for PhysicalDeviceVulkan11Properties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES; +} impl PhysicalDeviceVulkan11Properties { pub fn builder<'a>() -> PhysicalDeviceVulkan11PropertiesBuilder<'a> { PhysicalDeviceVulkan11PropertiesBuilder { @@ -42844,7 +44322,7 @@ impl ::std::default::Default for PhysicalDeviceVulkan12Features { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VULKAN_1_2_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), sampler_mirror_clamp_to_edge: Bool32::default(), draw_indirect_count: Bool32::default(), @@ -42896,6 +44374,9 @@ impl ::std::default::Default for PhysicalDeviceVulkan12Features { } } } +unsafe impl TaggedStructure for PhysicalDeviceVulkan12Features { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_VULKAN_1_2_FEATURES; +} impl PhysicalDeviceVulkan12Features { pub fn builder<'a>() -> PhysicalDeviceVulkan12FeaturesBuilder<'a> { PhysicalDeviceVulkan12FeaturesBuilder { @@ -43538,7 +45019,7 @@ impl ::std::default::Default for PhysicalDeviceVulkan12Properties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), driver_id: DriverId::default(), driver_name: unsafe { ::std::mem::zeroed() }, @@ -43595,6 +45076,9 @@ impl ::std::default::Default for PhysicalDeviceVulkan12Properties { } } } +unsafe impl TaggedStructure for PhysicalDeviceVulkan12Properties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES; +} impl PhysicalDeviceVulkan12Properties { pub fn builder<'a>() -> PhysicalDeviceVulkan12PropertiesBuilder<'a> { PhysicalDeviceVulkan12PropertiesBuilder { @@ -44089,7 +45573,7 @@ impl ::std::default::Default for PhysicalDeviceVulkan13Features { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VULKAN_1_3_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), robust_image_access: Bool32::default(), inline_uniform_block: Bool32::default(), @@ -44109,6 +45593,9 @@ impl ::std::default::Default for PhysicalDeviceVulkan13Features { } } } +unsafe impl TaggedStructure for PhysicalDeviceVulkan13Features { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_VULKAN_1_3_FEATURES; +} impl PhysicalDeviceVulkan13Features { pub fn builder<'a>() -> PhysicalDeviceVulkan13FeaturesBuilder<'a> { PhysicalDeviceVulkan13FeaturesBuilder { @@ -44292,9 +45779,12 @@ pub struct PhysicalDeviceVulkan13Properties { impl ::std::default::Default for PhysicalDeviceVulkan13Properties { #[inline] fn default() -> Self { - Self { s_type : StructureType :: PHYSICAL_DEVICE_VULKAN_1_3_PROPERTIES , p_next : :: std :: ptr :: null_mut () , min_subgroup_size : u32 :: default () , max_subgroup_size : u32 :: default () , max_compute_workgroup_subgroups : u32 :: default () , required_subgroup_size_stages : ShaderStageFlags :: default () , max_inline_uniform_block_size : u32 :: default () , max_per_stage_descriptor_inline_uniform_blocks : u32 :: default () , max_per_stage_descriptor_update_after_bind_inline_uniform_blocks : u32 :: default () , max_descriptor_set_inline_uniform_blocks : u32 :: default () , max_descriptor_set_update_after_bind_inline_uniform_blocks : u32 :: default () , max_inline_uniform_total_size : u32 :: default () , integer_dot_product8_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product8_bit_signed_accelerated : Bool32 :: default () , integer_dot_product8_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_unsigned_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_signed_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product16_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product16_bit_signed_accelerated : Bool32 :: default () , integer_dot_product16_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product32_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product32_bit_signed_accelerated : Bool32 :: default () , integer_dot_product32_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product64_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product64_bit_signed_accelerated : Bool32 :: default () , integer_dot_product64_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_mixed_signedness_accelerated : Bool32 :: default () , storage_texel_buffer_offset_alignment_bytes : DeviceSize :: default () , storage_texel_buffer_offset_single_texel_alignment : Bool32 :: default () , uniform_texel_buffer_offset_alignment_bytes : DeviceSize :: default () , uniform_texel_buffer_offset_single_texel_alignment : Bool32 :: default () , max_buffer_size : DeviceSize :: default () } + Self { s_type : Self :: STRUCTURE_TYPE , p_next : :: std :: ptr :: null_mut () , min_subgroup_size : u32 :: default () , max_subgroup_size : u32 :: default () , max_compute_workgroup_subgroups : u32 :: default () , required_subgroup_size_stages : ShaderStageFlags :: default () , max_inline_uniform_block_size : u32 :: default () , max_per_stage_descriptor_inline_uniform_blocks : u32 :: default () , max_per_stage_descriptor_update_after_bind_inline_uniform_blocks : u32 :: default () , max_descriptor_set_inline_uniform_blocks : u32 :: default () , max_descriptor_set_update_after_bind_inline_uniform_blocks : u32 :: default () , max_inline_uniform_total_size : u32 :: default () , integer_dot_product8_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product8_bit_signed_accelerated : Bool32 :: default () , integer_dot_product8_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_unsigned_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_signed_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product16_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product16_bit_signed_accelerated : Bool32 :: default () , integer_dot_product16_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product32_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product32_bit_signed_accelerated : Bool32 :: default () , integer_dot_product32_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product64_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product64_bit_signed_accelerated : Bool32 :: default () , integer_dot_product64_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_mixed_signedness_accelerated : Bool32 :: default () , storage_texel_buffer_offset_alignment_bytes : DeviceSize :: default () , storage_texel_buffer_offset_single_texel_alignment : Bool32 :: default () , uniform_texel_buffer_offset_alignment_bytes : DeviceSize :: default () , uniform_texel_buffer_offset_single_texel_alignment : Bool32 :: default () , max_buffer_size : DeviceSize :: default () } } } +unsafe impl TaggedStructure for PhysicalDeviceVulkan13Properties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_VULKAN_1_3_PROPERTIES; +} impl PhysicalDeviceVulkan13Properties { pub fn builder<'a>() -> PhysicalDeviceVulkan13PropertiesBuilder<'a> { PhysicalDeviceVulkan13PropertiesBuilder { @@ -44746,12 +46236,15 @@ impl ::std::default::Default for PipelineCompilerControlCreateInfoAMD { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_COMPILER_CONTROL_CREATE_INFO_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), compiler_control_flags: PipelineCompilerControlFlagsAMD::default(), } } } +unsafe impl TaggedStructure for PipelineCompilerControlCreateInfoAMD { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_COMPILER_CONTROL_CREATE_INFO_AMD; +} impl PipelineCompilerControlCreateInfoAMD { pub fn builder<'a>() -> PipelineCompilerControlCreateInfoAMDBuilder<'a> { PipelineCompilerControlCreateInfoAMDBuilder { @@ -44809,12 +46302,16 @@ impl ::std::default::Default for PhysicalDeviceCoherentMemoryFeaturesAMD { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), device_coherent_memory: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceCoherentMemoryFeaturesAMD { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMD; +} impl PhysicalDeviceCoherentMemoryFeaturesAMD { pub fn builder<'a>() -> PhysicalDeviceCoherentMemoryFeaturesAMDBuilder<'a> { PhysicalDeviceCoherentMemoryFeaturesAMDBuilder { @@ -44894,7 +46391,7 @@ impl ::std::default::Default for PhysicalDeviceToolProperties { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_TOOL_PROPERTIES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), name: unsafe { ::std::mem::zeroed() }, version: unsafe { ::std::mem::zeroed() }, @@ -44904,6 +46401,9 @@ impl ::std::default::Default for PhysicalDeviceToolProperties { } } } +unsafe impl TaggedStructure for PhysicalDeviceToolProperties { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_TOOL_PROPERTIES; +} impl PhysicalDeviceToolProperties { pub fn builder<'a>() -> PhysicalDeviceToolPropertiesBuilder<'a> { PhysicalDeviceToolPropertiesBuilder { @@ -44985,13 +46485,17 @@ impl ::std::default::Default for SamplerCustomBorderColorCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), custom_border_color: ClearColorValue::default(), format: Format::default(), } } } +unsafe impl TaggedStructure for SamplerCustomBorderColorCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT; +} impl SamplerCustomBorderColorCreateInfoEXT { pub fn builder<'a>() -> SamplerCustomBorderColorCreateInfoEXTBuilder<'a> { SamplerCustomBorderColorCreateInfoEXTBuilder { @@ -45049,12 +46553,16 @@ impl ::std::default::Default for PhysicalDeviceCustomBorderColorPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_custom_border_color_samplers: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceCustomBorderColorPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_PROPERTIES_EXT; +} impl PhysicalDeviceCustomBorderColorPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceCustomBorderColorPropertiesEXTBuilder<'a> { PhysicalDeviceCustomBorderColorPropertiesEXTBuilder { @@ -45114,13 +46622,17 @@ impl ::std::default::Default for PhysicalDeviceCustomBorderColorFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), custom_border_colors: Bool32::default(), custom_border_color_without_format: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceCustomBorderColorFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXT; +} impl PhysicalDeviceCustomBorderColorFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceCustomBorderColorFeaturesEXTBuilder<'a> { PhysicalDeviceCustomBorderColorFeaturesEXTBuilder { @@ -45187,13 +46699,17 @@ impl ::std::default::Default for SamplerBorderColorComponentMappingCreateInfoEXT #[inline] fn default() -> Self { Self { - s_type: StructureType::SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), components: ComponentMapping::default(), srgb: Bool32::default(), } } } +unsafe impl TaggedStructure for SamplerBorderColorComponentMappingCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXT; +} impl SamplerBorderColorComponentMappingCreateInfoEXT { pub fn builder<'a>() -> SamplerBorderColorComponentMappingCreateInfoEXTBuilder<'a> { SamplerBorderColorComponentMappingCreateInfoEXTBuilder { @@ -45255,13 +46771,17 @@ impl ::std::default::Default for PhysicalDeviceBorderColorSwizzleFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), border_color_swizzle: Bool32::default(), border_color_swizzle_from_image: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceBorderColorSwizzleFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT; +} impl PhysicalDeviceBorderColorSwizzleFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceBorderColorSwizzleFeaturesEXTBuilder<'a> { PhysicalDeviceBorderColorSwizzleFeaturesEXTBuilder { @@ -45374,7 +46894,7 @@ impl ::std::default::Default for AccelerationStructureGeometryTrianglesDataKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_GEOMETRY_TRIANGLES_DATA_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), vertex_format: Format::default(), vertex_data: DeviceOrHostAddressConstKHR::default(), @@ -45386,6 +46906,10 @@ impl ::std::default::Default for AccelerationStructureGeometryTrianglesDataKHR { } } } +unsafe impl TaggedStructure for AccelerationStructureGeometryTrianglesDataKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::ACCELERATION_STRUCTURE_GEOMETRY_TRIANGLES_DATA_KHR; +} impl AccelerationStructureGeometryTrianglesDataKHR { pub fn builder<'a>() -> AccelerationStructureGeometryTrianglesDataKHRBuilder<'a> { AccelerationStructureGeometryTrianglesDataKHRBuilder { @@ -45495,13 +47019,17 @@ impl ::std::default::Default for AccelerationStructureGeometryAabbsDataKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_GEOMETRY_AABBS_DATA_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), data: DeviceOrHostAddressConstKHR::default(), stride: DeviceSize::default(), } } } +unsafe impl TaggedStructure for AccelerationStructureGeometryAabbsDataKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::ACCELERATION_STRUCTURE_GEOMETRY_AABBS_DATA_KHR; +} impl AccelerationStructureGeometryAabbsDataKHR { pub fn builder<'a>() -> AccelerationStructureGeometryAabbsDataKHRBuilder<'a> { AccelerationStructureGeometryAabbsDataKHRBuilder { @@ -45568,13 +47096,17 @@ impl ::std::default::Default for AccelerationStructureGeometryInstancesDataKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_GEOMETRY_INSTANCES_DATA_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), array_of_pointers: Bool32::default(), data: DeviceOrHostAddressConstKHR::default(), } } } +unsafe impl TaggedStructure for AccelerationStructureGeometryInstancesDataKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::ACCELERATION_STRUCTURE_GEOMETRY_INSTANCES_DATA_KHR; +} impl AccelerationStructureGeometryInstancesDataKHR { pub fn builder<'a>() -> AccelerationStructureGeometryInstancesDataKHRBuilder<'a> { AccelerationStructureGeometryInstancesDataKHRBuilder { @@ -45657,7 +47189,7 @@ impl ::std::default::Default for AccelerationStructureGeometryKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_GEOMETRY_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), geometry_type: GeometryTypeKHR::default(), geometry: AccelerationStructureGeometryDataKHR::default(), @@ -45665,6 +47197,9 @@ impl ::std::default::Default for AccelerationStructureGeometryKHR { } } } +unsafe impl TaggedStructure for AccelerationStructureGeometryKHR { + const STRUCTURE_TYPE: StructureType = StructureType::ACCELERATION_STRUCTURE_GEOMETRY_KHR; +} impl AccelerationStructureGeometryKHR { pub fn builder<'a>() -> AccelerationStructureGeometryKHRBuilder<'a> { AccelerationStructureGeometryKHRBuilder { @@ -45756,7 +47291,7 @@ impl ::std::default::Default for AccelerationStructureBuildGeometryInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_BUILD_GEOMETRY_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), ty: AccelerationStructureTypeKHR::default(), flags: BuildAccelerationStructureFlagsKHR::default(), @@ -45770,6 +47305,10 @@ impl ::std::default::Default for AccelerationStructureBuildGeometryInfoKHR { } } } +unsafe impl TaggedStructure for AccelerationStructureBuildGeometryInfoKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::ACCELERATION_STRUCTURE_BUILD_GEOMETRY_INFO_KHR; +} impl AccelerationStructureBuildGeometryInfoKHR { pub fn builder<'a>() -> AccelerationStructureBuildGeometryInfoKHRBuilder<'a> { AccelerationStructureBuildGeometryInfoKHRBuilder { @@ -45933,7 +47472,7 @@ impl ::std::default::Default for AccelerationStructureCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), create_flags: AccelerationStructureCreateFlagsKHR::default(), buffer: Buffer::default(), @@ -45944,6 +47483,9 @@ impl ::std::default::Default for AccelerationStructureCreateInfoKHR { } } } +unsafe impl TaggedStructure for AccelerationStructureCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::ACCELERATION_STRUCTURE_CREATE_INFO_KHR; +} impl AccelerationStructureCreateInfoKHR { pub fn builder<'a>() -> AccelerationStructureCreateInfoKHRBuilder<'a> { AccelerationStructureCreateInfoKHRBuilder { @@ -46133,12 +47675,16 @@ impl ::std::default::Default for AccelerationStructureDeviceAddressInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_DEVICE_ADDRESS_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), acceleration_structure: AccelerationStructureKHR::default(), } } } +unsafe impl TaggedStructure for AccelerationStructureDeviceAddressInfoKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::ACCELERATION_STRUCTURE_DEVICE_ADDRESS_INFO_KHR; +} impl AccelerationStructureDeviceAddressInfoKHR { pub fn builder<'a>() -> AccelerationStructureDeviceAddressInfoKHRBuilder<'a> { AccelerationStructureDeviceAddressInfoKHRBuilder { @@ -46192,12 +47738,15 @@ impl ::std::default::Default for AccelerationStructureVersionInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_VERSION_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_version_data: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for AccelerationStructureVersionInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::ACCELERATION_STRUCTURE_VERSION_INFO_KHR; +} impl AccelerationStructureVersionInfoKHR { pub fn builder<'a>() -> AccelerationStructureVersionInfoKHRBuilder<'a> { AccelerationStructureVersionInfoKHRBuilder { @@ -46250,7 +47799,7 @@ impl ::std::default::Default for CopyAccelerationStructureInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::COPY_ACCELERATION_STRUCTURE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src: AccelerationStructureKHR::default(), dst: AccelerationStructureKHR::default(), @@ -46258,6 +47807,9 @@ impl ::std::default::Default for CopyAccelerationStructureInfoKHR { } } } +unsafe impl TaggedStructure for CopyAccelerationStructureInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::COPY_ACCELERATION_STRUCTURE_INFO_KHR; +} impl CopyAccelerationStructureInfoKHR { pub fn builder<'a>() -> CopyAccelerationStructureInfoKHRBuilder<'a> { CopyAccelerationStructureInfoKHRBuilder { @@ -46331,7 +47883,7 @@ impl ::std::default::Default for CopyAccelerationStructureToMemoryInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::COPY_ACCELERATION_STRUCTURE_TO_MEMORY_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src: AccelerationStructureKHR::default(), dst: DeviceOrHostAddressKHR::default(), @@ -46339,6 +47891,10 @@ impl ::std::default::Default for CopyAccelerationStructureToMemoryInfoKHR { } } } +unsafe impl TaggedStructure for CopyAccelerationStructureToMemoryInfoKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::COPY_ACCELERATION_STRUCTURE_TO_MEMORY_INFO_KHR; +} impl CopyAccelerationStructureToMemoryInfoKHR { pub fn builder<'a>() -> CopyAccelerationStructureToMemoryInfoKHRBuilder<'a> { CopyAccelerationStructureToMemoryInfoKHRBuilder { @@ -46412,7 +47968,7 @@ impl ::std::default::Default for CopyMemoryToAccelerationStructureInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::COPY_MEMORY_TO_ACCELERATION_STRUCTURE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src: DeviceOrHostAddressConstKHR::default(), dst: AccelerationStructureKHR::default(), @@ -46420,6 +47976,10 @@ impl ::std::default::Default for CopyMemoryToAccelerationStructureInfoKHR { } } } +unsafe impl TaggedStructure for CopyMemoryToAccelerationStructureInfoKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::COPY_MEMORY_TO_ACCELERATION_STRUCTURE_INFO_KHR; +} impl CopyMemoryToAccelerationStructureInfoKHR { pub fn builder<'a>() -> CopyMemoryToAccelerationStructureInfoKHRBuilder<'a> { CopyMemoryToAccelerationStructureInfoKHRBuilder { @@ -46481,13 +48041,17 @@ impl ::std::default::Default for RayTracingPipelineInterfaceCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::RAY_TRACING_PIPELINE_INTERFACE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), max_pipeline_ray_payload_size: u32::default(), max_pipeline_ray_hit_attribute_size: u32::default(), } } } +unsafe impl TaggedStructure for RayTracingPipelineInterfaceCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::RAY_TRACING_PIPELINE_INTERFACE_CREATE_INFO_KHR; +} impl RayTracingPipelineInterfaceCreateInfoKHR { pub fn builder<'a>() -> RayTracingPipelineInterfaceCreateInfoKHRBuilder<'a> { RayTracingPipelineInterfaceCreateInfoKHRBuilder { @@ -46547,13 +48111,16 @@ impl ::std::default::Default for PipelineLibraryCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_LIBRARY_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), library_count: u32::default(), p_libraries: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for PipelineLibraryCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_LIBRARY_CREATE_INFO_KHR; +} impl PipelineLibraryCreateInfoKHR { pub fn builder<'a>() -> PipelineLibraryCreateInfoKHRBuilder<'a> { PipelineLibraryCreateInfoKHRBuilder { @@ -46607,12 +48174,16 @@ impl ::std::default::Default for PhysicalDeviceExtendedDynamicStateFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), extended_dynamic_state: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceExtendedDynamicStateFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT; +} impl PhysicalDeviceExtendedDynamicStateFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceExtendedDynamicStateFeaturesEXTBuilder<'a> { PhysicalDeviceExtendedDynamicStateFeaturesEXTBuilder { @@ -46672,7 +48243,7 @@ impl ::std::default::Default for PhysicalDeviceExtendedDynamicState2FeaturesEXT #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_2_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), extended_dynamic_state2: Bool32::default(), extended_dynamic_state2_logic_op: Bool32::default(), @@ -46680,6 +48251,10 @@ impl ::std::default::Default for PhysicalDeviceExtendedDynamicState2FeaturesEXT } } } +unsafe impl TaggedStructure for PhysicalDeviceExtendedDynamicState2FeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_2_FEATURES_EXT; +} impl PhysicalDeviceExtendedDynamicState2FeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceExtendedDynamicState2FeaturesEXTBuilder<'a> { PhysicalDeviceExtendedDynamicState2FeaturesEXTBuilder { @@ -46754,12 +48329,15 @@ impl ::std::default::Default for RenderPassTransformBeginInfoQCOM { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_TRANSFORM_BEGIN_INFO_QCOM, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), transform: SurfaceTransformFlagsKHR::default(), } } } +unsafe impl TaggedStructure for RenderPassTransformBeginInfoQCOM { + const STRUCTURE_TYPE: StructureType = StructureType::RENDER_PASS_TRANSFORM_BEGIN_INFO_QCOM; +} impl RenderPassTransformBeginInfoQCOM { pub fn builder<'a>() -> RenderPassTransformBeginInfoQCOMBuilder<'a> { RenderPassTransformBeginInfoQCOMBuilder { @@ -46812,12 +48390,15 @@ impl ::std::default::Default for CopyCommandTransformInfoQCOM { #[inline] fn default() -> Self { Self { - s_type: StructureType::COPY_COMMAND_TRANSFORM_INFO_QCOM, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), transform: SurfaceTransformFlagsKHR::default(), } } } +unsafe impl TaggedStructure for CopyCommandTransformInfoQCOM { + const STRUCTURE_TYPE: StructureType = StructureType::COPY_COMMAND_TRANSFORM_INFO_QCOM; +} impl CopyCommandTransformInfoQCOM { pub fn builder<'a>() -> CopyCommandTransformInfoQCOMBuilder<'a> { CopyCommandTransformInfoQCOMBuilder { @@ -46873,13 +48454,17 @@ impl ::std::default::Default for CommandBufferInheritanceRenderPassTransformInfo #[inline] fn default() -> Self { Self { - s_type: StructureType::COMMAND_BUFFER_INHERITANCE_RENDER_PASS_TRANSFORM_INFO_QCOM, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), transform: SurfaceTransformFlagsKHR::default(), render_area: Rect2D::default(), } } } +unsafe impl TaggedStructure for CommandBufferInheritanceRenderPassTransformInfoQCOM { + const STRUCTURE_TYPE: StructureType = + StructureType::COMMAND_BUFFER_INHERITANCE_RENDER_PASS_TRANSFORM_INFO_QCOM; +} impl CommandBufferInheritanceRenderPassTransformInfoQCOM { pub fn builder<'a>() -> CommandBufferInheritanceRenderPassTransformInfoQCOMBuilder<'a> { CommandBufferInheritanceRenderPassTransformInfoQCOMBuilder { @@ -46943,12 +48528,16 @@ impl ::std::default::Default for PhysicalDeviceDiagnosticsConfigFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DIAGNOSTICS_CONFIG_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), diagnostics_config: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceDiagnosticsConfigFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DIAGNOSTICS_CONFIG_FEATURES_NV; +} impl PhysicalDeviceDiagnosticsConfigFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceDiagnosticsConfigFeaturesNVBuilder<'a> { PhysicalDeviceDiagnosticsConfigFeaturesNVBuilder { @@ -47006,12 +48595,15 @@ impl ::std::default::Default for DeviceDiagnosticsConfigCreateInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: DeviceDiagnosticsConfigFlagsNV::default(), } } } +unsafe impl TaggedStructure for DeviceDiagnosticsConfigCreateInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV; +} impl DeviceDiagnosticsConfigCreateInfoNV { pub fn builder<'a>() -> DeviceDiagnosticsConfigCreateInfoNVBuilder<'a> { DeviceDiagnosticsConfigCreateInfoNVBuilder { @@ -47064,12 +48656,16 @@ impl ::std::default::Default for PhysicalDeviceZeroInitializeWorkgroupMemoryFeat #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_zero_initialize_workgroup_memory: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceZeroInitializeWorkgroupMemoryFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURES; +} impl PhysicalDeviceZeroInitializeWorkgroupMemoryFeatures { pub fn builder<'a>() -> PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesBuilder<'a> { PhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesBuilder { @@ -47134,13 +48730,16 @@ impl ::std::default::Default for PhysicalDeviceShaderSubgroupUniformControlFlowF #[inline] fn default() -> Self { Self { - s_type: - StructureType::PHYSICAL_DEVICE_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_subgroup_uniform_control_flow: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_FEATURES_KHR; +} impl PhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR { pub fn builder<'a>() -> PhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHRBuilder<'a> { PhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHRBuilder { @@ -47214,7 +48813,7 @@ impl ::std::default::Default for PhysicalDeviceRobustness2FeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), robust_buffer_access2: Bool32::default(), robust_image_access2: Bool32::default(), @@ -47222,6 +48821,9 @@ impl ::std::default::Default for PhysicalDeviceRobustness2FeaturesEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceRobustness2FeaturesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT; +} impl PhysicalDeviceRobustness2FeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceRobustness2FeaturesEXTBuilder<'a> { PhysicalDeviceRobustness2FeaturesEXTBuilder { @@ -47287,13 +48889,17 @@ impl ::std::default::Default for PhysicalDeviceRobustness2PropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), robust_storage_buffer_access_size_alignment: DeviceSize::default(), robust_uniform_buffer_access_size_alignment: DeviceSize::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceRobustness2PropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXT; +} impl PhysicalDeviceRobustness2PropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceRobustness2PropertiesEXTBuilder<'a> { PhysicalDeviceRobustness2PropertiesEXTBuilder { @@ -47359,12 +48965,15 @@ impl ::std::default::Default for PhysicalDeviceImageRobustnessFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), robust_image_access: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceImageRobustnessFeatures { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES; +} impl PhysicalDeviceImageRobustnessFeatures { pub fn builder<'a>() -> PhysicalDeviceImageRobustnessFeaturesBuilder<'a> { PhysicalDeviceImageRobustnessFeaturesBuilder { @@ -47422,7 +49031,7 @@ impl ::std::default::Default for PhysicalDeviceWorkgroupMemoryExplicitLayoutFeat #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), workgroup_memory_explicit_layout: Bool32::default(), workgroup_memory_explicit_layout_scalar_block_layout: Bool32::default(), @@ -47431,6 +49040,10 @@ impl ::std::default::Default for PhysicalDeviceWorkgroupMemoryExplicitLayoutFeat } } } +unsafe impl TaggedStructure for PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR; +} impl PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR { pub fn builder<'a>() -> PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder<'a> { PhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRBuilder { @@ -47541,7 +49154,7 @@ impl ::std::default::Default for PhysicalDevicePortabilitySubsetFeaturesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PORTABILITY_SUBSET_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), constant_alpha_color_blend_factors: Bool32::default(), events: Bool32::default(), @@ -47561,6 +49174,10 @@ impl ::std::default::Default for PhysicalDevicePortabilitySubsetFeaturesKHR { } } } +unsafe impl TaggedStructure for PhysicalDevicePortabilitySubsetFeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PORTABILITY_SUBSET_FEATURES_KHR; +} impl PhysicalDevicePortabilitySubsetFeaturesKHR { pub fn builder<'a>() -> PhysicalDevicePortabilitySubsetFeaturesKHRBuilder<'a> { PhysicalDevicePortabilitySubsetFeaturesKHRBuilder { @@ -47702,12 +49319,16 @@ impl ::std::default::Default for PhysicalDevicePortabilitySubsetPropertiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PORTABILITY_SUBSET_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), min_vertex_input_binding_stride_alignment: u32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePortabilitySubsetPropertiesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PORTABILITY_SUBSET_PROPERTIES_KHR; +} impl PhysicalDevicePortabilitySubsetPropertiesKHR { pub fn builder<'a>() -> PhysicalDevicePortabilitySubsetPropertiesKHRBuilder<'a> { PhysicalDevicePortabilitySubsetPropertiesKHRBuilder { @@ -47768,13 +49389,16 @@ impl ::std::default::Default for PhysicalDevice4444FormatsFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), format_a4r4g4b4: Bool32::default(), format_a4b4g4r4: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevice4444FormatsFeaturesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT; +} impl PhysicalDevice4444FormatsFeaturesEXT { pub fn builder<'a>() -> PhysicalDevice4444FormatsFeaturesEXTBuilder<'a> { PhysicalDevice4444FormatsFeaturesEXTBuilder { @@ -47834,12 +49458,16 @@ impl ::std::default::Default for PhysicalDeviceSubpassShadingFeaturesHUAWEI { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEI, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), subpass_shading: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceSubpassShadingFeaturesHUAWEI { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEI; +} impl PhysicalDeviceSubpassShadingFeaturesHUAWEI { pub fn builder<'a>() -> PhysicalDeviceSubpassShadingFeaturesHUAWEIBuilder<'a> { PhysicalDeviceSubpassShadingFeaturesHUAWEIBuilder { @@ -47899,7 +49527,7 @@ impl ::std::default::Default for BufferCopy2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_COPY_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_offset: DeviceSize::default(), dst_offset: DeviceSize::default(), @@ -47907,6 +49535,9 @@ impl ::std::default::Default for BufferCopy2 { } } } +unsafe impl TaggedStructure for BufferCopy2 { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_COPY_2; +} impl BufferCopy2 { pub fn builder<'a>() -> BufferCopy2Builder<'a> { BufferCopy2Builder { @@ -47971,7 +49602,7 @@ impl ::std::default::Default for ImageCopy2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_COPY_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_subresource: ImageSubresourceLayers::default(), src_offset: Offset3D::default(), @@ -47981,6 +49612,9 @@ impl ::std::default::Default for ImageCopy2 { } } } +unsafe impl TaggedStructure for ImageCopy2 { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_COPY_2; +} impl ImageCopy2 { pub fn builder<'a>() -> ImageCopy2Builder<'a> { ImageCopy2Builder { @@ -48054,7 +49688,7 @@ impl ::std::default::Default for ImageBlit2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_BLIT_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_subresource: ImageSubresourceLayers::default(), src_offsets: unsafe { ::std::mem::zeroed() }, @@ -48063,6 +49697,9 @@ impl ::std::default::Default for ImageBlit2 { } } } +unsafe impl TaggedStructure for ImageBlit2 { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_BLIT_2; +} impl ImageBlit2 { pub fn builder<'a>() -> ImageBlit2Builder<'a> { ImageBlit2Builder { @@ -48148,7 +49785,7 @@ impl ::std::default::Default for BufferImageCopy2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_IMAGE_COPY_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), buffer_offset: DeviceSize::default(), buffer_row_length: u32::default(), @@ -48159,6 +49796,9 @@ impl ::std::default::Default for BufferImageCopy2 { } } } +unsafe impl TaggedStructure for BufferImageCopy2 { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_IMAGE_COPY_2; +} impl BufferImageCopy2 { pub fn builder<'a>() -> BufferImageCopy2Builder<'a> { BufferImageCopy2Builder { @@ -48253,7 +49893,7 @@ impl ::std::default::Default for ImageResolve2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_RESOLVE_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_subresource: ImageSubresourceLayers::default(), src_offset: Offset3D::default(), @@ -48263,6 +49903,9 @@ impl ::std::default::Default for ImageResolve2 { } } } +unsafe impl TaggedStructure for ImageResolve2 { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_RESOLVE_2; +} impl ImageResolve2 { pub fn builder<'a>() -> ImageResolve2Builder<'a> { ImageResolve2Builder { @@ -48336,7 +49979,7 @@ impl ::std::default::Default for CopyBufferInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::COPY_BUFFER_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_buffer: Buffer::default(), dst_buffer: Buffer::default(), @@ -48345,6 +49988,9 @@ impl ::std::default::Default for CopyBufferInfo2 { } } } +unsafe impl TaggedStructure for CopyBufferInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::COPY_BUFFER_INFO_2; +} impl CopyBufferInfo2 { pub fn builder<'a>() -> CopyBufferInfo2Builder<'a> { CopyBufferInfo2Builder { @@ -48411,7 +50057,7 @@ impl ::std::default::Default for CopyImageInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::COPY_IMAGE_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_image: Image::default(), src_image_layout: ImageLayout::default(), @@ -48422,6 +50068,9 @@ impl ::std::default::Default for CopyImageInfo2 { } } } +unsafe impl TaggedStructure for CopyImageInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::COPY_IMAGE_INFO_2; +} impl CopyImageInfo2 { pub fn builder<'a>() -> CopyImageInfo2Builder<'a> { CopyImageInfo2Builder { @@ -48499,7 +50148,7 @@ impl ::std::default::Default for BlitImageInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::BLIT_IMAGE_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_image: Image::default(), src_image_layout: ImageLayout::default(), @@ -48511,6 +50160,9 @@ impl ::std::default::Default for BlitImageInfo2 { } } } +unsafe impl TaggedStructure for BlitImageInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::BLIT_IMAGE_INFO_2; +} impl BlitImageInfo2 { pub fn builder<'a>() -> BlitImageInfo2Builder<'a> { BlitImageInfo2Builder { @@ -48591,7 +50243,7 @@ impl ::std::default::Default for CopyBufferToImageInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::COPY_BUFFER_TO_IMAGE_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_buffer: Buffer::default(), dst_image: Image::default(), @@ -48601,6 +50253,9 @@ impl ::std::default::Default for CopyBufferToImageInfo2 { } } } +unsafe impl TaggedStructure for CopyBufferToImageInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::COPY_BUFFER_TO_IMAGE_INFO_2; +} impl CopyBufferToImageInfo2 { pub fn builder<'a>() -> CopyBufferToImageInfo2Builder<'a> { CopyBufferToImageInfo2Builder { @@ -48671,7 +50326,7 @@ impl ::std::default::Default for CopyImageToBufferInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::COPY_IMAGE_TO_BUFFER_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_image: Image::default(), src_image_layout: ImageLayout::default(), @@ -48681,6 +50336,9 @@ impl ::std::default::Default for CopyImageToBufferInfo2 { } } } +unsafe impl TaggedStructure for CopyImageToBufferInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::COPY_IMAGE_TO_BUFFER_INFO_2; +} impl CopyImageToBufferInfo2 { pub fn builder<'a>() -> CopyImageToBufferInfo2Builder<'a> { CopyImageToBufferInfo2Builder { @@ -48752,7 +50410,7 @@ impl ::std::default::Default for ResolveImageInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::RESOLVE_IMAGE_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_image: Image::default(), src_image_layout: ImageLayout::default(), @@ -48763,6 +50421,9 @@ impl ::std::default::Default for ResolveImageInfo2 { } } } +unsafe impl TaggedStructure for ResolveImageInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::RESOLVE_IMAGE_INFO_2; +} impl ResolveImageInfo2 { pub fn builder<'a>() -> ResolveImageInfo2Builder<'a> { ResolveImageInfo2Builder { @@ -48835,13 +50496,17 @@ impl ::std::default::Default for PhysicalDeviceShaderImageAtomicInt64FeaturesEXT #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_IMAGE_ATOMIC_INT64_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_image_int64_atomics: Bool32::default(), sparse_image_int64_atomics: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderImageAtomicInt64FeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_IMAGE_ATOMIC_INT64_FEATURES_EXT; +} impl PhysicalDeviceShaderImageAtomicInt64FeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceShaderImageAtomicInt64FeaturesEXTBuilder<'a> { PhysicalDeviceShaderImageAtomicInt64FeaturesEXTBuilder { @@ -48905,13 +50570,16 @@ impl ::std::default::Default for FragmentShadingRateAttachmentInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_fragment_shading_rate_attachment: ::std::ptr::null(), shading_rate_attachment_texel_size: Extent2D::default(), } } } +unsafe impl TaggedStructure for FragmentShadingRateAttachmentInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR; +} impl FragmentShadingRateAttachmentInfoKHR { pub fn builder<'a>() -> FragmentShadingRateAttachmentInfoKHRBuilder<'a> { FragmentShadingRateAttachmentInfoKHRBuilder { @@ -48976,13 +50644,17 @@ impl ::std::default::Default for PipelineFragmentShadingRateStateCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), fragment_size: Extent2D::default(), combiner_ops: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for PipelineFragmentShadingRateStateCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHR; +} impl PipelineFragmentShadingRateStateCreateInfoKHR { pub fn builder<'a>() -> PipelineFragmentShadingRateStateCreateInfoKHRBuilder<'a> { PipelineFragmentShadingRateStateCreateInfoKHRBuilder { @@ -49045,7 +50717,7 @@ impl ::std::default::Default for PhysicalDeviceFragmentShadingRateFeaturesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), pipeline_fragment_shading_rate: Bool32::default(), primitive_fragment_shading_rate: Bool32::default(), @@ -49053,6 +50725,10 @@ impl ::std::default::Default for PhysicalDeviceFragmentShadingRateFeaturesKHR { } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentShadingRateFeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_FEATURES_KHR; +} impl PhysicalDeviceFragmentShadingRateFeaturesKHR { pub fn builder<'a>() -> PhysicalDeviceFragmentShadingRateFeaturesKHRBuilder<'a> { PhysicalDeviceFragmentShadingRateFeaturesKHRBuilder { @@ -49142,7 +50818,7 @@ impl ::std::default::Default for PhysicalDeviceFragmentShadingRatePropertiesKHR #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), min_fragment_shading_rate_attachment_texel_size: Extent2D::default(), max_fragment_shading_rate_attachment_texel_size: Extent2D::default(), @@ -49164,6 +50840,10 @@ impl ::std::default::Default for PhysicalDeviceFragmentShadingRatePropertiesKHR } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentShadingRatePropertiesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_PROPERTIES_KHR; +} impl PhysicalDeviceFragmentShadingRatePropertiesKHR { pub fn builder<'a>() -> PhysicalDeviceFragmentShadingRatePropertiesKHRBuilder<'a> { PhysicalDeviceFragmentShadingRatePropertiesKHRBuilder { @@ -49365,13 +51045,16 @@ impl ::std::default::Default for PhysicalDeviceFragmentShadingRateKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), sample_counts: SampleCountFlags::default(), fragment_size: Extent2D::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentShadingRateKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_KHR; +} impl PhysicalDeviceFragmentShadingRateKHR { pub fn builder<'a>() -> PhysicalDeviceFragmentShadingRateKHRBuilder<'a> { PhysicalDeviceFragmentShadingRateKHRBuilder { @@ -49427,12 +51110,16 @@ impl ::std::default::Default for PhysicalDeviceShaderTerminateInvocationFeatures #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_terminate_invocation: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderTerminateInvocationFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURES; +} impl PhysicalDeviceShaderTerminateInvocationFeatures { pub fn builder<'a>() -> PhysicalDeviceShaderTerminateInvocationFeaturesBuilder<'a> { PhysicalDeviceShaderTerminateInvocationFeaturesBuilder { @@ -49492,7 +51179,7 @@ impl ::std::default::Default for PhysicalDeviceFragmentShadingRateEnumsFeaturesN #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), fragment_shading_rate_enums: Bool32::default(), supersample_fragment_shading_rates: Bool32::default(), @@ -49500,6 +51187,10 @@ impl ::std::default::Default for PhysicalDeviceFragmentShadingRateEnumsFeaturesN } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentShadingRateEnumsFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_FEATURES_NV; +} impl PhysicalDeviceFragmentShadingRateEnumsFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceFragmentShadingRateEnumsFeaturesNVBuilder<'a> { PhysicalDeviceFragmentShadingRateEnumsFeaturesNVBuilder { @@ -49577,12 +51268,16 @@ impl ::std::default::Default for PhysicalDeviceFragmentShadingRateEnumsPropertie #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_PROPERTIES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_fragment_shading_rate_invocation_count: SampleCountFlags::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentShadingRateEnumsPropertiesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_PROPERTIES_NV; +} impl PhysicalDeviceFragmentShadingRateEnumsPropertiesNV { pub fn builder<'a>() -> PhysicalDeviceFragmentShadingRateEnumsPropertiesNVBuilder<'a> { PhysicalDeviceFragmentShadingRateEnumsPropertiesNVBuilder { @@ -49647,7 +51342,7 @@ impl ::std::default::Default for PipelineFragmentShadingRateEnumStateCreateInfoN #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_FRAGMENT_SHADING_RATE_ENUM_STATE_CREATE_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), shading_rate_type: FragmentShadingRateTypeNV::default(), shading_rate: FragmentShadingRateNV::default(), @@ -49655,6 +51350,10 @@ impl ::std::default::Default for PipelineFragmentShadingRateEnumStateCreateInfoN } } } +unsafe impl TaggedStructure for PipelineFragmentShadingRateEnumStateCreateInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_FRAGMENT_SHADING_RATE_ENUM_STATE_CREATE_INFO_NV; +} impl PipelineFragmentShadingRateEnumStateCreateInfoNV { pub fn builder<'a>() -> PipelineFragmentShadingRateEnumStateCreateInfoNVBuilder<'a> { PipelineFragmentShadingRateEnumStateCreateInfoNVBuilder { @@ -49722,7 +51421,7 @@ impl ::std::default::Default for AccelerationStructureBuildSizesInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_BUILD_SIZES_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), acceleration_structure_size: DeviceSize::default(), update_scratch_size: DeviceSize::default(), @@ -49730,6 +51429,10 @@ impl ::std::default::Default for AccelerationStructureBuildSizesInfoKHR { } } } +unsafe impl TaggedStructure for AccelerationStructureBuildSizesInfoKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::ACCELERATION_STRUCTURE_BUILD_SIZES_INFO_KHR; +} impl AccelerationStructureBuildSizesInfoKHR { pub fn builder<'a>() -> AccelerationStructureBuildSizesInfoKHRBuilder<'a> { AccelerationStructureBuildSizesInfoKHRBuilder { @@ -49791,13 +51494,17 @@ impl ::std::default::Default for PhysicalDeviceImage2DViewOf3DFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_IMAGE_2D_VIEW_OF_3D_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), image2_d_view_of3_d: Bool32::default(), sampler2_d_view_of3_d: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceImage2DViewOf3DFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_IMAGE_2D_VIEW_OF_3D_FEATURES_EXT; +} impl PhysicalDeviceImage2DViewOf3DFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceImage2DViewOf3DFeaturesEXTBuilder<'a> { PhysicalDeviceImage2DViewOf3DFeaturesEXTBuilder { @@ -49857,12 +51564,16 @@ impl ::std::default::Default for PhysicalDeviceMutableDescriptorTypeFeaturesVALV #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), mutable_descriptor_type: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMutableDescriptorTypeFeaturesVALVE { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE; +} impl PhysicalDeviceMutableDescriptorTypeFeaturesVALVE { pub fn builder<'a>() -> PhysicalDeviceMutableDescriptorTypeFeaturesVALVEBuilder<'a> { PhysicalDeviceMutableDescriptorTypeFeaturesVALVEBuilder { @@ -49979,13 +51690,16 @@ impl ::std::default::Default for MutableDescriptorTypeCreateInfoVALVE { #[inline] fn default() -> Self { Self { - s_type: StructureType::MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_VALVE, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), mutable_descriptor_type_list_count: u32::default(), p_mutable_descriptor_type_lists: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for MutableDescriptorTypeCreateInfoVALVE { + const STRUCTURE_TYPE: StructureType = StructureType::MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_VALVE; +} impl MutableDescriptorTypeCreateInfoVALVE { pub fn builder<'a>() -> MutableDescriptorTypeCreateInfoVALVEBuilder<'a> { MutableDescriptorTypeCreateInfoVALVEBuilder { @@ -50047,12 +51761,16 @@ impl ::std::default::Default for PhysicalDeviceDepthClipControlFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DEPTH_CLIP_CONTROL_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), depth_clip_control: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceDepthClipControlFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DEPTH_CLIP_CONTROL_FEATURES_EXT; +} impl PhysicalDeviceDepthClipControlFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceDepthClipControlFeaturesEXTBuilder<'a> { PhysicalDeviceDepthClipControlFeaturesEXTBuilder { @@ -50110,12 +51828,16 @@ impl ::std::default::Default for PipelineViewportDepthClipControlCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_VIEWPORT_DEPTH_CLIP_CONTROL_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), negative_one_to_one: Bool32::default(), } } } +unsafe impl TaggedStructure for PipelineViewportDepthClipControlCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_VIEWPORT_DEPTH_CLIP_CONTROL_CREATE_INFO_EXT; +} impl PipelineViewportDepthClipControlCreateInfoEXT { pub fn builder<'a>() -> PipelineViewportDepthClipControlCreateInfoEXTBuilder<'a> { PipelineViewportDepthClipControlCreateInfoEXTBuilder { @@ -50174,12 +51896,16 @@ impl ::std::default::Default for PhysicalDeviceVertexInputDynamicStateFeaturesEX #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VERTEX_INPUT_DYNAMIC_STATE_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), vertex_input_dynamic_state: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceVertexInputDynamicStateFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_VERTEX_INPUT_DYNAMIC_STATE_FEATURES_EXT; +} impl PhysicalDeviceVertexInputDynamicStateFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceVertexInputDynamicStateFeaturesEXTBuilder<'a> { PhysicalDeviceVertexInputDynamicStateFeaturesEXTBuilder { @@ -50240,12 +51966,16 @@ impl ::std::default::Default for PhysicalDeviceExternalMemoryRDMAFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_EXTERNAL_MEMORY_RDMA_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), external_memory_rdma: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceExternalMemoryRDMAFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_EXTERNAL_MEMORY_RDMA_FEATURES_NV; +} impl PhysicalDeviceExternalMemoryRDMAFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceExternalMemoryRDMAFeaturesNVBuilder<'a> { PhysicalDeviceExternalMemoryRDMAFeaturesNVBuilder { @@ -50306,7 +52036,7 @@ impl ::std::default::Default for VertexInputBindingDescription2EXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VERTEX_INPUT_BINDING_DESCRIPTION_2_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), binding: u32::default(), stride: u32::default(), @@ -50315,6 +52045,9 @@ impl ::std::default::Default for VertexInputBindingDescription2EXT { } } } +unsafe impl TaggedStructure for VertexInputBindingDescription2EXT { + const STRUCTURE_TYPE: StructureType = StructureType::VERTEX_INPUT_BINDING_DESCRIPTION_2_EXT; +} impl VertexInputBindingDescription2EXT { pub fn builder<'a>() -> VertexInputBindingDescription2EXTBuilder<'a> { VertexInputBindingDescription2EXTBuilder { @@ -50383,7 +52116,7 @@ impl ::std::default::Default for VertexInputAttributeDescription2EXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VERTEX_INPUT_ATTRIBUTE_DESCRIPTION_2_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), location: u32::default(), binding: u32::default(), @@ -50392,6 +52125,9 @@ impl ::std::default::Default for VertexInputAttributeDescription2EXT { } } } +unsafe impl TaggedStructure for VertexInputAttributeDescription2EXT { + const STRUCTURE_TYPE: StructureType = StructureType::VERTEX_INPUT_ATTRIBUTE_DESCRIPTION_2_EXT; +} impl VertexInputAttributeDescription2EXT { pub fn builder<'a>() -> VertexInputAttributeDescription2EXTBuilder<'a> { VertexInputAttributeDescription2EXTBuilder { @@ -50457,12 +52193,16 @@ impl ::std::default::Default for PhysicalDeviceColorWriteEnableFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_COLOR_WRITE_ENABLE_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), color_write_enable: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceColorWriteEnableFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_COLOR_WRITE_ENABLE_FEATURES_EXT; +} impl PhysicalDeviceColorWriteEnableFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceColorWriteEnableFeaturesEXTBuilder<'a> { PhysicalDeviceColorWriteEnableFeaturesEXTBuilder { @@ -50521,13 +52261,16 @@ impl ::std::default::Default for PipelineColorWriteCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_COLOR_WRITE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), attachment_count: u32::default(), p_color_write_enables: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for PipelineColorWriteCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_COLOR_WRITE_CREATE_INFO_EXT; +} impl PipelineColorWriteCreateInfoEXT { pub fn builder<'a>() -> PipelineColorWriteCreateInfoEXTBuilder<'a> { PipelineColorWriteCreateInfoEXTBuilder { @@ -50587,7 +52330,7 @@ impl ::std::default::Default for MemoryBarrier2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_BARRIER_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_stage_mask: PipelineStageFlags2::default(), src_access_mask: AccessFlags2::default(), @@ -50596,6 +52339,9 @@ impl ::std::default::Default for MemoryBarrier2 { } } } +unsafe impl TaggedStructure for MemoryBarrier2 { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_BARRIER_2; +} impl MemoryBarrier2 { pub fn builder<'a>() -> MemoryBarrier2Builder<'a> { MemoryBarrier2Builder { @@ -50672,7 +52418,7 @@ impl ::std::default::Default for ImageMemoryBarrier2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_MEMORY_BARRIER_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_stage_mask: PipelineStageFlags2::default(), src_access_mask: AccessFlags2::default(), @@ -50687,6 +52433,9 @@ impl ::std::default::Default for ImageMemoryBarrier2 { } } } +unsafe impl TaggedStructure for ImageMemoryBarrier2 { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_MEMORY_BARRIER_2; +} impl ImageMemoryBarrier2 { pub fn builder<'a>() -> ImageMemoryBarrier2Builder<'a> { ImageMemoryBarrier2Builder { @@ -50805,7 +52554,7 @@ impl ::std::default::Default for BufferMemoryBarrier2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_MEMORY_BARRIER_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), src_stage_mask: PipelineStageFlags2::default(), src_access_mask: AccessFlags2::default(), @@ -50819,6 +52568,9 @@ impl ::std::default::Default for BufferMemoryBarrier2 { } } } +unsafe impl TaggedStructure for BufferMemoryBarrier2 { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_MEMORY_BARRIER_2; +} impl BufferMemoryBarrier2 { pub fn builder<'a>() -> BufferMemoryBarrier2Builder<'a> { BufferMemoryBarrier2Builder { @@ -50915,7 +52667,7 @@ impl ::std::default::Default for DependencyInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::DEPENDENCY_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), dependency_flags: DependencyFlags::default(), memory_barrier_count: u32::default(), @@ -50927,6 +52679,9 @@ impl ::std::default::Default for DependencyInfo { } } } +unsafe impl TaggedStructure for DependencyInfo { + const STRUCTURE_TYPE: StructureType = StructureType::DEPENDENCY_INFO; +} impl DependencyInfo { pub fn builder<'a>() -> DependencyInfoBuilder<'a> { DependencyInfoBuilder { @@ -51004,7 +52759,7 @@ impl ::std::default::Default for SemaphoreSubmitInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::SEMAPHORE_SUBMIT_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), semaphore: Semaphore::default(), value: u64::default(), @@ -51013,6 +52768,9 @@ impl ::std::default::Default for SemaphoreSubmitInfo { } } } +unsafe impl TaggedStructure for SemaphoreSubmitInfo { + const STRUCTURE_TYPE: StructureType = StructureType::SEMAPHORE_SUBMIT_INFO; +} impl SemaphoreSubmitInfo { pub fn builder<'a>() -> SemaphoreSubmitInfoBuilder<'a> { SemaphoreSubmitInfoBuilder { @@ -51079,13 +52837,16 @@ impl ::std::default::Default for CommandBufferSubmitInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::COMMAND_BUFFER_SUBMIT_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), command_buffer: CommandBuffer::default(), device_mask: u32::default(), } } } +unsafe impl TaggedStructure for CommandBufferSubmitInfo { + const STRUCTURE_TYPE: StructureType = StructureType::COMMAND_BUFFER_SUBMIT_INFO; +} impl CommandBufferSubmitInfo { pub fn builder<'a>() -> CommandBufferSubmitInfoBuilder<'a> { CommandBufferSubmitInfoBuilder { @@ -51147,7 +52908,7 @@ impl ::std::default::Default for SubmitInfo2 { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBMIT_INFO_2, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: SubmitFlags::default(), wait_semaphore_info_count: u32::default(), @@ -51159,6 +52920,9 @@ impl ::std::default::Default for SubmitInfo2 { } } } +unsafe impl TaggedStructure for SubmitInfo2 { + const STRUCTURE_TYPE: StructureType = StructureType::SUBMIT_INFO_2; +} impl SubmitInfo2 { pub fn builder<'a>() -> SubmitInfo2Builder<'a> { SubmitInfo2Builder { @@ -51248,12 +53012,15 @@ impl ::std::default::Default for QueueFamilyCheckpointProperties2NV { #[inline] fn default() -> Self { Self { - s_type: StructureType::QUEUE_FAMILY_CHECKPOINT_PROPERTIES_2_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), checkpoint_execution_stage_mask: PipelineStageFlags2::default(), } } } +unsafe impl TaggedStructure for QueueFamilyCheckpointProperties2NV { + const STRUCTURE_TYPE: StructureType = StructureType::QUEUE_FAMILY_CHECKPOINT_PROPERTIES_2_NV; +} impl QueueFamilyCheckpointProperties2NV { pub fn builder<'a>() -> QueueFamilyCheckpointProperties2NVBuilder<'a> { QueueFamilyCheckpointProperties2NVBuilder { @@ -51310,13 +53077,16 @@ impl ::std::default::Default for CheckpointData2NV { #[inline] fn default() -> Self { Self { - s_type: StructureType::CHECKPOINT_DATA_2_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), stage: PipelineStageFlags2::default(), p_checkpoint_marker: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for CheckpointData2NV { + const STRUCTURE_TYPE: StructureType = StructureType::CHECKPOINT_DATA_2_NV; +} impl CheckpointData2NV { pub fn builder<'a>() -> CheckpointData2NVBuilder<'a> { CheckpointData2NVBuilder { @@ -51372,12 +53142,15 @@ impl ::std::default::Default for PhysicalDeviceSynchronization2Features { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), synchronization2: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceSynchronization2Features { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURES; +} impl PhysicalDeviceSynchronization2Features { pub fn builder<'a>() -> PhysicalDeviceSynchronization2FeaturesBuilder<'a> { PhysicalDeviceSynchronization2FeaturesBuilder { @@ -51434,7 +53207,7 @@ impl ::std::default::Default for PhysicalDevicePrimitivesGeneratedQueryFeaturesE #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PRIMITIVES_GENERATED_QUERY_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), primitives_generated_query: Bool32::default(), primitives_generated_query_with_rasterizer_discard: Bool32::default(), @@ -51442,6 +53215,10 @@ impl ::std::default::Default for PhysicalDevicePrimitivesGeneratedQueryFeaturesE } } } +unsafe impl TaggedStructure for PhysicalDevicePrimitivesGeneratedQueryFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PRIMITIVES_GENERATED_QUERY_FEATURES_EXT; +} impl PhysicalDevicePrimitivesGeneratedQueryFeaturesEXT { pub fn builder<'a>() -> PhysicalDevicePrimitivesGeneratedQueryFeaturesEXTBuilder<'a> { PhysicalDevicePrimitivesGeneratedQueryFeaturesEXTBuilder { @@ -51521,13 +53298,16 @@ impl ::std::default::Default for PhysicalDeviceMultisampledRenderToSingleSampled #[inline] fn default() -> Self { Self { - s_type: - StructureType::PHYSICAL_DEVICE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), multisampled_render_to_single_sampled: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_FEATURES_EXT; +} impl PhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXTBuilder<'a> { PhysicalDeviceMultisampledRenderToSingleSampledFeaturesEXTBuilder { @@ -51599,12 +53379,15 @@ impl ::std::default::Default for SubpassResolvePerformanceQueryEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBPASS_RESOLVE_PERFORMANCE_QUERY_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), optimal: Bool32::default(), } } } +unsafe impl TaggedStructure for SubpassResolvePerformanceQueryEXT { + const STRUCTURE_TYPE: StructureType = StructureType::SUBPASS_RESOLVE_PERFORMANCE_QUERY_EXT; +} impl SubpassResolvePerformanceQueryEXT { pub fn builder<'a>() -> SubpassResolvePerformanceQueryEXTBuilder<'a> { SubpassResolvePerformanceQueryEXTBuilder { @@ -51658,13 +53441,17 @@ impl ::std::default::Default for MultisampledRenderToSingleSampledInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), multisampled_render_to_single_sampled_enable: Bool32::default(), rasterization_samples: SampleCountFlags::default(), } } } +unsafe impl TaggedStructure for MultisampledRenderToSingleSampledInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::MULTISAMPLED_RENDER_TO_SINGLE_SAMPLED_INFO_EXT; +} impl MultisampledRenderToSingleSampledInfoEXT { pub fn builder<'a>() -> MultisampledRenderToSingleSampledInfoEXTBuilder<'a> { MultisampledRenderToSingleSampledInfoEXTBuilder { @@ -51728,12 +53515,15 @@ impl ::std::default::Default for VideoQueueFamilyProperties2KHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_QUEUE_FAMILY_PROPERTIES_2_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), video_codec_operations: VideoCodecOperationFlagsKHR::default(), } } } +unsafe impl TaggedStructure for VideoQueueFamilyProperties2KHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_QUEUE_FAMILY_PROPERTIES_2_KHR; +} impl VideoQueueFamilyProperties2KHR { pub fn builder<'a>() -> VideoQueueFamilyProperties2KHRBuilder<'a> { VideoQueueFamilyProperties2KHRBuilder { @@ -51789,12 +53579,16 @@ impl ::std::default::Default for QueueFamilyQueryResultStatusProperties2KHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::QUEUE_FAMILY_QUERY_RESULT_STATUS_PROPERTIES_2_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), query_result_status_support: Bool32::default(), } } } +unsafe impl TaggedStructure for QueueFamilyQueryResultStatusProperties2KHR { + const STRUCTURE_TYPE: StructureType = + StructureType::QUEUE_FAMILY_QUERY_RESULT_STATUS_PROPERTIES_2_KHR; +} impl QueueFamilyQueryResultStatusProperties2KHR { pub fn builder<'a>() -> QueueFamilyQueryResultStatusProperties2KHRBuilder<'a> { QueueFamilyQueryResultStatusProperties2KHRBuilder { @@ -51851,13 +53645,16 @@ impl ::std::default::Default for VideoProfilesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_PROFILES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), profile_count: u32::default(), p_profiles: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for VideoProfilesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_PROFILES_KHR; +} impl VideoProfilesKHR { pub fn builder<'a>() -> VideoProfilesKHRBuilder<'a> { VideoProfilesKHRBuilder { @@ -51917,12 +53714,15 @@ impl ::std::default::Default for PhysicalDeviceVideoFormatInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_VIDEO_FORMAT_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), image_usage: ImageUsageFlags::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceVideoFormatInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_VIDEO_FORMAT_INFO_KHR; +} impl PhysicalDeviceVideoFormatInfoKHR { pub fn builder<'a>() -> PhysicalDeviceVideoFormatInfoKHRBuilder<'a> { PhysicalDeviceVideoFormatInfoKHRBuilder { @@ -51996,7 +53796,7 @@ impl ::std::default::Default for VideoFormatPropertiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_FORMAT_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), format: Format::default(), component_mapping: ComponentMapping::default(), @@ -52007,6 +53807,9 @@ impl ::std::default::Default for VideoFormatPropertiesKHR { } } } +unsafe impl TaggedStructure for VideoFormatPropertiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_FORMAT_PROPERTIES_KHR; +} impl VideoFormatPropertiesKHR { pub fn builder<'a>() -> VideoFormatPropertiesKHRBuilder<'a> { VideoFormatPropertiesKHRBuilder { @@ -52085,7 +53888,7 @@ impl ::std::default::Default for VideoProfileKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_PROFILE_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), video_codec_operation: VideoCodecOperationFlagsKHR::default(), chroma_subsampling: VideoChromaSubsamplingFlagsKHR::default(), @@ -52094,6 +53897,9 @@ impl ::std::default::Default for VideoProfileKHR { } } } +unsafe impl TaggedStructure for VideoProfileKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_PROFILE_KHR; +} impl VideoProfileKHR { pub fn builder<'a>() -> VideoProfileKHRBuilder<'a> { VideoProfileKHRBuilder { @@ -52190,7 +53996,7 @@ impl ::std::default::Default for VideoCapabilitiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_CAPABILITIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), capability_flags: VideoCapabilityFlagsKHR::default(), min_bitstream_buffer_offset_alignment: DeviceSize::default(), @@ -52204,6 +54010,9 @@ impl ::std::default::Default for VideoCapabilitiesKHR { } } } +unsafe impl TaggedStructure for VideoCapabilitiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_CAPABILITIES_KHR; +} impl VideoCapabilitiesKHR { pub fn builder<'a>() -> VideoCapabilitiesKHRBuilder<'a> { VideoCapabilitiesKHRBuilder { @@ -52325,13 +54134,16 @@ impl ::std::default::Default for VideoGetMemoryPropertiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_GET_MEMORY_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), memory_bind_index: u32::default(), p_memory_requirements: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for VideoGetMemoryPropertiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_GET_MEMORY_PROPERTIES_KHR; +} impl VideoGetMemoryPropertiesKHR { pub fn builder<'a>() -> VideoGetMemoryPropertiesKHRBuilder<'a> { VideoGetMemoryPropertiesKHRBuilder { @@ -52390,7 +54202,7 @@ impl ::std::default::Default for VideoBindMemoryKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_BIND_MEMORY_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), memory_bind_index: u32::default(), memory: DeviceMemory::default(), @@ -52399,6 +54211,9 @@ impl ::std::default::Default for VideoBindMemoryKHR { } } } +unsafe impl TaggedStructure for VideoBindMemoryKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_BIND_MEMORY_KHR; +} impl VideoBindMemoryKHR { pub fn builder<'a>() -> VideoBindMemoryKHRBuilder<'a> { VideoBindMemoryKHRBuilder { @@ -52467,7 +54282,7 @@ impl ::std::default::Default for VideoPictureResourceKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_PICTURE_RESOURCE_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), coded_offset: Offset2D::default(), coded_extent: Extent2D::default(), @@ -52476,6 +54291,9 @@ impl ::std::default::Default for VideoPictureResourceKHR { } } } +unsafe impl TaggedStructure for VideoPictureResourceKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_PICTURE_RESOURCE_KHR; +} impl VideoPictureResourceKHR { pub fn builder<'a>() -> VideoPictureResourceKHRBuilder<'a> { VideoPictureResourceKHRBuilder { @@ -52542,13 +54360,16 @@ impl ::std::default::Default for VideoReferenceSlotKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_REFERENCE_SLOT_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), slot_index: i8::default(), p_picture_resource: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for VideoReferenceSlotKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_REFERENCE_SLOT_KHR; +} impl VideoReferenceSlotKHR { pub fn builder<'a>() -> VideoReferenceSlotKHRBuilder<'a> { VideoReferenceSlotKHRBuilder { @@ -52619,12 +54440,15 @@ impl ::std::default::Default for VideoDecodeCapabilitiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_CAPABILITIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), flags: VideoDecodeCapabilityFlagsKHR::default(), } } } +unsafe impl TaggedStructure for VideoDecodeCapabilitiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_CAPABILITIES_KHR; +} impl VideoDecodeCapabilitiesKHR { pub fn builder<'a>() -> VideoDecodeCapabilitiesKHRBuilder<'a> { VideoDecodeCapabilitiesKHRBuilder { @@ -52699,7 +54523,7 @@ impl ::std::default::Default for VideoDecodeInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: VideoDecodeFlagsKHR::default(), src_buffer: Buffer::default(), @@ -52712,6 +54536,9 @@ impl ::std::default::Default for VideoDecodeInfoKHR { } } } +unsafe impl TaggedStructure for VideoDecodeInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_INFO_KHR; +} impl VideoDecodeInfoKHR { pub fn builder<'a>() -> VideoDecodeInfoKHRBuilder<'a> { VideoDecodeInfoKHRBuilder { @@ -52809,13 +54636,16 @@ impl ::std::default::Default for VideoDecodeH264ProfileEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H264_PROFILE_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), std_profile_idc: StdVideoH264ProfileIdc::default(), picture_layout: VideoDecodeH264PictureLayoutFlagsEXT::default(), } } } +unsafe impl TaggedStructure for VideoDecodeH264ProfileEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_H264_PROFILE_EXT; +} impl VideoDecodeH264ProfileEXT { pub fn builder<'a>() -> VideoDecodeH264ProfileEXTBuilder<'a> { VideoDecodeH264ProfileEXTBuilder { @@ -52876,13 +54706,16 @@ impl ::std::default::Default for VideoDecodeH264CapabilitiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H264_CAPABILITIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_level: StdVideoH264Level::default(), field_offset_granularity: Offset2D::default(), } } } +unsafe impl TaggedStructure for VideoDecodeH264CapabilitiesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_H264_CAPABILITIES_EXT; +} impl VideoDecodeH264CapabilitiesEXT { pub fn builder<'a>() -> VideoDecodeH264CapabilitiesEXTBuilder<'a> { VideoDecodeH264CapabilitiesEXTBuilder { @@ -52943,7 +54776,7 @@ impl ::std::default::Default for VideoDecodeH264SessionParametersAddInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), sps_std_count: u32::default(), p_sps_std: ::std::ptr::null(), @@ -52952,6 +54785,10 @@ impl ::std::default::Default for VideoDecodeH264SessionParametersAddInfoEXT { } } } +unsafe impl TaggedStructure for VideoDecodeH264SessionParametersAddInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_DECODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT; +} impl VideoDecodeH264SessionParametersAddInfoEXT { pub fn builder<'a>() -> VideoDecodeH264SessionParametersAddInfoEXTBuilder<'a> { VideoDecodeH264SessionParametersAddInfoEXTBuilder { @@ -53019,7 +54856,7 @@ impl ::std::default::Default for VideoDecodeH264SessionParametersCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), max_sps_std_count: u32::default(), max_pps_std_count: u32::default(), @@ -53027,6 +54864,10 @@ impl ::std::default::Default for VideoDecodeH264SessionParametersCreateInfoEXT { } } } +unsafe impl TaggedStructure for VideoDecodeH264SessionParametersCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_DECODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT; +} impl VideoDecodeH264SessionParametersCreateInfoEXT { pub fn builder<'a>() -> VideoDecodeH264SessionParametersCreateInfoEXTBuilder<'a> { VideoDecodeH264SessionParametersCreateInfoEXTBuilder { @@ -53100,7 +54941,7 @@ impl ::std::default::Default for VideoDecodeH264PictureInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H264_PICTURE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_std_picture_info: ::std::ptr::null(), slices_count: u32::default(), @@ -53108,6 +54949,9 @@ impl ::std::default::Default for VideoDecodeH264PictureInfoEXT { } } } +unsafe impl TaggedStructure for VideoDecodeH264PictureInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_H264_PICTURE_INFO_EXT; +} impl VideoDecodeH264PictureInfoEXT { pub fn builder<'a>() -> VideoDecodeH264PictureInfoEXTBuilder<'a> { VideoDecodeH264PictureInfoEXTBuilder { @@ -53181,12 +55025,15 @@ impl ::std::default::Default for VideoDecodeH264DpbSlotInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H264_DPB_SLOT_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_std_reference_info: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for VideoDecodeH264DpbSlotInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_H264_DPB_SLOT_INFO_EXT; +} impl VideoDecodeH264DpbSlotInfoEXT { pub fn builder<'a>() -> VideoDecodeH264DpbSlotInfoEXTBuilder<'a> { VideoDecodeH264DpbSlotInfoEXTBuilder { @@ -53242,12 +55089,15 @@ impl ::std::default::Default for VideoDecodeH264MvcEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H264_MVC_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_std_mvc: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for VideoDecodeH264MvcEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_H264_MVC_EXT; +} impl VideoDecodeH264MvcEXT { pub fn builder<'a>() -> VideoDecodeH264MvcEXTBuilder<'a> { VideoDecodeH264MvcEXTBuilder { @@ -53300,12 +55150,15 @@ impl ::std::default::Default for VideoDecodeH265ProfileEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H265_PROFILE_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), std_profile_idc: StdVideoH265ProfileIdc::default(), } } } +unsafe impl TaggedStructure for VideoDecodeH265ProfileEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_H265_PROFILE_EXT; +} impl VideoDecodeH265ProfileEXT { pub fn builder<'a>() -> VideoDecodeH265ProfileEXTBuilder<'a> { VideoDecodeH265ProfileEXTBuilder { @@ -53360,12 +55213,15 @@ impl ::std::default::Default for VideoDecodeH265CapabilitiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H265_CAPABILITIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), max_level: StdVideoH265Level::default(), } } } +unsafe impl TaggedStructure for VideoDecodeH265CapabilitiesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_H265_CAPABILITIES_EXT; +} impl VideoDecodeH265CapabilitiesEXT { pub fn builder<'a>() -> VideoDecodeH265CapabilitiesEXTBuilder<'a> { VideoDecodeH265CapabilitiesEXTBuilder { @@ -53423,7 +55279,7 @@ impl ::std::default::Default for VideoDecodeH265SessionParametersAddInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), vps_std_count: u32::default(), p_vps_std: ::std::ptr::null(), @@ -53434,6 +55290,10 @@ impl ::std::default::Default for VideoDecodeH265SessionParametersAddInfoEXT { } } } +unsafe impl TaggedStructure for VideoDecodeH265SessionParametersAddInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT; +} impl VideoDecodeH265SessionParametersAddInfoEXT { pub fn builder<'a>() -> VideoDecodeH265SessionParametersAddInfoEXTBuilder<'a> { VideoDecodeH265SessionParametersAddInfoEXTBuilder { @@ -53508,7 +55368,7 @@ impl ::std::default::Default for VideoDecodeH265SessionParametersCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), max_vps_std_count: u32::default(), max_sps_std_count: u32::default(), @@ -53517,6 +55377,10 @@ impl ::std::default::Default for VideoDecodeH265SessionParametersCreateInfoEXT { } } } +unsafe impl TaggedStructure for VideoDecodeH265SessionParametersCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_DECODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT; +} impl VideoDecodeH265SessionParametersCreateInfoEXT { pub fn builder<'a>() -> VideoDecodeH265SessionParametersCreateInfoEXTBuilder<'a> { VideoDecodeH265SessionParametersCreateInfoEXTBuilder { @@ -53595,7 +55459,7 @@ impl ::std::default::Default for VideoDecodeH265PictureInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H265_PICTURE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_std_picture_info: ::std::ptr::null_mut(), slices_count: u32::default(), @@ -53603,6 +55467,9 @@ impl ::std::default::Default for VideoDecodeH265PictureInfoEXT { } } } +unsafe impl TaggedStructure for VideoDecodeH265PictureInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_H265_PICTURE_INFO_EXT; +} impl VideoDecodeH265PictureInfoEXT { pub fn builder<'a>() -> VideoDecodeH265PictureInfoEXTBuilder<'a> { VideoDecodeH265PictureInfoEXTBuilder { @@ -53664,12 +55531,15 @@ impl ::std::default::Default for VideoDecodeH265DpbSlotInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_DECODE_H265_DPB_SLOT_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_std_reference_info: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for VideoDecodeH265DpbSlotInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_DECODE_H265_DPB_SLOT_INFO_EXT; +} impl VideoDecodeH265DpbSlotInfoEXT { pub fn builder<'a>() -> VideoDecodeH265DpbSlotInfoEXTBuilder<'a> { VideoDecodeH265DpbSlotInfoEXTBuilder { @@ -53733,7 +55603,7 @@ impl ::std::default::Default for VideoSessionCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_SESSION_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), queue_family_index: u32::default(), flags: VideoSessionCreateFlagsKHR::default(), @@ -53747,6 +55617,9 @@ impl ::std::default::Default for VideoSessionCreateInfoKHR { } } } +unsafe impl TaggedStructure for VideoSessionCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_SESSION_CREATE_INFO_KHR; +} impl VideoSessionCreateInfoKHR { pub fn builder<'a>() -> VideoSessionCreateInfoKHRBuilder<'a> { VideoSessionCreateInfoKHRBuilder { @@ -53844,13 +55717,16 @@ impl ::std::default::Default for VideoSessionParametersCreateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_SESSION_PARAMETERS_CREATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), video_session_parameters_template: VideoSessionParametersKHR::default(), video_session: VideoSessionKHR::default(), } } } +unsafe impl TaggedStructure for VideoSessionParametersCreateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_SESSION_PARAMETERS_CREATE_INFO_KHR; +} impl VideoSessionParametersCreateInfoKHR { pub fn builder<'a>() -> VideoSessionParametersCreateInfoKHRBuilder<'a> { VideoSessionParametersCreateInfoKHRBuilder { @@ -53927,12 +55803,15 @@ impl ::std::default::Default for VideoSessionParametersUpdateInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_SESSION_PARAMETERS_UPDATE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), update_sequence_count: u32::default(), } } } +unsafe impl TaggedStructure for VideoSessionParametersUpdateInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_SESSION_PARAMETERS_UPDATE_INFO_KHR; +} impl VideoSessionParametersUpdateInfoKHR { pub fn builder<'a>() -> VideoSessionParametersUpdateInfoKHRBuilder<'a> { VideoSessionParametersUpdateInfoKHRBuilder { @@ -54006,7 +55885,7 @@ impl ::std::default::Default for VideoBeginCodingInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_BEGIN_CODING_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: VideoBeginCodingFlagsKHR::default(), codec_quality_preset: VideoCodingQualityPresetFlagsKHR::default(), @@ -54017,6 +55896,9 @@ impl ::std::default::Default for VideoBeginCodingInfoKHR { } } } +unsafe impl TaggedStructure for VideoBeginCodingInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_BEGIN_CODING_INFO_KHR; +} impl VideoBeginCodingInfoKHR { pub fn builder<'a>() -> VideoBeginCodingInfoKHRBuilder<'a> { VideoBeginCodingInfoKHRBuilder { @@ -54094,12 +55976,15 @@ impl ::std::default::Default for VideoEndCodingInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_END_CODING_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: VideoEndCodingFlagsKHR::default(), } } } +unsafe impl TaggedStructure for VideoEndCodingInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_END_CODING_INFO_KHR; +} impl VideoEndCodingInfoKHR { pub fn builder<'a>() -> VideoEndCodingInfoKHRBuilder<'a> { VideoEndCodingInfoKHRBuilder { @@ -54150,12 +56035,15 @@ impl ::std::default::Default for VideoCodingControlInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_CODING_CONTROL_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: VideoCodingControlFlagsKHR::default(), } } } +unsafe impl TaggedStructure for VideoCodingControlInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_CODING_CONTROL_INFO_KHR; +} impl VideoCodingControlInfoKHR { pub fn builder<'a>() -> VideoCodingControlInfoKHRBuilder<'a> { VideoCodingControlInfoKHRBuilder { @@ -54230,7 +56118,7 @@ impl ::std::default::Default for VideoEncodeInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: VideoEncodeFlagsKHR::default(), quality_level: u32::default(), @@ -54245,6 +56133,9 @@ impl ::std::default::Default for VideoEncodeInfoKHR { } } } +unsafe impl TaggedStructure for VideoEncodeInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_INFO_KHR; +} impl VideoEncodeInfoKHR { pub fn builder<'a>() -> VideoEncodeInfoKHRBuilder<'a> { VideoEncodeInfoKHRBuilder { @@ -54360,7 +56251,7 @@ impl ::std::default::Default for VideoEncodeRateControlInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_RATE_CONTROL_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: VideoEncodeRateControlFlagsKHR::default(), rate_control_mode: VideoEncodeRateControlModeFlagsKHR::default(), @@ -54369,6 +56260,9 @@ impl ::std::default::Default for VideoEncodeRateControlInfoKHR { } } } +unsafe impl TaggedStructure for VideoEncodeRateControlInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_RATE_CONTROL_INFO_KHR; +} impl VideoEncodeRateControlInfoKHR { pub fn builder<'a>() -> VideoEncodeRateControlInfoKHRBuilder<'a> { VideoEncodeRateControlInfoKHRBuilder { @@ -54458,7 +56352,7 @@ impl ::std::default::Default for VideoEncodeRateControlLayerInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_RATE_CONTROL_LAYER_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), average_bitrate: u32::default(), max_bitrate: u32::default(), @@ -54469,6 +56363,9 @@ impl ::std::default::Default for VideoEncodeRateControlLayerInfoKHR { } } } +unsafe impl TaggedStructure for VideoEncodeRateControlLayerInfoKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_RATE_CONTROL_LAYER_INFO_KHR; +} impl VideoEncodeRateControlLayerInfoKHR { pub fn builder<'a>() -> VideoEncodeRateControlLayerInfoKHRBuilder<'a> { VideoEncodeRateControlLayerInfoKHRBuilder { @@ -54571,7 +56468,7 @@ impl ::std::default::Default for VideoEncodeCapabilitiesKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_CAPABILITIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), flags: VideoEncodeCapabilityFlagsKHR::default(), rate_control_modes: VideoEncodeRateControlModeFlagsKHR::default(), @@ -54581,6 +56478,9 @@ impl ::std::default::Default for VideoEncodeCapabilitiesKHR { } } } +unsafe impl TaggedStructure for VideoEncodeCapabilitiesKHR { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_CAPABILITIES_KHR; +} impl VideoEncodeCapabilitiesKHR { pub fn builder<'a>() -> VideoEncodeCapabilitiesKHRBuilder<'a> { VideoEncodeCapabilitiesKHRBuilder { @@ -54684,7 +56584,7 @@ impl ::std::default::Default for VideoEncodeH264CapabilitiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_CAPABILITIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), flags: VideoEncodeH264CapabilityFlagsEXT::default(), input_mode_flags: VideoEncodeH264InputModeFlagsEXT::default(), @@ -54700,6 +56600,9 @@ impl ::std::default::Default for VideoEncodeH264CapabilitiesEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH264CapabilitiesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H264_CAPABILITIES_EXT; +} impl VideoEncodeH264CapabilitiesEXT { pub fn builder<'a>() -> VideoEncodeH264CapabilitiesEXTBuilder<'a> { VideoEncodeH264CapabilitiesEXTBuilder { @@ -54818,7 +56721,7 @@ impl ::std::default::Default for VideoEncodeH264SessionParametersAddInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), sps_std_count: u32::default(), p_sps_std: ::std::ptr::null(), @@ -54827,6 +56730,10 @@ impl ::std::default::Default for VideoEncodeH264SessionParametersAddInfoEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH264SessionParametersAddInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_ENCODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT; +} impl VideoEncodeH264SessionParametersAddInfoEXT { pub fn builder<'a>() -> VideoEncodeH264SessionParametersAddInfoEXTBuilder<'a> { VideoEncodeH264SessionParametersAddInfoEXTBuilder { @@ -54894,7 +56801,7 @@ impl ::std::default::Default for VideoEncodeH264SessionParametersCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), max_sps_std_count: u32::default(), max_pps_std_count: u32::default(), @@ -54902,6 +56809,10 @@ impl ::std::default::Default for VideoEncodeH264SessionParametersCreateInfoEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH264SessionParametersCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_ENCODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT; +} impl VideoEncodeH264SessionParametersCreateInfoEXT { pub fn builder<'a>() -> VideoEncodeH264SessionParametersCreateInfoEXTBuilder<'a> { VideoEncodeH264SessionParametersCreateInfoEXTBuilder { @@ -54974,13 +56885,16 @@ impl ::std::default::Default for VideoEncodeH264DpbSlotInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_DPB_SLOT_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), slot_index: i8::default(), p_std_reference_info: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for VideoEncodeH264DpbSlotInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H264_DPB_SLOT_INFO_EXT; +} impl VideoEncodeH264DpbSlotInfoEXT { pub fn builder<'a>() -> VideoEncodeH264DpbSlotInfoEXTBuilder<'a> { VideoEncodeH264DpbSlotInfoEXTBuilder { @@ -55042,7 +56956,7 @@ impl ::std::default::Default for VideoEncodeH264VclFrameInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_VCL_FRAME_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_reference_final_lists: ::std::ptr::null(), nalu_slice_entry_count: u32::default(), @@ -55051,6 +56965,9 @@ impl ::std::default::Default for VideoEncodeH264VclFrameInfoEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH264VclFrameInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H264_VCL_FRAME_INFO_EXT; +} impl VideoEncodeH264VclFrameInfoEXT { pub fn builder<'a>() -> VideoEncodeH264VclFrameInfoEXTBuilder<'a> { VideoEncodeH264VclFrameInfoEXTBuilder { @@ -55127,7 +57044,7 @@ impl ::std::default::Default for VideoEncodeH264ReferenceListsEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_REFERENCE_LISTS_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), reference_list0_entry_count: u8::default(), p_reference_list0_entries: ::std::ptr::null(), @@ -55137,6 +57054,9 @@ impl ::std::default::Default for VideoEncodeH264ReferenceListsEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH264ReferenceListsEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H264_REFERENCE_LISTS_EXT; +} impl VideoEncodeH264ReferenceListsEXT { pub fn builder<'a>() -> VideoEncodeH264ReferenceListsEXTBuilder<'a> { VideoEncodeH264ReferenceListsEXTBuilder { @@ -55211,7 +57131,7 @@ impl ::std::default::Default for VideoEncodeH264EmitPictureParametersEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_EMIT_PICTURE_PARAMETERS_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), sps_id: u8::default(), emit_sps_enable: Bool32::default(), @@ -55220,6 +57140,10 @@ impl ::std::default::Default for VideoEncodeH264EmitPictureParametersEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH264EmitPictureParametersEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_ENCODE_H264_EMIT_PICTURE_PARAMETERS_EXT; +} impl VideoEncodeH264EmitPictureParametersEXT { pub fn builder<'a>() -> VideoEncodeH264EmitPictureParametersEXTBuilder<'a> { VideoEncodeH264EmitPictureParametersEXTBuilder { @@ -55283,12 +57207,15 @@ impl ::std::default::Default for VideoEncodeH264ProfileEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_PROFILE_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), std_profile_idc: StdVideoH264ProfileIdc::default(), } } } +unsafe impl TaggedStructure for VideoEncodeH264ProfileEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H264_PROFILE_EXT; +} impl VideoEncodeH264ProfileEXT { pub fn builder<'a>() -> VideoEncodeH264ProfileEXTBuilder<'a> { VideoEncodeH264ProfileEXTBuilder { @@ -55345,7 +57272,7 @@ impl ::std::default::Default for VideoEncodeH264NaluSliceEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_NALU_SLICE_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), mb_count: u32::default(), p_reference_final_lists: ::std::ptr::null(), @@ -55353,6 +57280,9 @@ impl ::std::default::Default for VideoEncodeH264NaluSliceEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH264NaluSliceEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H264_NALU_SLICE_EXT; +} impl VideoEncodeH264NaluSliceEXT { pub fn builder<'a>() -> VideoEncodeH264NaluSliceEXTBuilder<'a> { VideoEncodeH264NaluSliceEXTBuilder { @@ -55420,7 +57350,7 @@ impl ::std::default::Default for VideoEncodeH264RateControlInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_RATE_CONTROL_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), gop_frame_count: u32::default(), idr_period: u32::default(), @@ -55430,6 +57360,9 @@ impl ::std::default::Default for VideoEncodeH264RateControlInfoEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH264RateControlInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H264_RATE_CONTROL_INFO_EXT; +} impl VideoEncodeH264RateControlInfoEXT { pub fn builder<'a>() -> VideoEncodeH264RateControlInfoEXTBuilder<'a> { VideoEncodeH264RateControlInfoEXTBuilder { @@ -55625,7 +57558,7 @@ impl ::std::default::Default for VideoEncodeH264RateControlLayerInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H264_RATE_CONTROL_LAYER_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), temporal_layer_id: u8::default(), use_initial_rc_qp: Bool32::default(), @@ -55639,6 +57572,10 @@ impl ::std::default::Default for VideoEncodeH264RateControlLayerInfoEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH264RateControlLayerInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_ENCODE_H264_RATE_CONTROL_LAYER_INFO_EXT; +} impl VideoEncodeH264RateControlLayerInfoEXT { pub fn builder<'a>() -> VideoEncodeH264RateControlLayerInfoEXTBuilder<'a> { VideoEncodeH264RateControlLayerInfoEXTBuilder { @@ -55753,7 +57690,7 @@ impl ::std::default::Default for VideoEncodeH265CapabilitiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_CAPABILITIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), flags: VideoEncodeH265CapabilityFlagsEXT::default(), input_mode_flags: VideoEncodeH265InputModeFlagsEXT::default(), @@ -55778,6 +57715,9 @@ impl ::std::default::Default for VideoEncodeH265CapabilitiesEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH265CapabilitiesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H265_CAPABILITIES_EXT; +} impl VideoEncodeH265CapabilitiesEXT { pub fn builder<'a>() -> VideoEncodeH265CapabilitiesEXTBuilder<'a> { VideoEncodeH265CapabilitiesEXTBuilder { @@ -55974,7 +57914,7 @@ impl ::std::default::Default for VideoEncodeH265SessionParametersAddInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), vps_std_count: u32::default(), p_vps_std: ::std::ptr::null(), @@ -55985,6 +57925,10 @@ impl ::std::default::Default for VideoEncodeH265SessionParametersAddInfoEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH265SessionParametersAddInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_ENCODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT; +} impl VideoEncodeH265SessionParametersAddInfoEXT { pub fn builder<'a>() -> VideoEncodeH265SessionParametersAddInfoEXTBuilder<'a> { VideoEncodeH265SessionParametersAddInfoEXTBuilder { @@ -56059,7 +58003,7 @@ impl ::std::default::Default for VideoEncodeH265SessionParametersCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), max_vps_std_count: u32::default(), max_sps_std_count: u32::default(), @@ -56068,6 +58012,10 @@ impl ::std::default::Default for VideoEncodeH265SessionParametersCreateInfoEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH265SessionParametersCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_ENCODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT; +} impl VideoEncodeH265SessionParametersCreateInfoEXT { pub fn builder<'a>() -> VideoEncodeH265SessionParametersCreateInfoEXTBuilder<'a> { VideoEncodeH265SessionParametersCreateInfoEXTBuilder { @@ -56147,7 +58095,7 @@ impl ::std::default::Default for VideoEncodeH265VclFrameInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_reference_final_lists: ::std::ptr::null(), nalu_slice_segment_entry_count: u32::default(), @@ -56156,6 +58104,9 @@ impl ::std::default::Default for VideoEncodeH265VclFrameInfoEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH265VclFrameInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT; +} impl VideoEncodeH265VclFrameInfoEXT { pub fn builder<'a>() -> VideoEncodeH265VclFrameInfoEXTBuilder<'a> { VideoEncodeH265VclFrameInfoEXTBuilder { @@ -56233,7 +58184,7 @@ impl ::std::default::Default for VideoEncodeH265EmitPictureParametersEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_EMIT_PICTURE_PARAMETERS_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), vps_id: u8::default(), sps_id: u8::default(), @@ -56244,6 +58195,10 @@ impl ::std::default::Default for VideoEncodeH265EmitPictureParametersEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH265EmitPictureParametersEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_ENCODE_H265_EMIT_PICTURE_PARAMETERS_EXT; +} impl VideoEncodeH265EmitPictureParametersEXT { pub fn builder<'a>() -> VideoEncodeH265EmitPictureParametersEXTBuilder<'a> { VideoEncodeH265EmitPictureParametersEXTBuilder { @@ -56319,7 +58274,7 @@ impl ::std::default::Default for VideoEncodeH265NaluSliceSegmentEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_NALU_SLICE_SEGMENT_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), ctb_count: u32::default(), p_reference_final_lists: ::std::ptr::null(), @@ -56327,6 +58282,9 @@ impl ::std::default::Default for VideoEncodeH265NaluSliceSegmentEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH265NaluSliceSegmentEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H265_NALU_SLICE_SEGMENT_EXT; +} impl VideoEncodeH265NaluSliceSegmentEXT { pub fn builder<'a>() -> VideoEncodeH265NaluSliceSegmentEXTBuilder<'a> { VideoEncodeH265NaluSliceSegmentEXTBuilder { @@ -56397,7 +58355,7 @@ impl ::std::default::Default for VideoEncodeH265RateControlInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_RATE_CONTROL_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), gop_frame_count: u32::default(), idr_period: u32::default(), @@ -56407,6 +58365,9 @@ impl ::std::default::Default for VideoEncodeH265RateControlInfoEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH265RateControlInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H265_RATE_CONTROL_INFO_EXT; +} impl VideoEncodeH265RateControlInfoEXT { pub fn builder<'a>() -> VideoEncodeH265RateControlInfoEXTBuilder<'a> { VideoEncodeH265RateControlInfoEXTBuilder { @@ -56602,7 +58563,7 @@ impl ::std::default::Default for VideoEncodeH265RateControlLayerInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_RATE_CONTROL_LAYER_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), temporal_id: u8::default(), use_initial_rc_qp: Bool32::default(), @@ -56616,6 +58577,10 @@ impl ::std::default::Default for VideoEncodeH265RateControlLayerInfoEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH265RateControlLayerInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::VIDEO_ENCODE_H265_RATE_CONTROL_LAYER_INFO_EXT; +} impl VideoEncodeH265RateControlLayerInfoEXT { pub fn builder<'a>() -> VideoEncodeH265RateControlLayerInfoEXTBuilder<'a> { VideoEncodeH265RateControlLayerInfoEXTBuilder { @@ -56711,12 +58676,15 @@ impl ::std::default::Default for VideoEncodeH265ProfileEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_PROFILE_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), std_profile_idc: StdVideoH265ProfileIdc::default(), } } } +unsafe impl TaggedStructure for VideoEncodeH265ProfileEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H265_PROFILE_EXT; +} impl VideoEncodeH265ProfileEXT { pub fn builder<'a>() -> VideoEncodeH265ProfileEXTBuilder<'a> { VideoEncodeH265ProfileEXTBuilder { @@ -56772,13 +58740,16 @@ impl ::std::default::Default for VideoEncodeH265DpbSlotInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_DPB_SLOT_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), slot_index: i8::default(), p_std_reference_info: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for VideoEncodeH265DpbSlotInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H265_DPB_SLOT_INFO_EXT; +} impl VideoEncodeH265DpbSlotInfoEXT { pub fn builder<'a>() -> VideoEncodeH265DpbSlotInfoEXTBuilder<'a> { VideoEncodeH265DpbSlotInfoEXTBuilder { @@ -56841,7 +58812,7 @@ impl ::std::default::Default for VideoEncodeH265ReferenceListsEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::VIDEO_ENCODE_H265_REFERENCE_LISTS_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), reference_list0_entry_count: u8::default(), p_reference_list0_entries: ::std::ptr::null(), @@ -56851,6 +58822,9 @@ impl ::std::default::Default for VideoEncodeH265ReferenceListsEXT { } } } +unsafe impl TaggedStructure for VideoEncodeH265ReferenceListsEXT { + const STRUCTURE_TYPE: StructureType = StructureType::VIDEO_ENCODE_H265_REFERENCE_LISTS_EXT; +} impl VideoEncodeH265ReferenceListsEXT { pub fn builder<'a>() -> VideoEncodeH265ReferenceListsEXTBuilder<'a> { VideoEncodeH265ReferenceListsEXTBuilder { @@ -56922,12 +58896,16 @@ impl ::std::default::Default for PhysicalDeviceInheritedViewportScissorFeaturesN #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_INHERITED_VIEWPORT_SCISSOR_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), inherited_viewport_scissor2_d: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceInheritedViewportScissorFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_INHERITED_VIEWPORT_SCISSOR_FEATURES_NV; +} impl PhysicalDeviceInheritedViewportScissorFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceInheritedViewportScissorFeaturesNVBuilder<'a> { PhysicalDeviceInheritedViewportScissorFeaturesNVBuilder { @@ -56990,7 +58968,7 @@ impl ::std::default::Default for CommandBufferInheritanceViewportScissorInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::COMMAND_BUFFER_INHERITANCE_VIEWPORT_SCISSOR_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), viewport_scissor2_d: Bool32::default(), viewport_depth_count: u32::default(), @@ -56998,6 +58976,10 @@ impl ::std::default::Default for CommandBufferInheritanceViewportScissorInfoNV { } } } +unsafe impl TaggedStructure for CommandBufferInheritanceViewportScissorInfoNV { + const STRUCTURE_TYPE: StructureType = + StructureType::COMMAND_BUFFER_INHERITANCE_VIEWPORT_SCISSOR_INFO_NV; +} impl CommandBufferInheritanceViewportScissorInfoNV { pub fn builder<'a>() -> CommandBufferInheritanceViewportScissorInfoNVBuilder<'a> { CommandBufferInheritanceViewportScissorInfoNVBuilder { @@ -57063,12 +59045,16 @@ impl ::std::default::Default for PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_YCBCR_2_PLANE_444_FORMATS_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), ycbcr2plane444_formats: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_YCBCR_2_PLANE_444_FORMATS_FEATURES_EXT; +} impl PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTBuilder<'a> { PhysicalDeviceYcbcr2Plane444FormatsFeaturesEXTBuilder { @@ -57127,13 +59113,17 @@ impl ::std::default::Default for PhysicalDeviceProvokingVertexFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PROVOKING_VERTEX_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), provoking_vertex_last: Bool32::default(), transform_feedback_preserves_provoking_vertex: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceProvokingVertexFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PROVOKING_VERTEX_FEATURES_EXT; +} impl PhysicalDeviceProvokingVertexFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceProvokingVertexFeaturesEXTBuilder<'a> { PhysicalDeviceProvokingVertexFeaturesEXTBuilder { @@ -57198,13 +59188,17 @@ impl ::std::default::Default for PhysicalDeviceProvokingVertexPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PROVOKING_VERTEX_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), provoking_vertex_mode_per_pipeline: Bool32::default(), transform_feedback_preserves_triangle_fan_provoking_vertex: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceProvokingVertexPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PROVOKING_VERTEX_PROPERTIES_EXT; +} impl PhysicalDeviceProvokingVertexPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceProvokingVertexPropertiesEXTBuilder<'a> { PhysicalDeviceProvokingVertexPropertiesEXTBuilder { @@ -57273,12 +59267,16 @@ impl ::std::default::Default for PipelineRasterizationProvokingVertexStateCreate #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_RASTERIZATION_PROVOKING_VERTEX_STATE_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), provoking_vertex_mode: ProvokingVertexModeEXT::default(), } } } +unsafe impl TaggedStructure for PipelineRasterizationProvokingVertexStateCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_RASTERIZATION_PROVOKING_VERTEX_STATE_CREATE_INFO_EXT; +} impl PipelineRasterizationProvokingVertexStateCreateInfoEXT { pub fn builder<'a>() -> PipelineRasterizationProvokingVertexStateCreateInfoEXTBuilder<'a> { PipelineRasterizationProvokingVertexStateCreateInfoEXTBuilder { @@ -57340,13 +59338,16 @@ impl ::std::default::Default for CuModuleCreateInfoNVX { #[inline] fn default() -> Self { Self { - s_type: StructureType::CU_MODULE_CREATE_INFO_NVX, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), data_size: usize::default(), p_data: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for CuModuleCreateInfoNVX { + const STRUCTURE_TYPE: StructureType = StructureType::CU_MODULE_CREATE_INFO_NVX; +} impl CuModuleCreateInfoNVX { pub fn builder<'a>() -> CuModuleCreateInfoNVXBuilder<'a> { CuModuleCreateInfoNVXBuilder { @@ -57399,13 +59400,16 @@ impl ::std::default::Default for CuFunctionCreateInfoNVX { #[inline] fn default() -> Self { Self { - s_type: StructureType::CU_FUNCTION_CREATE_INFO_NVX, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), module: CuModuleNVX::default(), p_name: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for CuFunctionCreateInfoNVX { + const STRUCTURE_TYPE: StructureType = StructureType::CU_FUNCTION_CREATE_INFO_NVX; +} impl CuFunctionCreateInfoNVX { pub fn builder<'a>() -> CuFunctionCreateInfoNVXBuilder<'a> { CuFunctionCreateInfoNVXBuilder { @@ -57472,7 +59476,7 @@ impl ::std::default::Default for CuLaunchInfoNVX { #[inline] fn default() -> Self { Self { - s_type: StructureType::CU_LAUNCH_INFO_NVX, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), function: CuFunctionNVX::default(), grid_dim_x: u32::default(), @@ -57489,6 +59493,9 @@ impl ::std::default::Default for CuLaunchInfoNVX { } } } +unsafe impl TaggedStructure for CuLaunchInfoNVX { + const STRUCTURE_TYPE: StructureType = StructureType::CU_LAUNCH_INFO_NVX; +} impl CuLaunchInfoNVX { pub fn builder<'a>() -> CuLaunchInfoNVXBuilder<'a> { CuLaunchInfoNVXBuilder { @@ -57586,12 +59593,16 @@ impl ::std::default::Default for PhysicalDeviceShaderIntegerDotProductFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_integer_dot_product: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderIntegerDotProductFeatures { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES; +} impl PhysicalDeviceShaderIntegerDotProductFeatures { pub fn builder<'a>() -> PhysicalDeviceShaderIntegerDotProductFeaturesBuilder<'a> { PhysicalDeviceShaderIntegerDotProductFeaturesBuilder { @@ -57678,9 +59689,13 @@ pub struct PhysicalDeviceShaderIntegerDotProductProperties { impl ::std::default::Default for PhysicalDeviceShaderIntegerDotProductProperties { #[inline] fn default() -> Self { - Self { s_type : StructureType :: PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_PROPERTIES , p_next : :: std :: ptr :: null_mut () , integer_dot_product8_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product8_bit_signed_accelerated : Bool32 :: default () , integer_dot_product8_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_unsigned_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_signed_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product16_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product16_bit_signed_accelerated : Bool32 :: default () , integer_dot_product16_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product32_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product32_bit_signed_accelerated : Bool32 :: default () , integer_dot_product32_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product64_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product64_bit_signed_accelerated : Bool32 :: default () , integer_dot_product64_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_mixed_signedness_accelerated : Bool32 :: default () } + Self { s_type : Self :: STRUCTURE_TYPE , p_next : :: std :: ptr :: null_mut () , integer_dot_product8_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product8_bit_signed_accelerated : Bool32 :: default () , integer_dot_product8_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_unsigned_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_signed_accelerated : Bool32 :: default () , integer_dot_product4x8_bit_packed_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product16_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product16_bit_signed_accelerated : Bool32 :: default () , integer_dot_product16_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product32_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product32_bit_signed_accelerated : Bool32 :: default () , integer_dot_product32_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product64_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product64_bit_signed_accelerated : Bool32 :: default () , integer_dot_product64_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating8_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating4x8_bit_packed_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating16_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating32_bit_mixed_signedness_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_unsigned_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_signed_accelerated : Bool32 :: default () , integer_dot_product_accumulating_saturating64_bit_mixed_signedness_accelerated : Bool32 :: default () } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderIntegerDotProductProperties { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_PROPERTIES; +} impl PhysicalDeviceShaderIntegerDotProductProperties { pub fn builder<'a>() -> PhysicalDeviceShaderIntegerDotProductPropertiesBuilder<'a> { PhysicalDeviceShaderIntegerDotProductPropertiesBuilder { @@ -58026,7 +60041,7 @@ impl ::std::default::Default for PhysicalDeviceDrmPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DRM_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), has_primary: Bool32::default(), has_render: Bool32::default(), @@ -58037,6 +60052,9 @@ impl ::std::default::Default for PhysicalDeviceDrmPropertiesEXT { } } } +unsafe impl TaggedStructure for PhysicalDeviceDrmPropertiesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_DRM_PROPERTIES_EXT; +} impl PhysicalDeviceDrmPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceDrmPropertiesEXTBuilder<'a> { PhysicalDeviceDrmPropertiesEXTBuilder { @@ -58114,12 +60132,16 @@ impl ::std::default::Default for PhysicalDeviceFragmentShaderBarycentricFeatures #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), fragment_shader_barycentric: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentShaderBarycentricFeaturesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR; +} impl PhysicalDeviceFragmentShaderBarycentricFeaturesKHR { pub fn builder<'a>() -> PhysicalDeviceFragmentShaderBarycentricFeaturesKHRBuilder<'a> { PhysicalDeviceFragmentShaderBarycentricFeaturesKHRBuilder { @@ -58180,12 +60202,16 @@ impl ::std::default::Default for PhysicalDeviceFragmentShaderBarycentricProperti #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_PROPERTIES_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), tri_strip_vertex_order_independent_of_provoking_vertex: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceFragmentShaderBarycentricPropertiesKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_PROPERTIES_KHR; +} impl PhysicalDeviceFragmentShaderBarycentricPropertiesKHR { pub fn builder<'a>() -> PhysicalDeviceFragmentShaderBarycentricPropertiesKHRBuilder<'a> { PhysicalDeviceFragmentShaderBarycentricPropertiesKHRBuilder { @@ -58250,13 +60276,17 @@ impl ::std::default::Default for PhysicalDeviceRayTracingMotionBlurFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_RAY_TRACING_MOTION_BLUR_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), ray_tracing_motion_blur: Bool32::default(), ray_tracing_motion_blur_pipeline_trace_rays_indirect: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceRayTracingMotionBlurFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_RAY_TRACING_MOTION_BLUR_FEATURES_NV; +} impl PhysicalDeviceRayTracingMotionBlurFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceRayTracingMotionBlurFeaturesNVBuilder<'a> { PhysicalDeviceRayTracingMotionBlurFeaturesNVBuilder { @@ -58333,12 +60363,16 @@ impl ::std::default::Default for AccelerationStructureGeometryMotionTrianglesDat #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_GEOMETRY_MOTION_TRIANGLES_DATA_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), vertex_data: DeviceOrHostAddressConstKHR::default(), } } } +unsafe impl TaggedStructure for AccelerationStructureGeometryMotionTrianglesDataNV { + const STRUCTURE_TYPE: StructureType = + StructureType::ACCELERATION_STRUCTURE_GEOMETRY_MOTION_TRIANGLES_DATA_NV; +} impl AccelerationStructureGeometryMotionTrianglesDataNV { pub fn builder<'a>() -> AccelerationStructureGeometryMotionTrianglesDataNVBuilder<'a> { AccelerationStructureGeometryMotionTrianglesDataNVBuilder { @@ -58398,13 +60432,16 @@ impl ::std::default::Default for AccelerationStructureMotionInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::ACCELERATION_STRUCTURE_MOTION_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), max_instances: u32::default(), flags: AccelerationStructureMotionInfoFlagsNV::default(), } } } +unsafe impl TaggedStructure for AccelerationStructureMotionInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::ACCELERATION_STRUCTURE_MOTION_INFO_NV; +} impl AccelerationStructureMotionInfoNV { pub fn builder<'a>() -> AccelerationStructureMotionInfoNVBuilder<'a> { AccelerationStructureMotionInfoNVBuilder { @@ -58705,13 +60742,16 @@ impl ::std::default::Default for MemoryGetRemoteAddressInfoNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::MEMORY_GET_REMOTE_ADDRESS_INFO_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), memory: DeviceMemory::default(), handle_type: ExternalMemoryHandleTypeFlags::default(), } } } +unsafe impl TaggedStructure for MemoryGetRemoteAddressInfoNV { + const STRUCTURE_TYPE: StructureType = StructureType::MEMORY_GET_REMOTE_ADDRESS_INFO_NV; +} impl MemoryGetRemoteAddressInfoNV { pub fn builder<'a>() -> MemoryGetRemoteAddressInfoNVBuilder<'a> { MemoryGetRemoteAddressInfoNVBuilder { @@ -58768,13 +60808,16 @@ impl ::std::default::Default for ImportMemoryBufferCollectionFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_MEMORY_BUFFER_COLLECTION_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), collection: BufferCollectionFUCHSIA::default(), index: u32::default(), } } } +unsafe impl TaggedStructure for ImportMemoryBufferCollectionFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_MEMORY_BUFFER_COLLECTION_FUCHSIA; +} impl ImportMemoryBufferCollectionFUCHSIA { pub fn builder<'a>() -> ImportMemoryBufferCollectionFUCHSIABuilder<'a> { ImportMemoryBufferCollectionFUCHSIABuilder { @@ -58833,13 +60876,17 @@ impl ::std::default::Default for BufferCollectionImageCreateInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_COLLECTION_IMAGE_CREATE_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), collection: BufferCollectionFUCHSIA::default(), index: u32::default(), } } } +unsafe impl TaggedStructure for BufferCollectionImageCreateInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = + StructureType::BUFFER_COLLECTION_IMAGE_CREATE_INFO_FUCHSIA; +} impl BufferCollectionImageCreateInfoFUCHSIA { pub fn builder<'a>() -> BufferCollectionImageCreateInfoFUCHSIABuilder<'a> { BufferCollectionImageCreateInfoFUCHSIABuilder { @@ -58898,13 +60945,17 @@ impl ::std::default::Default for BufferCollectionBufferCreateInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_COLLECTION_BUFFER_CREATE_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), collection: BufferCollectionFUCHSIA::default(), index: u32::default(), } } } +unsafe impl TaggedStructure for BufferCollectionBufferCreateInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = + StructureType::BUFFER_COLLECTION_BUFFER_CREATE_INFO_FUCHSIA; +} impl BufferCollectionBufferCreateInfoFUCHSIA { pub fn builder<'a>() -> BufferCollectionBufferCreateInfoFUCHSIABuilder<'a> { BufferCollectionBufferCreateInfoFUCHSIABuilder { @@ -58962,12 +61013,15 @@ impl ::std::default::Default for BufferCollectionCreateInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_COLLECTION_CREATE_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), collection_token: zx_handle_t::default(), } } } +unsafe impl TaggedStructure for BufferCollectionCreateInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_COLLECTION_CREATE_INFO_FUCHSIA; +} impl BufferCollectionCreateInfoFUCHSIA { pub fn builder<'a>() -> BufferCollectionCreateInfoFUCHSIABuilder<'a> { BufferCollectionCreateInfoFUCHSIABuilder { @@ -59028,7 +61082,7 @@ impl ::std::default::Default for BufferCollectionPropertiesFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_COLLECTION_PROPERTIES_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), memory_type_bits: u32::default(), buffer_count: u32::default(), @@ -59044,6 +61098,9 @@ impl ::std::default::Default for BufferCollectionPropertiesFUCHSIA { } } } +unsafe impl TaggedStructure for BufferCollectionPropertiesFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_COLLECTION_PROPERTIES_FUCHSIA; +} impl BufferCollectionPropertiesFUCHSIA { pub fn builder<'a>() -> BufferCollectionPropertiesFUCHSIABuilder<'a> { BufferCollectionPropertiesFUCHSIABuilder { @@ -59155,7 +61212,7 @@ impl ::std::default::Default for BufferConstraintsInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_CONSTRAINTS_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), create_info: BufferCreateInfo::default(), required_format_features: FormatFeatureFlags::default(), @@ -59163,6 +61220,9 @@ impl ::std::default::Default for BufferConstraintsInfoFUCHSIA { } } } +unsafe impl TaggedStructure for BufferConstraintsInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_CONSTRAINTS_INFO_FUCHSIA; +} impl BufferConstraintsInfoFUCHSIA { pub fn builder<'a>() -> BufferConstraintsInfoFUCHSIABuilder<'a> { BufferConstraintsInfoFUCHSIABuilder { @@ -59229,12 +61289,15 @@ impl ::std::default::Default for SysmemColorSpaceFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::SYSMEM_COLOR_SPACE_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), color_space: u32::default(), } } } +unsafe impl TaggedStructure for SysmemColorSpaceFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::SYSMEM_COLOR_SPACE_FUCHSIA; +} impl SysmemColorSpaceFUCHSIA { pub fn builder<'a>() -> SysmemColorSpaceFUCHSIABuilder<'a> { SysmemColorSpaceFUCHSIABuilder { @@ -59290,7 +61353,7 @@ impl ::std::default::Default for ImageFormatConstraintsInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_FORMAT_CONSTRAINTS_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image_create_info: ImageCreateInfo::default(), required_format_features: FormatFeatureFlags::default(), @@ -59301,6 +61364,9 @@ impl ::std::default::Default for ImageFormatConstraintsInfoFUCHSIA { } } } +unsafe impl TaggedStructure for ImageFormatConstraintsInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_FORMAT_CONSTRAINTS_INFO_FUCHSIA; +} impl ImageFormatConstraintsInfoFUCHSIA { pub fn builder<'a>() -> ImageFormatConstraintsInfoFUCHSIABuilder<'a> { ImageFormatConstraintsInfoFUCHSIABuilder { @@ -59378,7 +61444,7 @@ impl ::std::default::Default for ImageConstraintsInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_CONSTRAINTS_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), format_constraints_count: u32::default(), p_format_constraints: ::std::ptr::null(), @@ -59387,6 +61453,9 @@ impl ::std::default::Default for ImageConstraintsInfoFUCHSIA { } } } +unsafe impl TaggedStructure for ImageConstraintsInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_CONSTRAINTS_INFO_FUCHSIA; +} impl ImageConstraintsInfoFUCHSIA { pub fn builder<'a>() -> ImageConstraintsInfoFUCHSIABuilder<'a> { ImageConstraintsInfoFUCHSIABuilder { @@ -59458,7 +61527,7 @@ impl ::std::default::Default for BufferCollectionConstraintsInfoFUCHSIA { #[inline] fn default() -> Self { Self { - s_type: StructureType::BUFFER_COLLECTION_CONSTRAINTS_INFO_FUCHSIA, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), min_buffer_count: u32::default(), max_buffer_count: u32::default(), @@ -59468,6 +61537,9 @@ impl ::std::default::Default for BufferCollectionConstraintsInfoFUCHSIA { } } } +unsafe impl TaggedStructure for BufferCollectionConstraintsInfoFUCHSIA { + const STRUCTURE_TYPE: StructureType = StructureType::BUFFER_COLLECTION_CONSTRAINTS_INFO_FUCHSIA; +} impl BufferCollectionConstraintsInfoFUCHSIA { pub fn builder<'a>() -> BufferCollectionConstraintsInfoFUCHSIABuilder<'a> { BufferCollectionConstraintsInfoFUCHSIABuilder { @@ -59544,12 +61616,16 @@ impl ::std::default::Default for PhysicalDeviceRGBA10X6FormatsFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_RGBA10X6_FORMATS_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), format_rgba10x6_without_y_cb_cr_sampler: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceRGBA10X6FormatsFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_RGBA10X6_FORMATS_FEATURES_EXT; +} impl PhysicalDeviceRGBA10X6FormatsFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceRGBA10X6FormatsFeaturesEXTBuilder<'a> { PhysicalDeviceRGBA10X6FormatsFeaturesEXTBuilder { @@ -59610,7 +61686,7 @@ impl ::std::default::Default for FormatProperties3 { #[inline] fn default() -> Self { Self { - s_type: StructureType::FORMAT_PROPERTIES_3, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), linear_tiling_features: FormatFeatureFlags2::default(), optimal_tiling_features: FormatFeatureFlags2::default(), @@ -59618,6 +61694,9 @@ impl ::std::default::Default for FormatProperties3 { } } } +unsafe impl TaggedStructure for FormatProperties3 { + const STRUCTURE_TYPE: StructureType = StructureType::FORMAT_PROPERTIES_3; +} impl FormatProperties3 { pub fn builder<'a>() -> FormatProperties3Builder<'a> { FormatProperties3Builder { @@ -59681,13 +61760,16 @@ impl ::std::default::Default for DrmFormatModifierPropertiesList2EXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::DRM_FORMAT_MODIFIER_PROPERTIES_LIST_2_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), drm_format_modifier_count: u32::default(), p_drm_format_modifier_properties: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for DrmFormatModifierPropertiesList2EXT { + const STRUCTURE_TYPE: StructureType = StructureType::DRM_FORMAT_MODIFIER_PROPERTIES_LIST_2_EXT; +} impl DrmFormatModifierPropertiesList2EXT { pub fn builder<'a>() -> DrmFormatModifierPropertiesList2EXTBuilder<'a> { DrmFormatModifierPropertiesList2EXTBuilder { @@ -59810,7 +61892,7 @@ impl ::std::default::Default for AndroidHardwareBufferFormatProperties2ANDROID { #[inline] fn default() -> Self { Self { - s_type: StructureType::ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_2_ANDROID, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), format: Format::default(), external_format: u64::default(), @@ -59823,6 +61905,10 @@ impl ::std::default::Default for AndroidHardwareBufferFormatProperties2ANDROID { } } } +unsafe impl TaggedStructure for AndroidHardwareBufferFormatProperties2ANDROID { + const STRUCTURE_TYPE: StructureType = + StructureType::ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_2_ANDROID; +} impl AndroidHardwareBufferFormatProperties2ANDROID { pub fn builder<'a>() -> AndroidHardwareBufferFormatProperties2ANDROIDBuilder<'a> { AndroidHardwareBufferFormatProperties2ANDROIDBuilder { @@ -59926,7 +62012,7 @@ impl ::std::default::Default for PipelineRenderingCreateInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_RENDERING_CREATE_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), view_mask: u32::default(), color_attachment_count: u32::default(), @@ -59936,6 +62022,9 @@ impl ::std::default::Default for PipelineRenderingCreateInfo { } } } +unsafe impl TaggedStructure for PipelineRenderingCreateInfo { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_RENDERING_CREATE_INFO; +} impl PipelineRenderingCreateInfo { pub fn builder<'a>() -> PipelineRenderingCreateInfoBuilder<'a> { PipelineRenderingCreateInfoBuilder { @@ -60011,7 +62100,7 @@ impl ::std::default::Default for RenderingInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDERING_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: RenderingFlags::default(), render_area: Rect2D::default(), @@ -60024,6 +62113,9 @@ impl ::std::default::Default for RenderingInfo { } } } +unsafe impl TaggedStructure for RenderingInfo { + const STRUCTURE_TYPE: StructureType = StructureType::RENDERING_INFO; +} impl RenderingInfo { pub fn builder<'a>() -> RenderingInfoBuilder<'a> { RenderingInfoBuilder { @@ -60143,7 +62235,7 @@ impl ::std::default::Default for RenderingAttachmentInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDERING_ATTACHMENT_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image_view: ImageView::default(), image_layout: ImageLayout::default(), @@ -60156,6 +62248,9 @@ impl ::std::default::Default for RenderingAttachmentInfo { } } } +unsafe impl TaggedStructure for RenderingAttachmentInfo { + const STRUCTURE_TYPE: StructureType = StructureType::RENDERING_ATTACHMENT_INFO; +} impl RenderingAttachmentInfo { pub fn builder<'a>() -> RenderingAttachmentInfoBuilder<'a> { RenderingAttachmentInfoBuilder { @@ -60243,7 +62338,7 @@ impl ::std::default::Default for RenderingFragmentShadingRateAttachmentInfoKHR { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image_view: ImageView::default(), image_layout: ImageLayout::default(), @@ -60251,6 +62346,10 @@ impl ::std::default::Default for RenderingFragmentShadingRateAttachmentInfoKHR { } } } +unsafe impl TaggedStructure for RenderingFragmentShadingRateAttachmentInfoKHR { + const STRUCTURE_TYPE: StructureType = + StructureType::RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR; +} impl RenderingFragmentShadingRateAttachmentInfoKHR { pub fn builder<'a>() -> RenderingFragmentShadingRateAttachmentInfoKHRBuilder<'a> { RenderingFragmentShadingRateAttachmentInfoKHRBuilder { @@ -60317,13 +62416,17 @@ impl ::std::default::Default for RenderingFragmentDensityMapAttachmentInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image_view: ImageView::default(), image_layout: ImageLayout::default(), } } } +unsafe impl TaggedStructure for RenderingFragmentDensityMapAttachmentInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXT; +} impl RenderingFragmentDensityMapAttachmentInfoEXT { pub fn builder<'a>() -> RenderingFragmentDensityMapAttachmentInfoEXTBuilder<'a> { RenderingFragmentDensityMapAttachmentInfoEXTBuilder { @@ -60381,12 +62484,15 @@ impl ::std::default::Default for PhysicalDeviceDynamicRenderingFeatures { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), dynamic_rendering: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceDynamicRenderingFeatures { + const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES; +} impl PhysicalDeviceDynamicRenderingFeatures { pub fn builder<'a>() -> PhysicalDeviceDynamicRenderingFeaturesBuilder<'a> { PhysicalDeviceDynamicRenderingFeaturesBuilder { @@ -60447,7 +62553,7 @@ impl ::std::default::Default for CommandBufferInheritanceRenderingInfo { #[inline] fn default() -> Self { Self { - s_type: StructureType::COMMAND_BUFFER_INHERITANCE_RENDERING_INFO, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: RenderingFlags::default(), view_mask: u32::default(), @@ -60459,6 +62565,9 @@ impl ::std::default::Default for CommandBufferInheritanceRenderingInfo { } } } +unsafe impl TaggedStructure for CommandBufferInheritanceRenderingInfo { + const STRUCTURE_TYPE: StructureType = StructureType::COMMAND_BUFFER_INHERITANCE_RENDERING_INFO; +} impl CommandBufferInheritanceRenderingInfo { pub fn builder<'a>() -> CommandBufferInheritanceRenderingInfoBuilder<'a> { CommandBufferInheritanceRenderingInfoBuilder { @@ -60542,7 +62651,7 @@ impl ::std::default::Default for AttachmentSampleCountInfoAMD { #[inline] fn default() -> Self { Self { - s_type: StructureType::ATTACHMENT_SAMPLE_COUNT_INFO_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), color_attachment_count: u32::default(), p_color_attachment_samples: ::std::ptr::null(), @@ -60550,6 +62659,9 @@ impl ::std::default::Default for AttachmentSampleCountInfoAMD { } } } +unsafe impl TaggedStructure for AttachmentSampleCountInfoAMD { + const STRUCTURE_TYPE: StructureType = StructureType::ATTACHMENT_SAMPLE_COUNT_INFO_AMD; +} impl AttachmentSampleCountInfoAMD { pub fn builder<'a>() -> AttachmentSampleCountInfoAMDBuilder<'a> { AttachmentSampleCountInfoAMDBuilder { @@ -60617,13 +62729,16 @@ impl ::std::default::Default for MultiviewPerViewAttributesInfoNVX { #[inline] fn default() -> Self { Self { - s_type: StructureType::MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), per_view_attributes: Bool32::default(), per_view_attributes_position_x_only: Bool32::default(), } } } +unsafe impl TaggedStructure for MultiviewPerViewAttributesInfoNVX { + const STRUCTURE_TYPE: StructureType = StructureType::MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX; +} impl MultiviewPerViewAttributesInfoNVX { pub fn builder<'a>() -> MultiviewPerViewAttributesInfoNVXBuilder<'a> { MultiviewPerViewAttributesInfoNVXBuilder { @@ -60688,12 +62803,16 @@ impl ::std::default::Default for PhysicalDeviceImageViewMinLodFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), min_lod: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceImageViewMinLodFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT; +} impl PhysicalDeviceImageViewMinLodFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceImageViewMinLodFeaturesEXTBuilder<'a> { PhysicalDeviceImageViewMinLodFeaturesEXTBuilder { @@ -60748,12 +62867,15 @@ impl ::std::default::Default for ImageViewMinLodCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), min_lod: f32::default(), } } } +unsafe impl TaggedStructure for ImageViewMinLodCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT; +} impl ImageViewMinLodCreateInfoEXT { pub fn builder<'a>() -> ImageViewMinLodCreateInfoEXTBuilder<'a> { ImageViewMinLodCreateInfoEXTBuilder { @@ -60808,8 +62930,7 @@ impl ::std::default::Default for PhysicalDeviceRasterizationOrderAttachmentAcces #[inline] fn default() -> Self { Self { - s_type: - StructureType::PHYSICAL_DEVICE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_FEATURES_ARM, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), rasterization_order_color_attachment_access: Bool32::default(), rasterization_order_depth_attachment_access: Bool32::default(), @@ -60817,6 +62938,10 @@ impl ::std::default::Default for PhysicalDeviceRasterizationOrderAttachmentAcces } } } +unsafe impl TaggedStructure for PhysicalDeviceRasterizationOrderAttachmentAccessFeaturesARM { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_FEATURES_ARM; +} impl PhysicalDeviceRasterizationOrderAttachmentAccessFeaturesARM { pub fn builder<'a>() -> PhysicalDeviceRasterizationOrderAttachmentAccessFeaturesARMBuilder<'a> { PhysicalDeviceRasterizationOrderAttachmentAccessFeaturesARMBuilder { @@ -60909,12 +63034,16 @@ impl ::std::default::Default for PhysicalDeviceLinearColorAttachmentFeaturesNV { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_LINEAR_COLOR_ATTACHMENT_FEATURES_NV, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), linear_color_attachment: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceLinearColorAttachmentFeaturesNV { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_LINEAR_COLOR_ATTACHMENT_FEATURES_NV; +} impl PhysicalDeviceLinearColorAttachmentFeaturesNV { pub fn builder<'a>() -> PhysicalDeviceLinearColorAttachmentFeaturesNVBuilder<'a> { PhysicalDeviceLinearColorAttachmentFeaturesNVBuilder { @@ -60972,12 +63101,16 @@ impl ::std::default::Default for PhysicalDeviceGraphicsPipelineLibraryFeaturesEX #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), graphics_pipeline_library: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_FEATURES_EXT; +} impl PhysicalDeviceGraphicsPipelineLibraryFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceGraphicsPipelineLibraryFeaturesEXTBuilder<'a> { PhysicalDeviceGraphicsPipelineLibraryFeaturesEXTBuilder { @@ -61039,13 +63172,17 @@ impl ::std::default::Default for PhysicalDeviceGraphicsPipelineLibraryProperties #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), graphics_pipeline_library_fast_linking: Bool32::default(), graphics_pipeline_library_independent_interpolation_decoration: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_PROPERTIES_EXT; +} impl PhysicalDeviceGraphicsPipelineLibraryPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceGraphicsPipelineLibraryPropertiesEXTBuilder<'a> { PhysicalDeviceGraphicsPipelineLibraryPropertiesEXTBuilder { @@ -61118,12 +63255,15 @@ impl ::std::default::Default for GraphicsPipelineLibraryCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::GRAPHICS_PIPELINE_LIBRARY_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), flags: GraphicsPipelineLibraryFlagsEXT::default(), } } } +unsafe impl TaggedStructure for GraphicsPipelineLibraryCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::GRAPHICS_PIPELINE_LIBRARY_CREATE_INFO_EXT; +} impl GraphicsPipelineLibraryCreateInfoEXT { pub fn builder<'a>() -> GraphicsPipelineLibraryCreateInfoEXTBuilder<'a> { GraphicsPipelineLibraryCreateInfoEXTBuilder { @@ -61176,12 +63316,16 @@ impl ::std::default::Default for PhysicalDeviceDescriptorSetHostMappingFeaturesV #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_DESCRIPTOR_SET_HOST_MAPPING_FEATURES_VALVE, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), descriptor_set_host_mapping: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceDescriptorSetHostMappingFeaturesVALVE { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_DESCRIPTOR_SET_HOST_MAPPING_FEATURES_VALVE; +} impl PhysicalDeviceDescriptorSetHostMappingFeaturesVALVE { pub fn builder<'a>() -> PhysicalDeviceDescriptorSetHostMappingFeaturesVALVEBuilder<'a> { PhysicalDeviceDescriptorSetHostMappingFeaturesVALVEBuilder { @@ -61243,13 +63387,16 @@ impl ::std::default::Default for DescriptorSetBindingReferenceVALVE { #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_SET_BINDING_REFERENCE_VALVE, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), descriptor_set_layout: DescriptorSetLayout::default(), binding: u32::default(), } } } +unsafe impl TaggedStructure for DescriptorSetBindingReferenceVALVE { + const STRUCTURE_TYPE: StructureType = StructureType::DESCRIPTOR_SET_BINDING_REFERENCE_VALVE; +} impl DescriptorSetBindingReferenceVALVE { pub fn builder<'a>() -> DescriptorSetBindingReferenceVALVEBuilder<'a> { DescriptorSetBindingReferenceVALVEBuilder { @@ -61306,13 +63453,17 @@ impl ::std::default::Default for DescriptorSetLayoutHostMappingInfoVALVE { #[inline] fn default() -> Self { Self { - s_type: StructureType::DESCRIPTOR_SET_LAYOUT_HOST_MAPPING_INFO_VALVE, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), descriptor_offset: usize::default(), descriptor_size: u32::default(), } } } +unsafe impl TaggedStructure for DescriptorSetLayoutHostMappingInfoVALVE { + const STRUCTURE_TYPE: StructureType = + StructureType::DESCRIPTOR_SET_LAYOUT_HOST_MAPPING_INFO_VALVE; +} impl DescriptorSetLayoutHostMappingInfoVALVE { pub fn builder<'a>() -> DescriptorSetLayoutHostMappingInfoVALVEBuilder<'a> { DescriptorSetLayoutHostMappingInfoVALVEBuilder { @@ -61368,12 +63519,16 @@ impl ::std::default::Default for PhysicalDeviceShaderModuleIdentifierFeaturesEXT #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_MODULE_IDENTIFIER_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_module_identifier: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderModuleIdentifierFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_MODULE_IDENTIFIER_FEATURES_EXT; +} impl PhysicalDeviceShaderModuleIdentifierFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceShaderModuleIdentifierFeaturesEXTBuilder<'a> { PhysicalDeviceShaderModuleIdentifierFeaturesEXTBuilder { @@ -61431,12 +63586,16 @@ impl ::std::default::Default for PhysicalDeviceShaderModuleIdentifierPropertiesE #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SHADER_MODULE_IDENTIFIER_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_module_identifier_algorithm_uuid: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderModuleIdentifierPropertiesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_MODULE_IDENTIFIER_PROPERTIES_EXT; +} impl PhysicalDeviceShaderModuleIdentifierPropertiesEXT { pub fn builder<'a>() -> PhysicalDeviceShaderModuleIdentifierPropertiesEXTBuilder<'a> { PhysicalDeviceShaderModuleIdentifierPropertiesEXTBuilder { @@ -61497,13 +63656,17 @@ impl ::std::default::Default for PipelineShaderStageModuleIdentifierCreateInfoEX #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_SHADER_STAGE_MODULE_IDENTIFIER_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), identifier_size: u32::default(), p_identifier: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for PipelineShaderStageModuleIdentifierCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PIPELINE_SHADER_STAGE_MODULE_IDENTIFIER_CREATE_INFO_EXT; +} impl PipelineShaderStageModuleIdentifierCreateInfoEXT { pub fn builder<'a>() -> PipelineShaderStageModuleIdentifierCreateInfoEXTBuilder<'a> { PipelineShaderStageModuleIdentifierCreateInfoEXTBuilder { @@ -61564,13 +63727,16 @@ impl ::std::default::Default for ShaderModuleIdentifierEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SHADER_MODULE_IDENTIFIER_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), identifier_size: u32::default(), identifier: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for ShaderModuleIdentifierEXT { + const STRUCTURE_TYPE: StructureType = StructureType::SHADER_MODULE_IDENTIFIER_EXT; +} impl ShaderModuleIdentifierEXT { pub fn builder<'a>() -> ShaderModuleIdentifierEXTBuilder<'a> { ShaderModuleIdentifierEXTBuilder { @@ -61628,7 +63794,7 @@ impl ::std::default::Default for ImageCompressionControlEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_COMPRESSION_CONTROL_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), flags: ImageCompressionFlagsEXT::default(), compression_control_plane_count: u32::default(), @@ -61636,6 +63802,9 @@ impl ::std::default::Default for ImageCompressionControlEXT { } } } +unsafe impl TaggedStructure for ImageCompressionControlEXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_COMPRESSION_CONTROL_EXT; +} impl ImageCompressionControlEXT { pub fn builder<'a>() -> ImageCompressionControlEXTBuilder<'a> { ImageCompressionControlEXTBuilder { @@ -61701,12 +63870,16 @@ impl ::std::default::Default for PhysicalDeviceImageCompressionControlFeaturesEX #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_IMAGE_COMPRESSION_CONTROL_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), image_compression_control: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceImageCompressionControlFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_IMAGE_COMPRESSION_CONTROL_FEATURES_EXT; +} impl PhysicalDeviceImageCompressionControlFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceImageCompressionControlFeaturesEXTBuilder<'a> { PhysicalDeviceImageCompressionControlFeaturesEXTBuilder { @@ -61768,13 +63941,16 @@ impl ::std::default::Default for ImageCompressionPropertiesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_COMPRESSION_PROPERTIES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), image_compression_flags: ImageCompressionFlagsEXT::default(), image_compression_fixed_rate_flags: ImageCompressionFixedRateFlagsEXT::default(), } } } +unsafe impl TaggedStructure for ImageCompressionPropertiesEXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_COMPRESSION_PROPERTIES_EXT; +} impl ImageCompressionPropertiesEXT { pub fn builder<'a>() -> ImageCompressionPropertiesEXTBuilder<'a> { ImageCompressionPropertiesEXTBuilder { @@ -61842,12 +64018,16 @@ impl ::std::default::Default for PhysicalDeviceImageCompressionControlSwapchainF #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), image_compression_control_swapchain: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceImageCompressionControlSwapchainFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN_FEATURES_EXT; +} impl PhysicalDeviceImageCompressionControlSwapchainFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceImageCompressionControlSwapchainFeaturesEXTBuilder<'a> { PhysicalDeviceImageCompressionControlSwapchainFeaturesEXTBuilder { @@ -61918,12 +64098,15 @@ impl ::std::default::Default for ImageSubresource2EXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMAGE_SUBRESOURCE_2_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), image_subresource: ImageSubresource::default(), } } } +unsafe impl TaggedStructure for ImageSubresource2EXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_SUBRESOURCE_2_EXT; +} impl ImageSubresource2EXT { pub fn builder<'a>() -> ImageSubresource2EXTBuilder<'a> { ImageSubresource2EXTBuilder { @@ -61974,12 +64157,15 @@ impl ::std::default::Default for SubresourceLayout2EXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::SUBRESOURCE_LAYOUT_2_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), subresource_layout: SubresourceLayout::default(), } } } +unsafe impl TaggedStructure for SubresourceLayout2EXT { + const STRUCTURE_TYPE: StructureType = StructureType::SUBRESOURCE_LAYOUT_2_EXT; +} impl SubresourceLayout2EXT { pub fn builder<'a>() -> SubresourceLayout2EXTBuilder<'a> { SubresourceLayout2EXTBuilder { @@ -62045,12 +64231,15 @@ impl ::std::default::Default for RenderPassCreationControlEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_CREATION_CONTROL_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), disallow_merging: Bool32::default(), } } } +unsafe impl TaggedStructure for RenderPassCreationControlEXT { + const STRUCTURE_TYPE: StructureType = StructureType::RENDER_PASS_CREATION_CONTROL_EXT; +} impl RenderPassCreationControlEXT { pub fn builder<'a>() -> RenderPassCreationControlEXTBuilder<'a> { RenderPassCreationControlEXTBuilder { @@ -62149,12 +64338,16 @@ impl ::std::default::Default for RenderPassCreationFeedbackCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_CREATION_FEEDBACK_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_render_pass_feedback: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for RenderPassCreationFeedbackCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::RENDER_PASS_CREATION_FEEDBACK_CREATE_INFO_EXT; +} impl RenderPassCreationFeedbackCreateInfoEXT { pub fn builder<'a>() -> RenderPassCreationFeedbackCreateInfoEXTBuilder<'a> { RenderPassCreationFeedbackCreateInfoEXTBuilder { @@ -62287,12 +64480,16 @@ impl ::std::default::Default for RenderPassSubpassFeedbackCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::RENDER_PASS_SUBPASS_FEEDBACK_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), p_subpass_feedback: ::std::ptr::null_mut(), } } } +unsafe impl TaggedStructure for RenderPassSubpassFeedbackCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::RENDER_PASS_SUBPASS_FEEDBACK_CREATE_INFO_EXT; +} impl RenderPassSubpassFeedbackCreateInfoEXT { pub fn builder<'a>() -> RenderPassSubpassFeedbackCreateInfoEXTBuilder<'a> { RenderPassSubpassFeedbackCreateInfoEXTBuilder { @@ -62348,12 +64545,16 @@ impl ::std::default::Default for PhysicalDeviceSubpassMergeFeedbackFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_SUBPASS_MERGE_FEEDBACK_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), subpass_merge_feedback: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceSubpassMergeFeedbackFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SUBPASS_MERGE_FEEDBACK_FEATURES_EXT; +} impl PhysicalDeviceSubpassMergeFeedbackFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceSubpassMergeFeedbackFeaturesEXTBuilder<'a> { PhysicalDeviceSubpassMergeFeedbackFeaturesEXTBuilder { @@ -62411,12 +64612,15 @@ impl ::std::default::Default for PipelinePropertiesIdentifierEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PIPELINE_PROPERTIES_IDENTIFIER_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), pipeline_identifier: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for PipelinePropertiesIdentifierEXT { + const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_PROPERTIES_IDENTIFIER_EXT; +} impl PipelinePropertiesIdentifierEXT { pub fn builder<'a>() -> PipelinePropertiesIdentifierEXTBuilder<'a> { PipelinePropertiesIdentifierEXTBuilder { @@ -62467,12 +64671,16 @@ impl ::std::default::Default for PhysicalDevicePipelinePropertiesFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_PIPELINE_PROPERTIES_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), pipeline_properties_identifier: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDevicePipelinePropertiesFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_PIPELINE_PROPERTIES_FEATURES_EXT; +} impl PhysicalDevicePipelinePropertiesFeaturesEXT { pub fn builder<'a>() -> PhysicalDevicePipelinePropertiesFeaturesEXTBuilder<'a> { PhysicalDevicePipelinePropertiesFeaturesEXTBuilder { @@ -62530,13 +64738,16 @@ impl ::std::default::Default for PhysicalDeviceShaderEarlyAndLateFragmentTestsFe #[inline] fn default() -> Self { Self { - s_type: - StructureType::PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_AMD, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), shader_early_and_late_fragment_tests: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_SHADER_EARLY_AND_LATE_FRAGMENT_TESTS_FEATURES_AMD; +} impl PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMD { pub fn builder<'a>() -> PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMDBuilder<'a> { PhysicalDeviceShaderEarlyAndLateFragmentTestsFeaturesAMDBuilder { @@ -62606,12 +64817,15 @@ impl ::std::default::Default for ExportMetalObjectCreateInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_METAL_OBJECT_CREATE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), export_object_type: ExportMetalObjectTypeFlagsEXT::default(), } } } +unsafe impl TaggedStructure for ExportMetalObjectCreateInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_METAL_OBJECT_CREATE_INFO_EXT; +} impl ExportMetalObjectCreateInfoEXT { pub fn builder<'a>() -> ExportMetalObjectCreateInfoEXTBuilder<'a> { ExportMetalObjectCreateInfoEXTBuilder { @@ -62675,11 +64889,14 @@ impl ::std::default::Default for ExportMetalObjectsInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_METAL_OBJECTS_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), } } } +unsafe impl TaggedStructure for ExportMetalObjectsInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_METAL_OBJECTS_INFO_EXT; +} impl ExportMetalObjectsInfoEXT { pub fn builder<'a>() -> ExportMetalObjectsInfoEXTBuilder<'a> { ExportMetalObjectsInfoEXTBuilder { @@ -62740,12 +64957,15 @@ impl ::std::default::Default for ExportMetalDeviceInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_METAL_DEVICE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), mtl_device: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for ExportMetalDeviceInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_METAL_DEVICE_INFO_EXT; +} impl ExportMetalDeviceInfoEXT { pub fn builder<'a>() -> ExportMetalDeviceInfoEXTBuilder<'a> { ExportMetalDeviceInfoEXTBuilder { @@ -62799,13 +65019,16 @@ impl ::std::default::Default for ExportMetalCommandQueueInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_METAL_COMMAND_QUEUE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), queue: Queue::default(), mtl_command_queue: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for ExportMetalCommandQueueInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_METAL_COMMAND_QUEUE_INFO_EXT; +} impl ExportMetalCommandQueueInfoEXT { pub fn builder<'a>() -> ExportMetalCommandQueueInfoEXTBuilder<'a> { ExportMetalCommandQueueInfoEXTBuilder { @@ -62864,13 +65087,16 @@ impl ::std::default::Default for ExportMetalBufferInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_METAL_BUFFER_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), memory: DeviceMemory::default(), mtl_buffer: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for ExportMetalBufferInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_METAL_BUFFER_INFO_EXT; +} impl ExportMetalBufferInfoEXT { pub fn builder<'a>() -> ExportMetalBufferInfoEXTBuilder<'a> { ExportMetalBufferInfoEXTBuilder { @@ -62928,12 +65154,15 @@ impl ::std::default::Default for ImportMetalBufferInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_METAL_BUFFER_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), mtl_buffer: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for ImportMetalBufferInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_METAL_BUFFER_INFO_EXT; +} impl ImportMetalBufferInfoEXT { pub fn builder<'a>() -> ImportMetalBufferInfoEXTBuilder<'a> { ImportMetalBufferInfoEXTBuilder { @@ -62990,7 +65219,7 @@ impl ::std::default::Default for ExportMetalTextureInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_METAL_TEXTURE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image: Image::default(), image_view: ImageView::default(), @@ -63000,6 +65229,9 @@ impl ::std::default::Default for ExportMetalTextureInfoEXT { } } } +unsafe impl TaggedStructure for ExportMetalTextureInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_METAL_TEXTURE_INFO_EXT; +} impl ExportMetalTextureInfoEXT { pub fn builder<'a>() -> ExportMetalTextureInfoEXTBuilder<'a> { ExportMetalTextureInfoEXTBuilder { @@ -63073,13 +65305,16 @@ impl ::std::default::Default for ImportMetalTextureInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_METAL_TEXTURE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), plane: ImageAspectFlags::default(), mtl_texture: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for ImportMetalTextureInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_METAL_TEXTURE_INFO_EXT; +} impl ImportMetalTextureInfoEXT { pub fn builder<'a>() -> ImportMetalTextureInfoEXTBuilder<'a> { ImportMetalTextureInfoEXTBuilder { @@ -63138,13 +65373,16 @@ impl ::std::default::Default for ExportMetalIOSurfaceInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_METAL_IO_SURFACE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), image: Image::default(), io_surface: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for ExportMetalIOSurfaceInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_METAL_IO_SURFACE_INFO_EXT; +} impl ExportMetalIOSurfaceInfoEXT { pub fn builder<'a>() -> ExportMetalIOSurfaceInfoEXTBuilder<'a> { ExportMetalIOSurfaceInfoEXTBuilder { @@ -63202,12 +65440,15 @@ impl ::std::default::Default for ImportMetalIOSurfaceInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_METAL_IO_SURFACE_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), io_surface: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for ImportMetalIOSurfaceInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_METAL_IO_SURFACE_INFO_EXT; +} impl ImportMetalIOSurfaceInfoEXT { pub fn builder<'a>() -> ImportMetalIOSurfaceInfoEXTBuilder<'a> { ImportMetalIOSurfaceInfoEXTBuilder { @@ -63262,7 +65503,7 @@ impl ::std::default::Default for ExportMetalSharedEventInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::EXPORT_METAL_SHARED_EVENT_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), semaphore: Semaphore::default(), event: Event::default(), @@ -63270,6 +65511,9 @@ impl ::std::default::Default for ExportMetalSharedEventInfoEXT { } } } +unsafe impl TaggedStructure for ExportMetalSharedEventInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::EXPORT_METAL_SHARED_EVENT_INFO_EXT; +} impl ExportMetalSharedEventInfoEXT { pub fn builder<'a>() -> ExportMetalSharedEventInfoEXTBuilder<'a> { ExportMetalSharedEventInfoEXTBuilder { @@ -63332,12 +65576,15 @@ impl ::std::default::Default for ImportMetalSharedEventInfoEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::IMPORT_METAL_SHARED_EVENT_INFO_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null(), mtl_shared_event: unsafe { ::std::mem::zeroed() }, } } } +unsafe impl TaggedStructure for ImportMetalSharedEventInfoEXT { + const STRUCTURE_TYPE: StructureType = StructureType::IMPORT_METAL_SHARED_EVENT_INFO_EXT; +} impl ImportMetalSharedEventInfoEXT { pub fn builder<'a>() -> ImportMetalSharedEventInfoEXTBuilder<'a> { ImportMetalSharedEventInfoEXTBuilder { @@ -63392,12 +65639,16 @@ impl ::std::default::Default for PhysicalDeviceNonSeamlessCubeMapFeaturesEXT { #[inline] fn default() -> Self { Self { - s_type: StructureType::PHYSICAL_DEVICE_NON_SEAMLESS_CUBE_MAP_FEATURES_EXT, + s_type: Self::STRUCTURE_TYPE, p_next: ::std::ptr::null_mut(), non_seamless_cube_map: Bool32::default(), } } } +unsafe impl TaggedStructure for PhysicalDeviceNonSeamlessCubeMapFeaturesEXT { + const STRUCTURE_TYPE: StructureType = + StructureType::PHYSICAL_DEVICE_NON_SEAMLESS_CUBE_MAP_FEATURES_EXT; +} impl PhysicalDeviceNonSeamlessCubeMapFeaturesEXT { pub fn builder<'a>() -> PhysicalDeviceNonSeamlessCubeMapFeaturesEXTBuilder<'a> { PhysicalDeviceNonSeamlessCubeMapFeaturesEXTBuilder { diff --git a/ash/src/vk/prelude.rs b/ash/src/vk/prelude.rs index 4062321..cb2f177 100644 --- a/ash/src/vk/prelude.rs +++ b/ash/src/vk/prelude.rs @@ -52,3 +52,10 @@ impl From for vk::Rect2D { } } } + +/// Structures implementing this trait are layout-compatible with [`vk::BaseInStructure`] and +/// [`vk::BaseOutStructure`]. Such structures have an `s_type` field indicating its type, which +/// must always match the value of [`TaggedStructure::STRUCTURE_TYPE`]. +pub unsafe trait TaggedStructure { + const STRUCTURE_TYPE: vk::StructureType; +} diff --git a/generator/src/lib.rs b/generator/src/lib.rs index f458361..ccd1895 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -497,7 +497,6 @@ pub trait FieldExt { /// array types (e.g. `[f32; 3]`) will be converted to pointer types (e.g. `&[f32; 3]`), /// which is needed for `C` function parameters. Set to `false` for struct definitions. fn type_tokens(&self, is_ffi_param: bool) -> TokenStream; - fn is_clone(&self) -> bool; /// Whether this is C's `void` type (not to be mistaken with a void _pointer_!) fn is_void(&self) -> bool; @@ -632,10 +631,6 @@ fn discard_outmost_delimiter(stream: TokenStream) -> TokenStream { } impl FieldExt for vkxml::Field { - fn is_clone(&self) -> bool { - true - } - fn param_ident(&self) -> Ident { let name = self.name.as_deref().unwrap_or("field"); let name_corrected = match name { @@ -1429,15 +1424,9 @@ pub fn derive_default(struct_: &vkxml::Struct) -> Option { let default_fields = members.clone().map(|field| { let param_ident = field.param_ident(); if is_structure_type(field) { - let ty = field - .type_enums - .as_ref() - .and_then(|ty| ty.split(',').next()); - if let Some(variant) = ty { - let variant_ident = variant_ident("VkStructureType", variant); - + if field.type_enums.is_some() { quote! { - #param_ident: StructureType::#variant_ident + #param_ident: Self::STRUCTURE_TYPE } } else { quote! { @@ -1559,6 +1548,13 @@ pub fn derive_setters( .clone() .find(|field| field.param_ident() == "p_next"); + let structure_type_field = members + .clone() + .find(|field| field.param_ident() == "s_type"); + + // Must either have both, or none: + assert_eq!(next_field.is_some(), structure_type_field.is_some()); + let nofilter_count_members = [ ("VkPipelineViewportStateCreateInfo", "pViewports"), ("VkPipelineViewportStateCreateInfo", "pScissors"), @@ -1810,7 +1806,24 @@ pub fn derive_setters( } }); + let impl_structure_type_trait = structure_type_field.map(|s_type| { + let value = s_type + .type_enums + .as_deref() + .expect("s_type field must have a value in `vk.xml`"); + + assert!(!value.contains(',')); + + let value = variant_ident("VkStructureType", value); + quote! { + unsafe impl TaggedStructure for #name { + const STRUCTURE_TYPE: StructureType = StructureType::#value; + } + } + }); + let q = quote! { + #impl_structure_type_trait impl #name { pub fn builder<'a>() -> #name_builder<'a> { #name_builder { @@ -1825,7 +1838,6 @@ pub fn derive_setters( inner: #name, marker: ::std::marker::PhantomData<&'a ()>, } - #(#impl_extend_trait)* #next_trait